Skip to content

[code-infra] Subpath exports that aren't reachable from the package root #49921

Backlog

Description

@maksimgm

tracking the findings from the export check in #49883. it runs on the built packages and flags subpath exports that can't be reached from the package root (by symbol identity, so renames and namespaces count). each one gets fixed in the lib or allowed in the check, in its own PR.

@mui/material

  • root unstable_ClassNameGenerator is the deprecated utils shim, not the one from @mui/material/className
  • EasingProps, TransitionHandlerKeys, TransitionHandlerProps, TransitionKeys, TransitionProps are only importable from /transitions
  • /useLazyRipple default export isn't exported from the root

@mui/system

  • ResponsiveStyleValue is declared twice (root vs /styleFunctionSx, Array vs ReadonlyArray)
  • systemDefaultTheme is two different createTheme() instances (createStyled vs /useTheme)
  • not reachable from root: /DefaultPropsProvider, /InitColorSchemeScript, /breakpoints (iterateBreakpoints, hasBreakpoint, DEFAULT_BREAKPOINTS, ResolveBreakpointValuesOptions), /compose (ComposedStyleFunction), /cssContainerQueries, /memoize, /merge, /propsToClassKey, /useThemeProps (ThemeWithProps, ThemedProps)

@mui/utils

  • not reachable from root: /appendOwnerState, /debounce (Cancelable), /deepmerge (DeepmergeOptions), /integerPropType (getTypeByValue), /isHostComponent, /mergeSlotProps, /omitEventHandlers, /useControlled (UseControlledProps), /useIsFocusVisible (teardown, UseIsFocusVisibleResult), /useLocalStorageState, /useRovingTabIndex

@mui/lab

  • /AdapterDateFns, /AdapterDayjs, /AdapterLuxon, /AdapterMoment defaults, probably path-only
  • /themeAugmentation types, probably path-only
  • /useAutocomplete (createFilterOptions), /zero-styled (styled)

@mui/styled-engine, @mui/styled-engine-sc

  • StyledEngineProviderProps only importable from /StyledEngineProvider

mui-x

  • run the check there and add its findings

Search keywords:

Activity

  1. added
    status: waiting for maintainer
    on Nov 26, 2026
  2. maksimgm commented on Dec 1, 2026

    @maksimgm
    ContributorAuthor

    opened #49954 for the transition types, the other clear ones (styled-engine provider props, system ResponsiveStyleValue and the compose/useThemeProps types) are coming as separate prs. the ones that look path-only on purpose are now in the check's allow list on #49883 (className, useLazyRipple, the internal system helpers, useRovingTabIndex, the lab adapter shims etc).

    a few i'm not sure about, @Janpot what do you think?

    • systemDefaultTheme: unify the two createTheme() instances, or stop exporting one?
    • /breakpoints and /useIsFocusVisible mix public types (ResolveBreakpointValuesOptions, UseIsFocusVisibleResult) with internal helpers. export the types from root and allow the rest, or allow the whole subpath?
    • slot helpers (appendOwnerState, isHostComponent, mergeSlotProps, omitEventHandlers): add to root as unstable_* like useSlotProps, or path-only?
    • utils types (Cancelable, DeepmergeOptions, UseControlledProps): ok at root, or keep them path-only since utils is mostly imported by subpath?
    • useLocalStorageState and lab's createFilterOptions: root or path-only?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: waiting for maintainer

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions