@okta/odyssey-react-mui 1.67.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Accordion.cjs +1 -1
- package/dist/cjs/Autocomplete.cjs +1 -1
- package/dist/cjs/Badge.cjs +1 -1
- package/dist/cjs/Banner.cjs +1 -1
- package/dist/cjs/Banner.cjs.map +1 -1
- package/dist/cjs/Box.cjs +1 -1
- package/dist/cjs/Breadcrumbs.cjs +1 -1
- package/dist/cjs/Buttons/BaseButton.cjs +24 -6
- 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/Callout.cjs.map +1 -1
- package/dist/cjs/Card.cjs +1 -1
- package/dist/cjs/Charts/ChartError.cjs +73 -0
- package/dist/cjs/Charts/ChartError.cjs.map +1 -0
- package/dist/cjs/Charts/ChartFrame.cjs +112 -0
- package/dist/cjs/Charts/ChartFrame.cjs.map +1 -0
- package/dist/cjs/Charts/ChartPopoverContent.cjs +56 -0
- package/dist/cjs/Charts/ChartPopoverContent.cjs.map +1 -0
- package/dist/cjs/Charts/LineChart.cjs +268 -0
- package/dist/cjs/Charts/LineChart.cjs.map +1 -0
- package/dist/cjs/Charts/chartTokens.cjs +117 -0
- package/dist/cjs/Charts/chartTokens.cjs.map +1 -0
- package/dist/cjs/Charts/chartTypes.cjs +6 -0
- package/dist/cjs/Charts/chartTypes.cjs.map +1 -0
- package/dist/cjs/Charts/formatChartValue.cjs +38 -0
- package/dist/cjs/Charts/formatChartValue.cjs.map +1 -0
- package/dist/cjs/Charts/getChartSeriesPointData.cjs +52 -0
- package/dist/cjs/Charts/getChartSeriesPointData.cjs.map +1 -0
- package/dist/cjs/Charts/hasDuplicateSeries.cjs +21 -0
- package/dist/cjs/Charts/hasDuplicateSeries.cjs.map +1 -0
- package/dist/cjs/Charts/index.cjs +13 -0
- package/dist/cjs/Charts/index.cjs.map +1 -0
- package/dist/cjs/Charts/resolveChartLocale.cjs +28 -0
- package/dist/cjs/Charts/resolveChartLocale.cjs.map +1 -0
- package/dist/cjs/Charts/useChartValueFormatter.cjs +35 -0
- package/dist/cjs/Charts/useChartValueFormatter.cjs.map +1 -0
- package/dist/cjs/Charts/useStableValue.cjs +28 -0
- package/dist/cjs/Charts/useStableValue.cjs.map +1 -0
- 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/DateFieldLocalizationProvider.cjs.map +1 -1
- package/dist/cjs/DatePickers/DatePicker.cjs +3 -4
- package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
- package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
- package/dist/cjs/DatePickers/useOdysseyDateFields.cjs +10 -28
- package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
- package/dist/cjs/Dialog.cjs +1 -1
- package/dist/cjs/Drawer.cjs +19 -6
- package/dist/cjs/Drawer.cjs.map +1 -1
- package/dist/cjs/EmptyState.cjs +1 -1
- package/dist/cjs/ErrorMessageList.cjs +1 -1
- package/dist/cjs/Field.cjs +1 -1
- package/dist/cjs/FieldError.cjs +1 -1
- package/dist/cjs/FieldHint.cjs +1 -1
- package/dist/cjs/FieldLabel.cjs +1 -1
- package/dist/cjs/Fields/Checkbox.cjs +1 -1
- package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
- package/dist/cjs/Fields/Radio.cjs +1 -1
- package/dist/cjs/Fields/RadioGroup.cjs +1 -1
- package/dist/cjs/Fieldset.cjs +1 -1
- package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
- package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
- package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
- package/dist/cjs/Form.cjs +1 -1
- package/dist/cjs/FullScreenOverlay.cjs +1 -1
- package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
- package/dist/cjs/HintLink.cjs +1 -1
- package/dist/cjs/IconWithTooltip.cjs +1 -1
- package/dist/cjs/Link.cjs +1 -1
- package/dist/cjs/MuiPropsChild.cjs +1 -1
- package/dist/cjs/NativeSelect.cjs +1 -1
- package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
- package/dist/cjs/OdysseyProvider.cjs +1 -1
- package/dist/cjs/OdysseyThemeProvider.cjs +3 -2
- 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 +1 -1
- package/dist/cjs/PasswordField.cjs +1 -1
- package/dist/cjs/ScreenReaderText.cjs +1 -1
- package/dist/cjs/SearchField.cjs +1 -1
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/Stack.cjs +1 -1
- package/dist/cjs/Status.cjs +1 -1
- package/dist/cjs/Surface.cjs +1 -1
- package/dist/cjs/Switch.cjs +2 -2
- package/dist/cjs/Tabs.cjs +1 -1
- package/dist/cjs/Tag.cjs +1 -1
- package/dist/cjs/TagList.cjs +1 -1
- package/dist/cjs/TextField.cjs +1 -1
- package/dist/cjs/Toast.cjs +1 -1
- package/dist/cjs/ToastStack.cjs +1 -1
- package/dist/cjs/Tooltip.cjs +1 -1
- package/dist/cjs/Typography.cjs +40 -13
- package/dist/cjs/Typography.cjs.map +1 -1
- package/dist/cjs/icons.generated/Add.cjs +1 -1
- package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
- package/dist/cjs/icons.generated/Apps.cjs +1 -1
- package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
- package/dist/cjs/icons.generated/Bug.cjs +1 -1
- package/dist/cjs/icons.generated/Calendar.cjs +1 -1
- package/dist/cjs/icons.generated/Call.cjs +1 -1
- package/dist/cjs/icons.generated/Chat.cjs +1 -1
- package/dist/cjs/icons.generated/Check.cjs +1 -1
- package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
- package/dist/cjs/icons.generated/Clock.cjs +1 -1
- package/dist/cjs/icons.generated/Close.cjs +1 -1
- package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
- package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
- package/dist/cjs/icons.generated/Copy.cjs +1 -1
- package/dist/cjs/icons.generated/Customizations.cjs +1 -1
- package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
- package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Delete.cjs +1 -1
- package/dist/cjs/icons.generated/Deny.cjs +1 -1
- package/dist/cjs/icons.generated/Devices.cjs +1 -1
- package/dist/cjs/icons.generated/Directory.cjs +1 -1
- package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
- package/dist/cjs/icons.generated/Documentation.cjs +1 -1
- package/dist/cjs/icons.generated/Download.cjs +1 -1
- package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
- package/dist/cjs/icons.generated/Edit.cjs +1 -1
- package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
- package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
- package/dist/cjs/icons.generated/Filter.cjs +1 -1
- package/dist/cjs/icons.generated/Folder.cjs +1 -1
- package/dist/cjs/icons.generated/Globe.cjs +1 -1
- package/dist/cjs/icons.generated/Grid.cjs +1 -1
- package/dist/cjs/icons.generated/Group.cjs +1 -1
- package/dist/cjs/icons.generated/Happy.cjs +1 -1
- package/dist/cjs/icons.generated/Hide.cjs +1 -1
- package/dist/cjs/icons.generated/Home.cjs +1 -1
- package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs.map +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 +25 -18
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/labs/AppTile.cjs +1 -1
- package/dist/cjs/labs/DataFilters.cjs +2 -2
- package/dist/cjs/labs/DataTable.cjs +1 -1
- package/dist/cjs/labs/DataTablePagination.cjs +1 -1
- package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
- package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
- package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
- package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
- package/dist/cjs/labs/DataView/DataView.cjs +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 +3 -4
- package/dist/cjs/labs/DatePickers/DateTimePicker.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/properties/ts/odyssey-react-mui.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
- package/dist/cjs/theme/components/Button.cjs +6 -6
- package/dist/cjs/theme/components/Button.cjs.map +1 -1
- package/dist/cjs/theme/components/Dialog.cjs +1 -1
- package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
- package/dist/cjs/theme/components/Drawer.cjs +5 -1
- package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
- package/dist/cjs/theme/theme.cjs +22 -0
- package/dist/cjs/theme/theme.cjs.map +1 -1
- package/dist/cjs/theme/useAppElementContainerQuery.cjs +37 -0
- package/dist/cjs/theme/useAppElementContainerQuery.cjs.map +1 -0
- package/dist/cjs/theme/useContainerQuery.cjs +94 -0
- package/dist/cjs/theme/useContainerQuery.cjs.map +1 -0
- package/dist/cjs/theme/useMediaQuery.cjs +9 -6
- package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
- package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
- package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
- package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
- package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
- package/dist/cjs/ui-shell/UiShell.cjs +1 -1
- package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
- package/dist/cjs/useContrastMode.cjs.map +1 -1
- package/dist/cjs/useStableCallback.cjs +23 -0
- package/dist/cjs/useStableCallback.cjs.map +1 -0
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/esm/Accordion.js +1 -1
- package/dist/esm/Autocomplete.js +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Banner.js +1 -1
- package/dist/esm/Banner.js.map +1 -1
- package/dist/esm/Box.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/Buttons/BaseButton.js +24 -6
- 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/Callout.js.map +1 -1
- package/dist/esm/Card.js +1 -1
- package/dist/esm/Charts/ChartError.js +70 -0
- package/dist/esm/Charts/ChartError.js.map +1 -0
- package/dist/esm/Charts/ChartFrame.js +108 -0
- package/dist/esm/Charts/ChartFrame.js.map +1 -0
- package/dist/esm/Charts/ChartPopoverContent.js +49 -0
- package/dist/esm/Charts/ChartPopoverContent.js.map +1 -0
- package/dist/esm/Charts/LineChart.js +263 -0
- package/dist/esm/Charts/LineChart.js.map +1 -0
- package/dist/esm/Charts/chartTokens.js +109 -0
- package/dist/esm/Charts/chartTokens.js.map +1 -0
- package/dist/esm/Charts/chartTypes.js +2 -0
- package/dist/esm/Charts/chartTypes.js.map +1 -0
- package/dist/esm/Charts/formatChartValue.js +33 -0
- package/dist/esm/Charts/formatChartValue.js.map +1 -0
- package/dist/esm/Charts/getChartSeriesPointData.js +45 -0
- package/dist/esm/Charts/getChartSeriesPointData.js.map +1 -0
- package/dist/esm/Charts/hasDuplicateSeries.js +14 -0
- package/dist/esm/Charts/hasDuplicateSeries.js.map +1 -0
- package/dist/esm/Charts/index.js +14 -0
- package/dist/esm/Charts/index.js.map +1 -0
- package/dist/esm/Charts/resolveChartLocale.js +21 -0
- package/dist/esm/Charts/resolveChartLocale.js.map +1 -0
- package/dist/esm/Charts/useChartValueFormatter.js +30 -0
- package/dist/esm/Charts/useChartValueFormatter.js.map +1 -0
- package/dist/esm/Charts/useStableValue.js +22 -0
- package/dist/esm/Charts/useStableValue.js.map +1 -0
- 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/DateFieldLocalizationProvider.js.map +1 -1
- package/dist/esm/DatePickers/DatePicker.js +3 -4
- package/dist/esm/DatePickers/DatePicker.js.map +1 -1
- package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
- package/dist/esm/DatePickers/useOdysseyDateFields.js +10 -28
- package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Drawer.js +15 -2
- package/dist/esm/Drawer.js.map +1 -1
- package/dist/esm/EmptyState.js +1 -1
- package/dist/esm/ErrorMessageList.js +1 -1
- package/dist/esm/Field.js +1 -1
- package/dist/esm/FieldError.js +1 -1
- package/dist/esm/FieldHint.js +1 -1
- package/dist/esm/FieldLabel.js +1 -1
- package/dist/esm/Fields/Checkbox.js +1 -1
- package/dist/esm/Fields/CheckboxGroup.js +1 -1
- package/dist/esm/Fields/Radio.js +1 -1
- package/dist/esm/Fields/RadioGroup.js +1 -1
- package/dist/esm/Fieldset.js +1 -1
- package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
- package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
- package/dist/esm/FileUploader/FileUploader.js +1 -1
- package/dist/esm/Form.js +1 -1
- package/dist/esm/FullScreenOverlay.js +1 -1
- package/dist/esm/FullScreenOverlayContext.js +1 -1
- package/dist/esm/HintLink.js +1 -1
- package/dist/esm/IconWithTooltip.js +1 -1
- package/dist/esm/Link.js +1 -1
- package/dist/esm/MuiPropsChild.js +1 -1
- package/dist/esm/NativeSelect.js +1 -1
- package/dist/esm/OdysseyCacheProvider.js +1 -1
- package/dist/esm/OdysseyProvider.js +1 -1
- package/dist/esm/OdysseyThemeProvider.js +3 -2
- 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 +1 -1
- package/dist/esm/PasswordField.js +1 -1
- package/dist/esm/ScreenReaderText.js +1 -1
- package/dist/esm/SearchField.js +1 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/Stack.js +1 -1
- package/dist/esm/Status.js +1 -1
- package/dist/esm/Surface.js +1 -1
- package/dist/esm/Switch.js +2 -2
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TagList.js +1 -1
- package/dist/esm/TextField.js +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/ToastStack.js +1 -1
- package/dist/esm/Tooltip.js +1 -1
- package/dist/esm/Typography.js +39 -12
- package/dist/esm/Typography.js.map +1 -1
- package/dist/esm/icons.generated/Add.js +1 -1
- package/dist/esm/icons.generated/AddCircle.js +1 -1
- package/dist/esm/icons.generated/Apps.js +1 -1
- package/dist/esm/icons.generated/AppsSelected.js +1 -1
- package/dist/esm/icons.generated/ArrowBottom.js +1 -1
- package/dist/esm/icons.generated/ArrowDown.js +1 -1
- package/dist/esm/icons.generated/ArrowLeft.js +1 -1
- package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
- package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
- package/dist/esm/icons.generated/ArrowRight.js +1 -1
- package/dist/esm/icons.generated/ArrowTop.js +1 -1
- package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
- package/dist/esm/icons.generated/ArrowUp.js +1 -1
- package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
- package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
- package/dist/esm/icons.generated/Bug.js +1 -1
- package/dist/esm/icons.generated/Calendar.js +1 -1
- package/dist/esm/icons.generated/Call.js +1 -1
- package/dist/esm/icons.generated/Chat.js +1 -1
- package/dist/esm/icons.generated/Check.js +1 -1
- package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
- package/dist/esm/icons.generated/ChevronDown.js +1 -1
- package/dist/esm/icons.generated/ChevronLeft.js +1 -1
- package/dist/esm/icons.generated/ChevronRight.js +1 -1
- package/dist/esm/icons.generated/ChevronUp.js +1 -1
- package/dist/esm/icons.generated/Clock.js +1 -1
- package/dist/esm/icons.generated/Close.js +1 -1
- package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
- package/dist/esm/icons.generated/CollapseLeft.js +1 -1
- package/dist/esm/icons.generated/CollapseRight.js +1 -1
- package/dist/esm/icons.generated/Copy.js +1 -1
- package/dist/esm/icons.generated/Customizations.js +1 -1
- package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
- package/dist/esm/icons.generated/DangerDiamond.js +1 -1
- package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
- package/dist/esm/icons.generated/Delete.js +1 -1
- package/dist/esm/icons.generated/Deny.js +1 -1
- package/dist/esm/icons.generated/Devices.js +1 -1
- package/dist/esm/icons.generated/Directory.js +1 -1
- package/dist/esm/icons.generated/DirectorySelected.js +1 -1
- package/dist/esm/icons.generated/Documentation.js +1 -1
- package/dist/esm/icons.generated/Download.js +1 -1
- package/dist/esm/icons.generated/DragIndicator.js +1 -1
- package/dist/esm/icons.generated/Edit.js +1 -1
- package/dist/esm/icons.generated/ExpandLeft.js +1 -1
- package/dist/esm/icons.generated/ExpandRight.js +1 -1
- package/dist/esm/icons.generated/ExternalLink.js +1 -1
- package/dist/esm/icons.generated/Filter.js +1 -1
- package/dist/esm/icons.generated/Folder.js +1 -1
- package/dist/esm/icons.generated/Globe.js +1 -1
- package/dist/esm/icons.generated/Grid.js +1 -1
- package/dist/esm/icons.generated/Group.js +1 -1
- package/dist/esm/icons.generated/Happy.js +1 -1
- package/dist/esm/icons.generated/Hide.js +1 -1
- package/dist/esm/icons.generated/Home.js +1 -1
- package/dist/esm/icons.generated/HomeSelected.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernanceSelected.js.map +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 +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/labs/AppTile.js +1 -1
- package/dist/esm/labs/DataFilters.js +2 -2
- package/dist/esm/labs/DataTable.js +1 -1
- package/dist/esm/labs/DataTablePagination.js +1 -1
- package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
- package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
- package/dist/esm/labs/DataView/DataCard.js +1 -1
- package/dist/esm/labs/DataView/DataTable.js +1 -1
- package/dist/esm/labs/DataView/DataView.js +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 +3 -4
- package/dist/esm/labs/DatePickers/DateTimePicker.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/properties/ts/odyssey-react-mui.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/esm/theme/components/Button.js +6 -6
- package/dist/esm/theme/components/Button.js.map +1 -1
- package/dist/esm/theme/components/Dialog.js +2 -2
- package/dist/esm/theme/components/Dialog.js.map +1 -1
- package/dist/esm/theme/components/Drawer.js +5 -1
- package/dist/esm/theme/components/Drawer.js.map +1 -1
- package/dist/esm/theme/theme.js +2 -0
- package/dist/esm/theme/theme.js.map +1 -1
- package/dist/esm/theme/useAppElementContainerQuery.js +32 -0
- package/dist/esm/theme/useAppElementContainerQuery.js.map +1 -0
- package/dist/esm/theme/useContainerQuery.js +87 -0
- package/dist/esm/theme/useContainerQuery.js.map +1 -0
- package/dist/esm/theme/useMediaQuery.js +7 -5
- package/dist/esm/theme/useMediaQuery.js.map +1 -1
- package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
- package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
- package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
- package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
- package/dist/esm/ui-shell/SkipToContent.js +1 -1
- package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
- package/dist/esm/ui-shell/UiShell.js +1 -1
- package/dist/esm/ui-shell/UiShellLogo.js +1 -1
- package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
- package/dist/esm/useContrastMode.js.map +1 -1
- package/dist/esm/useStableCallback.js +16 -0
- package/dist/esm/useStableCallback.js.map +1 -0
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/Banner.d.ts.map +1 -1
- package/dist/types/Buttons/BaseButton.d.ts +8 -1
- package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
- package/dist/types/Callout.d.ts.map +1 -1
- package/dist/types/Charts/ChartError.d.ts +23 -0
- package/dist/types/Charts/ChartError.d.ts.map +1 -0
- package/dist/types/Charts/ChartFrame.d.ts +54 -0
- package/dist/types/Charts/ChartFrame.d.ts.map +1 -0
- package/dist/types/Charts/ChartPopoverContent.d.ts +97 -0
- package/dist/types/Charts/ChartPopoverContent.d.ts.map +1 -0
- package/dist/types/Charts/LineChart.d.ts +26 -0
- package/dist/types/Charts/LineChart.d.ts.map +1 -0
- package/dist/types/Charts/chartTokens.d.ts +362 -0
- package/dist/types/Charts/chartTokens.d.ts.map +1 -0
- package/dist/types/Charts/chartTypes.d.ts +142 -0
- package/dist/types/Charts/chartTypes.d.ts.map +1 -0
- package/dist/types/Charts/formatChartValue.d.ts +93 -0
- package/dist/types/Charts/formatChartValue.d.ts.map +1 -0
- package/dist/types/Charts/getChartSeriesPointData.d.ts +49 -0
- package/dist/types/Charts/getChartSeriesPointData.d.ts.map +1 -0
- package/dist/types/Charts/hasDuplicateSeries.d.ts +24 -0
- package/dist/types/Charts/hasDuplicateSeries.d.ts.map +1 -0
- package/dist/types/Charts/index.d.ts +15 -0
- package/dist/types/Charts/index.d.ts.map +1 -0
- package/dist/types/Charts/resolveChartLocale.d.ts +28 -0
- package/dist/types/Charts/resolveChartLocale.d.ts.map +1 -0
- package/dist/types/Charts/useChartValueFormatter.d.ts +34 -0
- package/dist/types/Charts/useChartValueFormatter.d.ts.map +1 -0
- package/dist/types/Charts/useStableValue.d.ts +29 -0
- package/dist/types/Charts/useStableValue.d.ts.map +1 -0
- package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts +1 -1
- package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts.map +1 -1
- package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
- package/dist/types/DatePickers/useOdysseyDateFields.d.ts +27 -15
- package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
- package/dist/types/Drawer.d.ts +4 -0
- package/dist/types/Drawer.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProviderPropsContext.d.ts +1 -1
- package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -1
- package/dist/types/Typography.d.ts +26 -12
- package/dist/types/Typography.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.d.ts +8 -0
- package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.resources.d.ts +14 -2
- package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
- package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts +1 -1
- package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -0
- package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/types/theme/components/Button.d.ts.map +1 -1
- package/dist/types/theme/components/Drawer.d.ts.map +1 -1
- package/dist/types/theme/theme.d.ts +2 -0
- package/dist/types/theme/theme.d.ts.map +1 -1
- package/dist/types/theme/useAppElementContainerQuery.d.ts +24 -0
- package/dist/types/theme/useAppElementContainerQuery.d.ts.map +1 -0
- package/dist/types/theme/useContainerQuery.d.ts +37 -0
- package/dist/types/theme/useContainerQuery.d.ts.map +1 -0
- package/dist/types/theme/useMediaQuery.d.ts +29 -15
- package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
- package/dist/types/useContrastMode.d.ts +10 -1
- package/dist/types/useContrastMode.d.ts.map +1 -1
- package/dist/types/useStableCallback.d.ts +45 -0
- package/dist/types/useStableCallback.d.ts.map +1 -0
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/package.json +49 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["buttonClasses","buttonComponents","odysseyTokens","MuiButton","defaultProps","disableElevation","variant","styleOverrides","root","ownerState","theme","minWidth","paddingBlock","Spacing3","paddingInline","Spacing4","display","height","Spacing7","position","marginBlock","marginInline","transition","transitions","create","duration","TransitionDurationMain","easing","TransitionTimingMain","borderWidth","BorderWidthMain","borderStyle","BorderStyleMain","borderRadius","BorderRadiusMain","borderColor","fontSize","TypographySizeBody","fontWeight","TypographyWeightHeading","fontFamily","TypographyFamilyButton","lineHeight","TypographyLineHeightUi","whiteSpace","marginInlineStart","Spacing2","boxShadow","HueNeutralWhite","PalettePrimaryMain","outline","outlineOffset","pointerEvents","cursor","startIcon","endIcon","size","Spacing6","Spacing8","fullWidth","width","marginBlockEnd","color","backgroundColor","PalettePrimaryDark","PalettePrimaryDarker","PalettePrimaryLight","HueBlue100","HueNeutral300","TypographyColorBody","HueNeutral200","HueNeutral400","BorderColorPrimaryControl","TypographyColorAction","TypographyColorDisabled","PaletteDangerMain","PaletteDangerDark","PaletteDangerDarker","PaletteDangerLight","HueRed100","PaletteDangerHighlight","HueBlue600","children","padding","margin","hasNoChildren","undefined","marginInlineEnd","MuiButtonBase","disableRipple"],"sources":["../../../../src/theme/components/Button.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport { buttonClasses } from \"@mui/material/Button\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const buttonComponents = ({\n odysseyTokens,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n \"MuiButton\" | \"MuiButtonBase\"\n> => ({\n MuiButton: {\n defaultProps: {\n disableElevation: true,\n variant: \"primary\",\n },\n styleOverrides: {\n root: ({ ownerState, theme }) => {\n return {\n minWidth: \"unset\",\n paddingBlock: odysseyTokens.Spacing3,\n paddingInline: odysseyTokens.Spacing4,\n display: \"inline-flex\",\n height: odysseyTokens.Spacing7,\n position: \"relative\",\n marginBlock: \"0\",\n marginInline: \"0\",\n transition: theme.transitions.create(\n [\"color\", \"background-color\", \"border-color\", \"box-shadow\"],\n {\n duration: odysseyTokens.TransitionDurationMain,\n easing: odysseyTokens.TransitionTimingMain,\n },\n ),\n borderWidth: odysseyTokens.BorderWidthMain,\n borderStyle: odysseyTokens.BorderStyleMain,\n borderRadius: odysseyTokens.BorderRadiusMain,\n borderColor: \"transparent\",\n fontSize: odysseyTokens.TypographySizeBody,\n fontWeight: odysseyTokens.TypographyWeightHeading,\n fontFamily: odysseyTokens.TypographyFamilyButton,\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n whiteSpace: \"nowrap\",\n\n [`.${buttonClasses.root} + &`]: {\n marginInlineStart: odysseyTokens.Spacing2,\n },\n\n \"&:focus-visible\": {\n boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,\n outline: \"2px solid transparent\",\n outlineOffset: \"1px\",\n },\n\n \"&&[aria-disabled='true']\": {\n pointerEvents: \"none\",\n cursor: \"default\",\n },\n\n [`.${buttonClasses.startIcon}, .${buttonClasses.endIcon}`]: {\n \"& > *:nth-of-type(1)\": {\n fontSize: `${odysseyTokens.TypographyLineHeightUi}em`,\n },\n },\n\n ...(ownerState.size === \"small\" && {\n height: odysseyTokens.Spacing6,\n paddingBlock: odysseyTokens.Spacing2,\n paddingInline: odysseyTokens.Spacing3,\n fontSize: odysseyTokens.TypographySizeBody,\n }),\n\n ...(ownerState.size === \"large\" && {\n height: odysseyTokens.Spacing8,\n paddingBlock: odysseyTokens.Spacing4,\n paddingInline: odysseyTokens.Spacing4,\n }),\n\n ...(ownerState.fullWidth === true && {\n width: \"100%\",\n marginBlock: \"0\",\n marginInline: \"0\",\n\n \"&:not(:last-child)\": {\n marginBlockEnd: odysseyTokens.Spacing4,\n },\n }),\n\n ...(ownerState.variant === \"primary\" && {\n color: odysseyTokens.HueNeutralWhite,\n backgroundColor: odysseyTokens.PalettePrimaryMain,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.PalettePrimaryDark,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: odysseyTokens.PalettePrimaryDarker,\n },\n\n \"&[aria-disabled='true']\": {\n color: odysseyTokens.PalettePrimaryLight,\n backgroundColor: odysseyTokens.HueBlue100,\n },\n }),\n\n ...(ownerState.variant === \"secondary\" && {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.HueNeutral300,\n color: odysseyTokens.TypographyColorBody,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n borderColor: odysseyTokens.HueNeutral400,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.BorderColorPrimaryControl,\n color: odysseyTokens.TypographyColorAction,\n },\n\n \"&[aria-disabled='true']\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n borderColor: \"transparent\",\n color: odysseyTokens.TypographyColorDisabled,\n },\n }),\n\n ...(ownerState.variant === \"danger\" && {\n backgroundColor: odysseyTokens.PaletteDangerMain,\n color: odysseyTokens.HueNeutralWhite,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.PaletteDangerDark,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: odysseyTokens.PaletteDangerDarker,\n },\n\n \"&[aria-disabled='true']\": {\n color: odysseyTokens.PaletteDangerLight,\n backgroundColor: odysseyTokens.HueRed100,\n },\n }),\n\n ...(ownerState.variant === \"dangerSecondary\" && {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.HueNeutral300,\n color: odysseyTokens.PaletteDangerMain,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n borderColor: odysseyTokens.HueNeutral400,\n color: odysseyTokens.PaletteDangerMain,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.PaletteDangerMain,\n color: odysseyTokens.PaletteDangerMain,\n },\n\n \"&[aria-disabled='true']\": {\n backgroundColor: odysseyTokens.PaletteDangerHighlight,\n borderColor: \"transparent\",\n color: odysseyTokens.PaletteDangerLight,\n },\n }),\n\n ...(ownerState.variant === \"floating\" && {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorBody,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n color: odysseyTokens.HueBlue600,\n borderColor: odysseyTokens.HueBlue600,\n },\n\n \"&[aria-disabled='true']\": {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorDisabled,\n },\n }),\n\n ...(ownerState.variant === \"floatingAction\" && {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorAction,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.HueBlue600,\n },\n\n \"&[aria-disabled='true']\": {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorDisabled,\n },\n }),\n\n ...(ownerState.children === \"\" && {\n minWidth: \"auto\",\n padding: odysseyTokens.Spacing3,\n\n [`.${buttonClasses.endIcon}, .${buttonClasses.startIcon}`]: {\n margin: \"0\",\n },\n\n ...(ownerState.size === \"large\" && {\n padding: odysseyTokens.Spacing4,\n }),\n\n ...(ownerState.size === \"small\" && {\n padding: odysseyTokens.Spacing2,\n }),\n\n ...(ownerState.size === \"large\" && {\n padding: odysseyTokens.Spacing4,\n }),\n }),\n };\n },\n\n endIcon: ({ ownerState }) => {\n const hasNoChildren =\n ownerState.children === \"\" ||\n ownerState.children === undefined ||\n ownerState.children === null;\n\n return {\n display: \"inline-flex\",\n margin: 0,\n marginInlineStart: odysseyTokens.Spacing2,\n\n ...(hasNoChildren && {\n marginInlineStart: 0,\n }),\n };\n },\n\n startIcon: ({ ownerState }) => {\n const hasNoChildren =\n ownerState.children === \"\" ||\n ownerState.children === undefined ||\n ownerState.children === null;\n\n return {\n display: \"inline-flex\",\n margin: 0,\n marginInlineEnd: odysseyTokens.Spacing2,\n\n ...(hasNoChildren && {\n marginInlineEnd: 0,\n }),\n };\n },\n },\n },\n MuiButtonBase: {\n defaultProps: {\n disableRipple: true,\n },\n },\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,aAAa,QAAQ,sBAAsB;AAIpD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC;AACkB,CAAC,MAGf;EACJC,SAAS,EAAE;IACTC,YAAY,EAAE;MACZC,gBAAgB,EAAE,IAAI;MACtBC,OAAO,EAAE;IACX,CAAC;IACDC,cAAc,EAAE;MACdC,IAAI,EAAEA,CAAC;QAAEC,UAAU;QAAEC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AAC;EACDC,aAAa,EAAE;IACbpF,YAAY,EAAE;MACZqF,aAAa,EAAE;IACjB;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Button.js","names":["buttonClasses","buttonComponents","odysseyTokens","MuiButton","defaultProps","disableElevation","variant","styleOverrides","root","ownerState","theme","minWidth","paddingBlock","Spacing3","paddingInline","Spacing4","display","height","Spacing7","position","marginBlock","marginInline","transition","transitions","create","duration","TransitionDurationMain","easing","TransitionTimingMain","borderWidth","BorderWidthMain","borderStyle","BorderStyleMain","borderRadius","BorderRadiusMain","borderColor","fontSize","TypographySizeBody","fontWeight","TypographyWeightHeading","fontFamily","TypographyFamilyButton","lineHeight","TypographyLineHeightUi","whiteSpace","marginInlineStart","Spacing2","boxShadow","HueNeutralWhite","PalettePrimaryMain","outline","outlineOffset","pointerEvents","cursor","startIcon","endIcon","size","Spacing6","Spacing8","fullWidth","width","marginBlockEnd","color","backgroundColor","PalettePrimaryDark","PalettePrimaryDarker","PalettePrimaryLight","HueBlue100","HueNeutral300","TypographyColorBody","HueNeutral200","HueNeutral400","BorderColorPrimaryControl","TypographyColorAction","TypographyColorDisabled","PaletteDangerMain","PaletteDangerDark","PaletteDangerDarker","PaletteDangerLight","HueRed100","PaletteDangerHighlight","HueBlue600","children","padding","margin","hasNoChildren","undefined","marginInlineEnd","MuiButtonBase","disableRipple"],"sources":["../../../../src/theme/components/Button.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport { buttonClasses } from \"@mui/material/Button\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const buttonComponents = ({\n odysseyTokens,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n \"MuiButton\" | \"MuiButtonBase\"\n> => ({\n MuiButton: {\n defaultProps: {\n disableElevation: true,\n variant: \"primary\",\n },\n styleOverrides: {\n root: ({ ownerState, theme }) => {\n return {\n minWidth: \"unset\",\n paddingBlock: odysseyTokens.Spacing3,\n paddingInline: odysseyTokens.Spacing4,\n display: \"inline-flex\",\n height: odysseyTokens.Spacing7,\n position: \"relative\",\n marginBlock: \"0\",\n marginInline: \"0\",\n transition: theme.transitions.create(\n [\"color\", \"background-color\", \"border-color\", \"box-shadow\"],\n {\n duration: odysseyTokens.TransitionDurationMain,\n easing: odysseyTokens.TransitionTimingMain,\n },\n ),\n borderWidth: odysseyTokens.BorderWidthMain,\n borderStyle: odysseyTokens.BorderStyleMain,\n borderRadius: odysseyTokens.BorderRadiusMain,\n borderColor: \"transparent\",\n fontSize: odysseyTokens.TypographySizeBody,\n fontWeight: odysseyTokens.TypographyWeightHeading,\n fontFamily: odysseyTokens.TypographyFamilyButton,\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n whiteSpace: \"nowrap\",\n\n [`.${buttonClasses.root} + &`]: {\n marginInlineStart: odysseyTokens.Spacing2,\n },\n\n \"&:focus-visible\": {\n boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,\n outline: \"2px solid transparent\",\n outlineOffset: \"1px\",\n },\n\n // A loading button is inert too, so it also carries aria-disabled and\n // picks up this rule. Design does want it to keep the background and\n // border of its default state though, which is why every variant\n // below narrows its disabled colors with :not([aria-busy='true']).\n \"&&[aria-disabled='true']\": {\n pointerEvents: \"none\",\n cursor: \"default\",\n },\n\n [`.${buttonClasses.startIcon}, .${buttonClasses.endIcon}`]: {\n \"& > *:nth-of-type(1)\": {\n fontSize: `${odysseyTokens.TypographyLineHeightUi}em`,\n },\n },\n\n ...(ownerState.size === \"small\" && {\n height: odysseyTokens.Spacing6,\n paddingBlock: odysseyTokens.Spacing2,\n paddingInline: odysseyTokens.Spacing3,\n fontSize: odysseyTokens.TypographySizeBody,\n }),\n\n ...(ownerState.size === \"large\" && {\n height: odysseyTokens.Spacing8,\n paddingBlock: odysseyTokens.Spacing4,\n paddingInline: odysseyTokens.Spacing4,\n }),\n\n ...(ownerState.fullWidth === true && {\n width: \"100%\",\n marginBlock: \"0\",\n marginInline: \"0\",\n\n \"&:not(:last-child)\": {\n marginBlockEnd: odysseyTokens.Spacing4,\n },\n }),\n\n ...(ownerState.variant === \"primary\" && {\n color: odysseyTokens.HueNeutralWhite,\n backgroundColor: odysseyTokens.PalettePrimaryMain,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.PalettePrimaryDark,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: odysseyTokens.PalettePrimaryDarker,\n },\n\n \"&[aria-disabled='true']:not([aria-busy='true'])\": {\n color: odysseyTokens.PalettePrimaryLight,\n backgroundColor: odysseyTokens.HueBlue100,\n },\n }),\n\n ...(ownerState.variant === \"secondary\" && {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.HueNeutral300,\n color: odysseyTokens.TypographyColorBody,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n borderColor: odysseyTokens.HueNeutral400,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.BorderColorPrimaryControl,\n color: odysseyTokens.TypographyColorAction,\n },\n\n \"&[aria-disabled='true']:not([aria-busy='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n borderColor: \"transparent\",\n color: odysseyTokens.TypographyColorDisabled,\n },\n }),\n\n ...(ownerState.variant === \"danger\" && {\n backgroundColor: odysseyTokens.PaletteDangerMain,\n color: odysseyTokens.HueNeutralWhite,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.PaletteDangerDark,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: odysseyTokens.PaletteDangerDarker,\n },\n\n \"&[aria-disabled='true']:not([aria-busy='true'])\": {\n color: odysseyTokens.PaletteDangerLight,\n backgroundColor: odysseyTokens.HueRed100,\n },\n }),\n\n ...(ownerState.variant === \"dangerSecondary\" && {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.HueNeutral300,\n color: odysseyTokens.PaletteDangerMain,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n borderColor: odysseyTokens.HueNeutral400,\n color: odysseyTokens.PaletteDangerMain,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.PaletteDangerMain,\n color: odysseyTokens.PaletteDangerMain,\n },\n\n \"&[aria-disabled='true']:not([aria-busy='true'])\": {\n backgroundColor: odysseyTokens.PaletteDangerHighlight,\n borderColor: \"transparent\",\n color: odysseyTokens.PaletteDangerLight,\n },\n }),\n\n ...(ownerState.variant === \"floating\" && {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorBody,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n color: odysseyTokens.HueBlue600,\n borderColor: odysseyTokens.HueBlue600,\n },\n\n \"&[aria-disabled='true']:not([aria-busy='true'])\": {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorDisabled,\n },\n }),\n\n ...(ownerState.variant === \"floatingAction\" && {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorAction,\n\n \"&:hover:not([aria-disabled='true'])\": {\n backgroundColor: odysseyTokens.HueNeutral200,\n },\n\n \"&:active:not([aria-disabled='true']), &[aria-expanded='true']:not([aria-disabled='true'])\":\n {\n backgroundColor: \"transparent\",\n borderColor: odysseyTokens.HueBlue600,\n },\n\n \"&[aria-disabled='true']:not([aria-busy='true'])\": {\n backgroundColor: \"transparent\",\n color: odysseyTokens.TypographyColorDisabled,\n },\n }),\n\n ...(ownerState.children === \"\" && {\n minWidth: \"auto\",\n padding: odysseyTokens.Spacing3,\n\n [`.${buttonClasses.endIcon}, .${buttonClasses.startIcon}`]: {\n margin: \"0\",\n },\n\n ...(ownerState.size === \"large\" && {\n padding: odysseyTokens.Spacing4,\n }),\n\n ...(ownerState.size === \"small\" && {\n padding: odysseyTokens.Spacing2,\n }),\n\n ...(ownerState.size === \"large\" && {\n padding: odysseyTokens.Spacing4,\n }),\n }),\n };\n },\n\n endIcon: ({ ownerState }) => {\n const hasNoChildren =\n ownerState.children === \"\" ||\n ownerState.children === undefined ||\n ownerState.children === null;\n\n return {\n display: \"inline-flex\",\n margin: 0,\n marginInlineStart: odysseyTokens.Spacing2,\n\n ...(hasNoChildren && {\n marginInlineStart: 0,\n }),\n };\n },\n\n startIcon: ({ ownerState }) => {\n const hasNoChildren =\n ownerState.children === \"\" ||\n ownerState.children === undefined ||\n ownerState.children === null;\n\n return {\n display: \"inline-flex\",\n margin: 0,\n marginInlineEnd: odysseyTokens.Spacing2,\n\n ...(hasNoChildren && {\n marginInlineEnd: 0,\n }),\n };\n },\n },\n },\n MuiButtonBase: {\n defaultProps: {\n disableRipple: true,\n },\n },\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,aAAa,QAAQ,sBAAsB;AAIpD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC;AACkB,CAAC,M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E,aAAa;UACtBoE,MAAM,EAAE,CAAC;UACTG,eAAe,EAAErF,aAAa,CAAC4C,QAAQ;UAEvC,IAAIuC,aAAa,IAAI;YACnBE,eAAe,EAAE;UACnB,CAAC;QACH,CAAC;MACH;IACF;EACF,CAAC;EACDC,aAAa,EAAE;IACbpF,YAAY,EAAE;MACZqF,aAAa,EAAE;IACjB;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { toCompactMediaQuery } from "../useMediaQuery.js";
|
|
14
14
|
export const dialogComponents = ({
|
|
15
15
|
odysseyTokens,
|
|
16
16
|
shadowDomElement,
|
|
@@ -27,7 +27,7 @@ export const dialogComponents = ({
|
|
|
27
27
|
boxShadow: "none",
|
|
28
28
|
filter: "drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))",
|
|
29
29
|
borderRadius: odysseyTokens.BorderRadiusOuter,
|
|
30
|
-
[
|
|
30
|
+
[toCompactMediaQuery("width", "height")]: {
|
|
31
31
|
borderRadius: 0
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","names":["
|
|
1
|
+
{"version":3,"file":"Dialog.js","names":["toCompactMediaQuery","dialogComponents","odysseyTokens","shadowDomElement","shadowRootElement","MuiDialog","defaultProps","container","scroll","styleOverrides","paper","maxWidth","TypographyLineLengthMax","Spacing6","boxShadow","filter","borderRadius","BorderRadiusOuter","MuiDialogActions","root","flexWrap","gap","Spacing2","paddingBlockStart","Spacing5","paddingBlockEnd","paddingInline","MuiDialogContent","ownerState","paddingBlock","dividers","color","HueNeutral600","MuiDialogContentText","marginBlockEnd","HueNeutral700","MuiDialogTitle","component","variant","padding","minWidth","flex"],"sources":["../../../../src/theme/components/Dialog.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nimport { toCompactMediaQuery } from \"../useMediaQuery.js\";\n\nexport const dialogComponents = ({\n odysseyTokens,\n shadowDomElement,\n shadowRootElement,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n | \"MuiDialog\"\n | \"MuiDialogActions\"\n | \"MuiDialogContent\"\n | \"MuiDialogContentText\"\n | \"MuiDialogTitle\"\n> => ({\n MuiDialog: {\n defaultProps: {\n container: shadowRootElement || shadowDomElement,\n scroll: \"paper\",\n },\n styleOverrides: {\n paper: {\n maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} + (${odysseyTokens.Spacing6} * 2))`,\n boxShadow: \"none\",\n filter:\n \"drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))\",\n borderRadius: odysseyTokens.BorderRadiusOuter,\n // Full-screen at compact viewports has no rounded corners.\n [toCompactMediaQuery(\"width\", \"height\")]: {\n borderRadius: 0,\n },\n },\n },\n },\n MuiDialogActions: {\n styleOverrides: {\n root: {\n flexWrap: \"wrap\",\n gap: odysseyTokens.Spacing2,\n paddingBlockStart: odysseyTokens.Spacing5,\n paddingBlockEnd: odysseyTokens.Spacing5,\n paddingInline: odysseyTokens.Spacing6,\n },\n },\n },\n MuiDialogContent: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n paddingBlock: 0,\n paddingInline: odysseyTokens.Spacing6,\n\n ...(ownerState.dividers === true && {\n paddingBlock: odysseyTokens.Spacing6,\n color: odysseyTokens.HueNeutral600,\n }),\n\n [\"&:last-child\"]: {\n paddingBlockEnd: odysseyTokens.Spacing6,\n },\n }),\n },\n },\n MuiDialogContentText: {\n styleOverrides: {\n root: {\n marginBlockEnd: odysseyTokens.Spacing5,\n color: odysseyTokens.HueNeutral700,\n\n \"&:last-child\": {\n marginBlockEnd: \"0\",\n },\n },\n },\n },\n MuiDialogTitle: {\n defaultProps: {\n component: \"h1\",\n variant: \"h5\",\n },\n styleOverrides: {\n root: {\n marginBlockEnd: 0,\n padding: 0,\n minWidth: 0,\n flex: \"1 1 auto\",\n },\n },\n },\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,SAASA,mBAAmB,QAAQ,qBAAqB;AAEzD,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,aAAa;EACbC,gBAAgB;EAChBC;AACkB,CAAC,MAOf;EACJC,SAAS,EAAE;IACTC,YAAY,EAAE;MACZC,SAAS,EAAEH,iBAAiB,IAAID,gBAAgB;MAChDK,MAAM,EAAE;IACV,CAAC;IACDC,cAAc,EAAE;MACdC,KAAK,EAAE;QACLC,QAAQ,EAAE,QAAQT,aAAa,CAACU,uBAAuB,OAAOV,aAAa,CAACW,QAAQ,QAAQ;QAC5FC,SAAS,EAAE,MAAM;QACjBC,MAAM,EACJ,kJAAkJ;QACpJC,YAAY,EAAEd,aAAa,CAACe,iBAAiB;QAE7C,CAACjB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG;UACxCgB,YAAY,EAAE;QAChB;MACF;IACF;EACF,CAAC;EACDE,gBAAgB,EAAE;IAChBT,cAAc,EAAE;MACdU,IAAI,EAAE;QACJC,QAAQ,EAAE,MAAM;QAChBC,GAAG,EAAEnB,aAAa,CAACoB,QAAQ;QAC3BC,iBAAiB,EAAErB,aAAa,CAACsB,QAAQ;QACzCC,eAAe,EAAEvB,aAAa,CAACsB,QAAQ;QACvCE,aAAa,EAAExB,aAAa,CAACW;MAC/B;IACF;EACF,CAAC;EACDc,gBAAgB,EAAE;IAChBlB,cAAc,EAAE;MACdU,IAAI,EAAEA,CAAC;QAAES;MAAW,CAAC,MAAM;QACzBC,YAAY,EAAE,CAAC;QACfH,aAAa,EAAExB,aAAa,CAACW,QAAQ;QAErC,IAAIe,UAAU,CAACE,QAAQ,KAAK,IAAI,IAAI;UAClCD,YAAY,EAAE3B,aAAa,CAACW,QAAQ;UACpCkB,KAAK,EAAE7B,aAAa,CAAC8B;QACvB,CAAC,CAAC;QAEF,CAAC,cAAc,GAAG;UAChBP,eAAe,EAAEvB,aAAa,CAACW;QACjC;MACF,CAAC;IACH;EACF,CAAC;EACDoB,oBAAoB,EAAE;IACpBxB,cAAc,EAAE;MACdU,IAAI,EAAE;QACJe,cAAc,EAAEhC,aAAa,CAACsB,QAAQ;QACtCO,KAAK,EAAE7B,aAAa,CAACiC,aAAa;QAElC,cAAc,EAAE;UACdD,cAAc,EAAE;QAClB;MACF;IACF;EACF,CAAC;EACDE,cAAc,EAAE;IACd9B,YAAY,EAAE;MACZ+B,SAAS,EAAE,IAAI;MACfC,OAAO,EAAE;IACX,CAAC;IACD7B,cAAc,EAAE;MACdU,IAAI,EAAE;QACJe,cAAc,EAAE,CAAC;QACjBK,OAAO,EAAE,CAAC;QACVC,QAAQ,EAAE,CAAC;QACXC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { toCompactMediaQuery } from "../useMediaQuery.js";
|
|
13
14
|
const drawerSizes = {
|
|
14
15
|
persistent: "25.714rem",
|
|
15
16
|
temporary: "28.571rem"
|
|
@@ -38,7 +39,10 @@ export const drawerComponents = ({
|
|
|
38
39
|
border: "0"
|
|
39
40
|
}),
|
|
40
41
|
...(ownerState.variant === "temporary" && {
|
|
41
|
-
boxShadow: odysseyTokens.ShadowScale1
|
|
42
|
+
boxShadow: odysseyTokens.ShadowScale1,
|
|
43
|
+
[toCompactMediaQuery("width")]: {
|
|
44
|
+
width: "100%"
|
|
45
|
+
}
|
|
42
46
|
})
|
|
43
47
|
})
|
|
44
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","names":["drawerSizes","persistent","temporary","drawerComponents","odysseyTokens","MuiDrawer","styleOverrides","root","paper","ownerState","width","variant","display","overflowY","flexDirection","flexWrap","justifyContent","alignItems","alignContent","color","HueNeutral700","position","borderRadius","BorderRadiusOuter","border","boxShadow","ShadowScale1"],"sources":["../../../../src/theme/components/Drawer.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nconst drawerSizes = {\n persistent: \"25.714rem\", //~360px\n temporary: \"28.571rem\", //~400px\n};\n\nexport const drawerComponents = ({\n odysseyTokens,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n \"MuiDrawer\"\n> => ({\n MuiDrawer: {\n styleOverrides: {\n root: {},\n paper: ({ ownerState }) => ({\n width:\n ownerState.variant === \"temporary\"\n ? drawerSizes.temporary\n : drawerSizes.persistent, //Temporary = overlay drawer, Persistent = inline drawer\n display: \"flex\",\n overflowY: \"auto\",\n flexDirection: \"column\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n alignItems: \"stretch\",\n alignContent: \"flex-end\",\n color: odysseyTokens.HueNeutral700,\n ...(ownerState.variant === \"persistent\" && {\n position: \"static\",\n borderRadius: odysseyTokens.BorderRadiusOuter,\n border: \"0\",\n }),\n ...(ownerState.variant === \"temporary\" && {\n boxShadow: odysseyTokens.ShadowScale1,\n }),\n }),\n },\n },\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,
|
|
1
|
+
{"version":3,"file":"Drawer.js","names":["toCompactMediaQuery","drawerSizes","persistent","temporary","drawerComponents","odysseyTokens","MuiDrawer","styleOverrides","root","paper","ownerState","width","variant","display","overflowY","flexDirection","flexWrap","justifyContent","alignItems","alignContent","color","HueNeutral700","position","borderRadius","BorderRadiusOuter","border","boxShadow","ShadowScale1"],"sources":["../../../../src/theme/components/Drawer.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nimport { toCompactMediaQuery } from \"../useMediaQuery.js\";\n\nconst drawerSizes = {\n persistent: \"25.714rem\", //~360px\n temporary: \"28.571rem\", //~400px\n};\n\nexport const drawerComponents = ({\n odysseyTokens,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n \"MuiDrawer\"\n> => ({\n MuiDrawer: {\n styleOverrides: {\n root: {},\n paper: ({ ownerState }) => ({\n width:\n ownerState.variant === \"temporary\"\n ? drawerSizes.temporary\n : drawerSizes.persistent, //Temporary = overlay drawer, Persistent = inline drawer\n display: \"flex\",\n overflowY: \"auto\",\n flexDirection: \"column\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n alignItems: \"stretch\",\n alignContent: \"flex-end\",\n color: odysseyTokens.HueNeutral700,\n ...(ownerState.variant === \"persistent\" && {\n position: \"static\",\n borderRadius: odysseyTokens.BorderRadiusOuter,\n border: \"0\",\n }),\n ...(ownerState.variant === \"temporary\" && {\n boxShadow: odysseyTokens.ShadowScale1,\n // A fixed-width overlay wider than the viewport clips its content and\n // makes the page scroll horizontally at the WCAG 1.4.10 reflow floor.\n // Not 100vw: that counts the scrollbar gutter and keeps the\n // horizontal scrollbar.\n [toCompactMediaQuery(\"width\")]: {\n width: \"100%\",\n },\n }),\n }),\n },\n },\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,SAASA,mBAAmB,QAAQ,qBAAqB;AAEzD,MAAMC,WAAW,GAAG;EAClBC,UAAU,EAAE,WAAW;EACvBC,SAAS,EAAE;AACb,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC;AACkB,CAAC,MAGf;EACJC,SAAS,EAAE;IACTC,cAAc,EAAE;MACdC,IAAI,EAAE,CAAC,CAAC;MACRC,KAAK,EAAEA,CAAC;QAAEC;MAAW,CAAC,MAAM;QAC1BC,KAAK,EACHD,UAAU,CAACE,OAAO,KAAK,WAAW,GAC9BX,WAAW,CAACE,SAAS,GACrBF,WAAW,CAACC,UAAU;QAC5BW,OAAO,EAAE,MAAM;QACfC,SAAS,EAAE,MAAM;QACjBC,aAAa,EAAE,QAAQ;QACvBC,QAAQ,EAAE,QAAQ;QAClBC,cAAc,EAAE,eAAe;QAC/BC,UAAU,EAAE,SAAS;QACrBC,YAAY,EAAE,UAAU;QACxBC,KAAK,EAAEf,aAAa,CAACgB,aAAa;QAClC,IAAIX,UAAU,CAACE,OAAO,KAAK,YAAY,IAAI;UACzCU,QAAQ,EAAE,QAAQ;UAClBC,YAAY,EAAElB,aAAa,CAACmB,iBAAiB;UAC7CC,MAAM,EAAE;QACV,CAAC,CAAC;QACF,IAAIf,UAAU,CAACE,OAAO,KAAK,WAAW,IAAI;UACxCc,SAAS,EAAErB,aAAa,CAACsB,YAAY;UAKrC,CAAC3B,mBAAmB,CAAC,OAAO,CAAC,GAAG;YAC9BW,KAAK,EAAE;UACT;QACF,CAAC;MACH,CAAC;IACH;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/esm/theme/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","names":[],"sources":["../../../src/theme/theme.ts"],"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\nexport * from \"./createOdysseyMuiTheme.js\";\nexport * from \"./pxToRem.js\";\nexport * from \"./useMediaQuery.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,4BAA4B;AAC1C,cAAc,cAAc;AAC5B,cAAc,oBAAoB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"theme.js","names":[],"sources":["../../../src/theme/theme.ts"],"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\nexport * from \"./createOdysseyMuiTheme.js\";\nexport * from \"./pxToRem.js\";\nexport * from \"./useAppElementContainerQuery.js\";\nexport * from \"./useContainerQuery.js\";\nexport * from \"./useMediaQuery.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,4BAA4B;AAC1C,cAAc,cAAc;AAC5B,cAAc,kCAAkC;AAChD,cAAc,wBAAwB;AACtC,cAAc,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { useContrastModeContext } from "../useContrastMode.js";
|
|
14
|
+
import { useContainerQuery } from "./useContainerQuery.js";
|
|
15
|
+
export const useAppElementContainerQuery = ({
|
|
16
|
+
maxHeight,
|
|
17
|
+
maxWidth,
|
|
18
|
+
minHeight,
|
|
19
|
+
minWidth
|
|
20
|
+
}) => {
|
|
21
|
+
const {
|
|
22
|
+
contrastContainerRef
|
|
23
|
+
} = useContrastModeContext();
|
|
24
|
+
return useContainerQuery({
|
|
25
|
+
maxHeight,
|
|
26
|
+
maxWidth,
|
|
27
|
+
minHeight,
|
|
28
|
+
minWidth,
|
|
29
|
+
target: contrastContainerRef ?? null
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useAppElementContainerQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppElementContainerQuery.js","names":["useContrastModeContext","useContainerQuery","useAppElementContainerQuery","maxHeight","maxWidth","minHeight","minWidth","contrastContainerRef","target"],"sources":["../../../src/theme/useAppElementContainerQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useContrastModeContext } from \"../useContrastMode.js\";\nimport {\n useContainerQuery,\n type UseContainerQueryProps,\n} from \"./useContainerQuery.js\";\n\nexport type UseAppElementContainerQueryProps = Omit<\n UseContainerQueryProps,\n \"target\"\n>;\n\n/**\n * Reports whether Odyssey's app wrapper element satisfies a container query.\n * This is the app-scoped analog of `useMediaQuery`: bounds are matched against\n * the wrapper's `inline-size` (width) and `block-size` (height) rather than the\n * viewport, so responsiveness tracks the space Odyssey actually occupies (which\n * shrinks as surrounding chrome such as a side nav expands). Returns `false`\n * until the wrapper element exists, including when `OdysseyProvider` renders\n * with `hasWrapperElement={false}` and when called outside a provider.\n */\nexport const useAppElementContainerQuery = ({\n maxHeight,\n maxWidth,\n minHeight,\n minWidth,\n}: UseAppElementContainerQueryProps) => {\n const { contrastContainerRef } = useContrastModeContext();\n\n return useContainerQuery({\n maxHeight,\n maxWidth,\n minHeight,\n minWidth,\n target: contrastContainerRef ?? null,\n });\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,sBAAsB,QAAQ,uBAAuB;AAC9D,SACEC,iBAAiB,QAEZ,wBAAwB;AAgB/B,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC,SAAS;EACTC,QAAQ;EACRC,SAAS;EACTC;AACgC,CAAC,KAAK;EACtC,MAAM;IAAEC;EAAqB,CAAC,GAAGP,sBAAsB,CAAC,CAAC;EAEzD,OAAOC,iBAAiB,CAAC;IACvBE,SAAS;IACTC,QAAQ;IACRC,SAAS;IACTC,QAAQ;IACRE,MAAM,EAAED,oBAAoB,IAAI;EAClC,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { useEffect, useRef, useState } from "react";
|
|
14
|
+
const resolveTargetElement = target => target && "current" in target ? target.current : target;
|
|
15
|
+
const isResizeObserverSizeList = borderBoxSize => Array.isArray(borderBoxSize);
|
|
16
|
+
const resolveBorderBoxSize = borderBoxSize => isResizeObserverSizeList(borderBoxSize) ? borderBoxSize[0] : borderBoxSize;
|
|
17
|
+
const doesSizeMatchQuery = ({
|
|
18
|
+
blockSize,
|
|
19
|
+
inlineSize,
|
|
20
|
+
maxHeight,
|
|
21
|
+
maxWidth,
|
|
22
|
+
minHeight,
|
|
23
|
+
minWidth
|
|
24
|
+
}) => (minWidth === undefined || inlineSize >= minWidth) && (maxWidth === undefined || inlineSize <= maxWidth) && (minHeight === undefined || blockSize >= minHeight) && (maxHeight === undefined || blockSize <= maxHeight);
|
|
25
|
+
export const useContainerQuery = ({
|
|
26
|
+
target,
|
|
27
|
+
minWidth,
|
|
28
|
+
maxWidth,
|
|
29
|
+
minHeight,
|
|
30
|
+
maxHeight
|
|
31
|
+
}) => {
|
|
32
|
+
const resolvedTargetElement = resolveTargetElement(target);
|
|
33
|
+
const [hasMatches, setHasMatches] = useState(() => {
|
|
34
|
+
if (!resolvedTargetElement) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
const {
|
|
38
|
+
height,
|
|
39
|
+
width
|
|
40
|
+
} = resolvedTargetElement.getBoundingClientRect();
|
|
41
|
+
return doesSizeMatchQuery({
|
|
42
|
+
blockSize: height,
|
|
43
|
+
inlineSize: width,
|
|
44
|
+
maxHeight,
|
|
45
|
+
maxWidth,
|
|
46
|
+
minHeight,
|
|
47
|
+
minWidth
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
const animationFrameIdRef = useRef(null);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
const targetElement = resolveTargetElement(target);
|
|
53
|
+
if (typeof ResizeObserver === "undefined" || !targetElement) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const resizeObserver = new ResizeObserver(([resizeObserverEntry]) => {
|
|
57
|
+
if (animationFrameIdRef.current !== null) {
|
|
58
|
+
cancelAnimationFrame(animationFrameIdRef.current);
|
|
59
|
+
}
|
|
60
|
+
animationFrameIdRef.current = requestAnimationFrame(() => {
|
|
61
|
+
animationFrameIdRef.current = null;
|
|
62
|
+
if (!resizeObserverEntry) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const borderBoxSize = resolveBorderBoxSize(resizeObserverEntry.borderBoxSize);
|
|
66
|
+
setHasMatches(doesSizeMatchQuery({
|
|
67
|
+
blockSize: borderBoxSize?.blockSize ?? resizeObserverEntry.contentRect.height,
|
|
68
|
+
inlineSize: borderBoxSize?.inlineSize ?? resizeObserverEntry.contentRect.width,
|
|
69
|
+
maxHeight,
|
|
70
|
+
maxWidth,
|
|
71
|
+
minHeight,
|
|
72
|
+
minWidth
|
|
73
|
+
}));
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
resizeObserver.observe(targetElement);
|
|
77
|
+
return () => {
|
|
78
|
+
resizeObserver.disconnect();
|
|
79
|
+
if (animationFrameIdRef.current !== null) {
|
|
80
|
+
cancelAnimationFrame(animationFrameIdRef.current);
|
|
81
|
+
animationFrameIdRef.current = null;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}, [maxHeight, maxWidth, minHeight, minWidth, target]);
|
|
85
|
+
return hasMatches;
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=useContainerQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContainerQuery.js","names":["useEffect","useRef","useState","resolveTargetElement","target","current","isResizeObserverSizeList","borderBoxSize","Array","isArray","resolveBorderBoxSize","doesSizeMatchQuery","blockSize","inlineSize","maxHeight","maxWidth","minHeight","minWidth","undefined","useContainerQuery","resolvedTargetElement","hasMatches","setHasMatches","height","width","getBoundingClientRect","animationFrameIdRef","targetElement","ResizeObserver","resizeObserver","resizeObserverEntry","cancelAnimationFrame","requestAnimationFrame","contentRect","observe","disconnect"],"sources":["../../../src/theme/useContainerQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { type RefObject, useEffect, useRef, useState } from \"react\";\n\nexport type UseContainerQueryProps = {\n /** Inclusive upper bound on the target's block-size (px). */\n maxHeight?: number;\n /** Inclusive upper bound on the target's inline-size (px). */\n maxWidth?: number;\n /** Inclusive lower bound on the target's block-size (px). */\n minHeight?: number;\n /** Inclusive lower bound on the target's inline-size (px). */\n minWidth?: number;\n /**\n * Element to observe, passed as a ref or a raw element. The hook returns\n * `false` until an element is present.\n */\n target: RefObject<HTMLElement | null> | HTMLElement | null;\n};\n\nconst resolveTargetElement = (target: UseContainerQueryProps[\"target\"]) =>\n target && \"current\" in target ? target.current : target;\n\n/**\n * `borderBoxSize` is typed as an array but is absent in older browsers and a\n * single object in some, so it is narrowed through a predicate that keeps the\n * element type intact (`Array.isArray` alone widens a readonly array to `any[]`).\n */\nconst isResizeObserverSizeList = (\n borderBoxSize: ResizeObserverSize | readonly ResizeObserverSize[] | undefined,\n): borderBoxSize is readonly ResizeObserverSize[] =>\n Array.isArray(borderBoxSize);\n\nconst resolveBorderBoxSize = (\n borderBoxSize: ResizeObserverSize | readonly ResizeObserverSize[] | undefined,\n): ResizeObserverSize | undefined =>\n isResizeObserverSizeList(borderBoxSize) ? borderBoxSize[0] : borderBoxSize;\n\nconst doesSizeMatchQuery = ({\n blockSize,\n inlineSize,\n maxHeight,\n maxWidth,\n minHeight,\n minWidth,\n}: {\n blockSize: number;\n inlineSize: number;\n} & Omit<UseContainerQueryProps, \"target\">) =>\n (minWidth === undefined || inlineSize >= minWidth) &&\n (maxWidth === undefined || inlineSize <= maxWidth) &&\n (minHeight === undefined || blockSize >= minHeight) &&\n (maxHeight === undefined || blockSize <= maxHeight);\n\n/**\n * Reports whether an element's size satisfies a container query, mirroring\n * `useMediaQuery` but observing an element with `ResizeObserver` instead of the\n * viewport. Bounds are matched against the target's `inline-size` (width) and\n * `block-size` (height); an omitted bound is always satisfied. Returns `false`\n * until the target element exists (and when `ResizeObserver` is unavailable,\n * e.g. during server rendering).\n */\nexport const useContainerQuery = ({\n target,\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n}: UseContainerQueryProps) => {\n const resolvedTargetElement = resolveTargetElement(target);\n\n const [hasMatches, setHasMatches] = useState(() => {\n if (!resolvedTargetElement) {\n return false;\n }\n\n const { height, width } = resolvedTargetElement.getBoundingClientRect();\n\n return doesSizeMatchQuery({\n blockSize: height,\n inlineSize: width,\n maxHeight,\n maxWidth,\n minHeight,\n minWidth,\n });\n });\n\n const animationFrameIdRef = useRef<number | null>(null);\n\n useEffect(() => {\n // Resolve the element inside the effect: a `RefObject`'s `current` is `null`\n // during render and only populated after commit, so resolving here (rather\n // than during render) is what lets a ref target attach the observer.\n const targetElement = resolveTargetElement(target);\n\n if (typeof ResizeObserver === \"undefined\" || !targetElement) {\n return;\n }\n\n const resizeObserver = new ResizeObserver(([resizeObserverEntry]) => {\n if (animationFrameIdRef.current !== null) {\n cancelAnimationFrame(animationFrameIdRef.current);\n }\n\n animationFrameIdRef.current = requestAnimationFrame(() => {\n animationFrameIdRef.current = null;\n\n if (!resizeObserverEntry) {\n return;\n }\n\n const borderBoxSize = resolveBorderBoxSize(\n resizeObserverEntry.borderBoxSize,\n );\n\n setHasMatches(\n doesSizeMatchQuery({\n blockSize:\n borderBoxSize?.blockSize ??\n resizeObserverEntry.contentRect.height,\n inlineSize:\n borderBoxSize?.inlineSize ??\n resizeObserverEntry.contentRect.width,\n maxHeight,\n maxWidth,\n minHeight,\n minWidth,\n }),\n );\n });\n });\n\n resizeObserver.observe(targetElement);\n\n return () => {\n resizeObserver.disconnect();\n\n if (animationFrameIdRef.current !== null) {\n cancelAnimationFrame(animationFrameIdRef.current);\n animationFrameIdRef.current =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AAI,EAAE;QACxC0B,oBAAoB,CAACL,mBAAmB,CAACrB,OAAO,CAAC;QACjDqB,mBAAmB,CAACrB,OAAO,GAAG,IAAI;MACpC;IACF,CAAC;EACH,CAAC,EAAE,CAACS,SAAS,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,QAAQ,EAAEb,MAAM,CAAC,CAAC;EAEtD,OAAOiB,UAAU;AACnB,CAAC","ignoreList":[]}
|
|
@@ -35,12 +35,14 @@ const COMPACT_WIDTH_ACTIVATION_BUFFER = 80;
|
|
|
35
35
|
const COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;
|
|
36
36
|
export const COMPACT_MAX_WIDTH = ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;
|
|
37
37
|
export const COMPACT_MAX_HEIGHT = ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const COMPACT_CONDITION_BY_AXIS = {
|
|
39
|
+
height: `(max-height: ${COMPACT_MAX_HEIGHT}px)`,
|
|
40
|
+
width: `(max-width: ${COMPACT_MAX_WIDTH}px)`
|
|
41
|
+
};
|
|
42
|
+
export const toCompactMediaQuery = (firstAxis, otherAxis) => `@media ${[firstAxis, otherAxis].filter(axis => axis !== undefined).map(axis => COMPACT_CONDITION_BY_AXIS[axis]).join(",")}`;
|
|
41
43
|
export const useCompactViewportMatches = () => {
|
|
42
|
-
const isWithinCompactWidth = useMediaQuery(
|
|
43
|
-
const isWithinCompactHeight = useMediaQuery(
|
|
44
|
+
const isWithinCompactWidth = useMediaQuery(COMPACT_CONDITION_BY_AXIS.width);
|
|
45
|
+
const isWithinCompactHeight = useMediaQuery(COMPACT_CONDITION_BY_AXIS.height);
|
|
44
46
|
return useMemo(() => ({
|
|
45
47
|
isWithinCompactWidth,
|
|
46
48
|
isWithinCompactHeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery.js","names":["useCallback","useMemo","useSyncExternalStore","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","subscribe","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_MAX_WIDTH_CONDITION","COMPACT_MAX_HEIGHT_CONDITION","COMPACT_MEDIA_QUERY","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. Import it from\n// the official backport shim so the hook resolves on React 16.8+/17 consumers\n// too; the shim delegates to the native hook when running on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-width. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-height. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;\n\n/**\n * The combined CSS media query for use in style overrides, where a React hook\n * cannot run. The comma matches when either dimension is compact.\n */\nexport const COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact,\n * matching the OR semantics of `COMPACT_MEDIA_QUERY`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);\n const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAI5C,SAASC,oBAAoB,QAAQ,8BAA8B;AAYnE,OAAO,MAAMC,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAGT,OAAO,CAC5B,MAAOM,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMM,SAAS,GAAGX,WAAW,CAC1BY,mBAA+B,IAAK;IACnC,IAAI,CAACF,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACG,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXF,cAAc,CAACI,mBAAmB,CAAC,QAAQ,EAAEF,mBAAmB,CAAC;IACnE,CAAC;EACH,CAAC,EACD,CAACF,cAAc,CACjB,CAAC;EAED,MAAMK,WAAW,GAAGf,WAAW,CAC7B,MAAMU,cAAc,EAAEM,OAAO,IAAI,KAAK,EACtC,CAACN,cAAc,CACjB,CAAC;EAID,MAAMO,iBAAiB,GAAGjB,WAAW,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;EAEtD,OAAOE,oBAAoB,CAACS,SAAS,EAAEI,WAAW,EAAEE,iBAAiB,CAAC;AACxE,CAAC;AAQD,OAAO,MAAMC,sBAAsB,GAAG,GAAG;AAMzC,OAAO,MAAMC,uBAAuB,GAAG,GAAG;AAQ1C,MAAMC,+BAA+B,GAAG,EAAE;AAC1C,MAAMC,gCAAgC,GAAG,GAAG;AAM5C,OAAO,MAAMC,iBAAiB,GAC5BJ,sBAAsB,GAAGE,+BAA+B;AAM1D,OAAO,MAAMG,kBAAkB,GAC7BJ,uBAAuB,GAAGE,gCAAgC;AAO5D,OAAO,MAAMG,2BAA2B,GAAG,eAAeF,iBAAiB,KAAK;AAOhF,OAAO,MAAMG,4BAA4B,GAAG,gBAAgBF,kBAAkB,KAAK;AAMnF,OAAO,MAAMG,mBAAmB,GAAG,UAAUF,2BAA2B,KAAKC,4BAA4B,EAAE;AAa3G,OAAO,MAAME,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAMC,oBAAoB,GAAGzB,aAAa,CAACqB,2BAA2B,CAAC;EACvE,MAAMK,qBAAqB,GAAG1B,aAAa,CAACsB,4BAA4B,CAAC;EAEzE,OAAOxB,OAAO,CACZ,OAAO;IACL2B,oBAAoB;IACpBC,qBAAqB;IACrBC,4BAA4B,EAC1BF,oBAAoB,IAAIC;EAC5B,CAAC,CAAC,EACF,CAACD,oBAAoB,EAAEC,qBAAqB,CAC9C,CAAC;AACH,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"useMediaQuery.js","names":["useCallback","useMemo","useSyncExternalStore","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","subscribe","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_CONDITION_BY_AXIS","height","width","toCompactMediaQuery","firstAxis","otherAxis","filter","axis","undefined","map","join","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. Import it from\n// the official backport shim so the hook resolves on React 16.8+/17 consumers\n// too; the shim delegates to the native hook when running on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia` and CSS condition for each axis. This is the only place that\n * turns a threshold into a condition string, so the hook and the style overrides\n * cannot drift.\n */\nconst COMPACT_CONDITION_BY_AXIS = {\n height: `(max-height: ${COMPACT_MAX_HEIGHT}px)`,\n width: `(max-width: ${COMPACT_MAX_WIDTH}px)`,\n} as const;\n\n/** The axis names that `toCompactMediaQuery` accepts. */\nexport type CompactViewportAxis = keyof typeof COMPACT_CONDITION_BY_AXIS;\n\n/**\n * Builds the compact CSS `@media` rule for the given axes. The rule matches when\n * any one of those axes is compact. Use the result as a key in a style override\n * object, where a React hook cannot run.\n *\n * Give the name of an axis, not a condition string. The function holds the\n * threshold, so no caller can pass a wrong pixel value, and the compact\n * conditions need no export at all.\n *\n * A viewport has two axes, so the parameters spell out every legal call: one\n * axis, then at most one axis that the first call did not name. TypeScript\n * rejects a call with no axis, a repeated axis, or a third axis.\n *\n * Call `useCompactViewportMatches` in a component instead.\n *\n * This function stays internal to the package. Add it to the public `index.ts`\n * only when a consumer outside the package needs it.\n */\nexport const toCompactMediaQuery = <FirstAxis extends CompactViewportAxis>(\n firstAxis: FirstAxis,\n otherAxis?: Exclude<CompactViewportAxis, FirstAxis>,\n) =>\n `@media ${[firstAxis, otherAxis]\n .filter((axis) => axis !== undefined)\n .map((axis) => COMPACT_CONDITION_BY_AXIS[axis])\n .join(\",\")}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact. It\n * matches a style override that gives both axes to `toCompactMediaQuery`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_CONDITION_BY_AXIS.width);\n const isWithinCompactHeight = useMediaQuery(COMPACT_CONDITION_BY_AXIS.height);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAI5C,SAASC,oBAAoB,QAAQ,8BAA8B;AAYnE,OAAO,MAAMC,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAGT,OAAO,CAC5B,MAAOM,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMM,SAAS,GAAGX,WAAW,CAC1BY,mBAA+B,IAAK;IACnC,IAAI,CAACF,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACG,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXF,cAAc,CAACI,mBAAmB,CAAC,QAAQ,EAAEF,mBAAmB,CAAC;IACnE,CAAC;EACH,CAAC,EACD,CAACF,cAAc,CACjB,CAAC;EAED,MAAMK,WAAW,GAAGf,WAAW,CAC7B,MAAMU,cAAc,EAAEM,OAAO,IAAI,KAAK,EACtC,CAACN,cAAc,CACjB,CAAC;EAID,MAAMO,iBAAiB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
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
const MemoizedAppSwitcher = memo(AppSwitcher);
|
|
73
|
-
MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.
|
|
73
|
+
MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.69.0";
|
|
74
74
|
export { MemoizedAppSwitcher as AppSwitcher };
|
|
75
75
|
//# sourceMappingURL=AppSwitcher.js.map
|
|
@@ -52,6 +52,6 @@ const InnerAppContainer = ({
|
|
|
52
52
|
children: [_jsx(StyledAppContainerShadow1, {}), _jsx(StyledAppContainerShadow2, {}), _jsx(StyledAppContainerShadow3, {})]
|
|
53
53
|
}) : null;
|
|
54
54
|
const MemoizedInnerAppContainer = memo(InnerAppContainer);
|
|
55
|
-
MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.
|
|
55
|
+
MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.69.0";
|
|
56
56
|
export { MemoizedInnerAppContainer as InnerAppContainer };
|
|
57
57
|
//# sourceMappingURL=InnerAppContainer.js.map
|
|
@@ -372,6 +372,6 @@ const NarrowUiShellContent = ({
|
|
|
372
372
|
});
|
|
373
373
|
};
|
|
374
374
|
const MemoizedNarrowUiShellContent = memo(NarrowUiShellContent);
|
|
375
|
-
MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.
|
|
375
|
+
MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.69.0";
|
|
376
376
|
export { MemoizedNarrowUiShellContent as NarrowUiShellContent };
|
|
377
377
|
//# sourceMappingURL=NarrowUiShellContent.js.map
|
|
@@ -163,6 +163,6 @@ const NavAccordion = ({
|
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
const MemoizedNavAccordion = memo(NavAccordion);
|
|
166
|
-
MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.
|
|
166
|
+
MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.69.0";
|
|
167
167
|
export { MemoizedNavAccordion as NavAccordion };
|
|
168
168
|
//# sourceMappingURL=NavAccordion.js.map
|
|
@@ -646,6 +646,6 @@ const SideNav = ({
|
|
|
646
646
|
});
|
|
647
647
|
};
|
|
648
648
|
const MemoizedSideNav = memo(SideNav);
|
|
649
|
-
MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.
|
|
649
|
+
MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.69.0";
|
|
650
650
|
export { MemoizedSideNav as SideNav };
|
|
651
651
|
//# sourceMappingURL=SideNav.js.map
|
|
@@ -62,6 +62,6 @@ const SideNavFooterContent = ({
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
const MemoizedSideNavFooterContent = memo(SideNavFooterContent);
|
|
65
|
-
MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.
|
|
65
|
+
MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.69.0";
|
|
66
66
|
export { MemoizedSideNavFooterContent as SideNavFooterContent };
|
|
67
67
|
//# sourceMappingURL=SideNavFooterContent.js.map
|
|
@@ -93,6 +93,6 @@ const SideNavHeader = ({
|
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
95
|
const MemoizedSideNavHeader = memo(SideNavHeader);
|
|
96
|
-
MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.
|
|
96
|
+
MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.69.0";
|
|
97
97
|
export { MemoizedSideNavHeader as SideNavHeader };
|
|
98
98
|
//# sourceMappingURL=SideNavHeader.js.map
|
|
@@ -54,7 +54,7 @@ const SideNavListItem = forwardRef(({
|
|
|
54
54
|
...sideNavListItemProps,
|
|
55
55
|
ref: sideNavListItemRef
|
|
56
56
|
}));
|
|
57
|
-
SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.
|
|
57
|
+
SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.69.0";
|
|
58
58
|
const scrollToNode = node => {
|
|
59
59
|
if (node) {
|
|
60
60
|
node?.scrollIntoView({
|
|
@@ -337,6 +337,6 @@ const SideNavItemContent = ({
|
|
|
337
337
|
}, id);
|
|
338
338
|
};
|
|
339
339
|
const MemoizedSideNavItemContent = memo(SideNavItemContent);
|
|
340
|
-
MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.
|
|
340
|
+
MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.69.0";
|
|
341
341
|
export { MemoizedSideNavItemContent as SideNavItemContent };
|
|
342
342
|
//# sourceMappingURL=SideNavItemContent.js.map
|
|
@@ -67,6 +67,6 @@ const SideNavItemLinkContent = ({
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
const MemoizedSideNavItemLinkContent = memo(SideNavItemLinkContent);
|
|
70
|
-
MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.
|
|
70
|
+
MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.69.0";
|
|
71
71
|
export { MemoizedSideNavItemLinkContent as SideNavItemLinkContent };
|
|
72
72
|
//# sourceMappingURL=SideNavItemLinkContent.js.map
|
|
@@ -38,6 +38,6 @@ const SideNavSortableList = ({
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
const MemoizedSideNavSortableList = memo(SideNavSortableList);
|
|
41
|
-
MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.
|
|
41
|
+
MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.69.0";
|
|
42
42
|
export { MemoizedSideNavSortableList as SideNavSortableList };
|
|
43
43
|
//# sourceMappingURL=SideNavSortableList.js.map
|
|
@@ -81,7 +81,7 @@ const StyledChevronRightIcon = styled(ChevronRightIcon, {
|
|
|
81
81
|
transitionProperty: "transform",
|
|
82
82
|
transitionTimingFunction: "ease-in-out"
|
|
83
83
|
}));
|
|
84
|
-
StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.
|
|
84
|
+
StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.69.0";
|
|
85
85
|
const defaultLocalButton = typeof window === "undefined" ? null : document.createElement("button");
|
|
86
86
|
const SideNavToggleButton = ({
|
|
87
87
|
ariaControls,
|
|
@@ -156,6 +156,6 @@ const SideNavToggleButton = ({
|
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
158
|
const MemoizedSideNavToggleButton = memo(SideNavToggleButton);
|
|
159
|
-
MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.
|
|
159
|
+
MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.69.0";
|
|
160
160
|
export { MemoizedSideNavToggleButton as SideNavToggleButton };
|
|
161
161
|
//# sourceMappingURL=SideNavToggleButton.js.map
|
|
@@ -114,6 +114,6 @@ const SkipToContent = ({
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
const MemoizedSkipToContent = memo(SkipToContent);
|
|
117
|
-
MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.
|
|
117
|
+
MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.69.0";
|
|
118
118
|
export { MemoizedSkipToContent as SkipToContent };
|
|
119
119
|
//# sourceMappingURL=SkipToContent.js.map
|
|
@@ -27,6 +27,6 @@ const HamburgerMenuIcon = forwardRef((props, ref) => {
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
const MemoizedHamburgerMenuIcon = memo(HamburgerMenuIcon);
|
|
30
|
-
MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.
|
|
30
|
+
MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.69.0";
|
|
31
31
|
export { MemoizedHamburgerMenuIcon as HamburgerMenuIcon };
|
|
32
32
|
//# sourceMappingURL=HamburgerMenuIcon.js.map
|
|
@@ -62,6 +62,6 @@ const TopNav = ({
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
const MemoizedTopNav = memo(TopNav);
|
|
65
|
-
MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.
|
|
65
|
+
MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.69.0";
|
|
66
66
|
export { MemoizedTopNav as TopNav };
|
|
67
67
|
//# sourceMappingURL=TopNav.js.map
|
|
@@ -32,6 +32,6 @@ const TopNavLinksList = ({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
const MemoizedTopNavLinksList = memo(TopNavLinksList);
|
|
35
|
-
MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.
|
|
35
|
+
MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.69.0";
|
|
36
36
|
export { MemoizedTopNavLinksList as TopNavLinksList };
|
|
37
37
|
//# sourceMappingURL=TopNavLinksList.js.map
|
|
@@ -126,6 +126,6 @@ const TopNavListItem = ({
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
const MemoizedTopNavListItem = memo(TopNavListItem);
|
|
129
|
-
MemoizedTopNavListItem.displayName = "TopNavListItem::pkg=odyssey&odysseyV=1.
|
|
129
|
+
MemoizedTopNavListItem.displayName = "TopNavListItem::pkg=odyssey&odysseyV=1.69.0";
|
|
130
130
|
export { MemoizedTopNavListItem as TopNavListItem };
|
|
131
131
|
//# sourceMappingURL=TopNavListItem.js.map
|
|
@@ -123,6 +123,6 @@ const UiShell = ({
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
const MemoizedUiShell = memo(UiShell);
|
|
126
|
-
MemoizedUiShell.displayName = "UiShell::pkg=odyssey&odysseyV=1.
|
|
126
|
+
MemoizedUiShell.displayName = "UiShell::pkg=odyssey&odysseyV=1.69.0";
|
|
127
127
|
export { MemoizedUiShell as UiShell };
|
|
128
128
|
//# sourceMappingURL=UiShell.js.map
|