🤖 Bip Bop - Fusion React Components Release #2850
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@equinor/fusion-react-styles@2.0.0
Major Changes
15eacdf: Remove
@material-ui/stylesdependency and replace with custom JSS-based implementation for React 19 compatibility.ref: React 19: Remove Material-UI from @equinor/fusion-react-styles (v1.0.0) fusion-framework#3698
Breaking Changes
@material-ui/stylesdependency - replaced with direct JSS integrationAdded
makeStylesimplementation using JSS directlyStylesProviderwith enhanced scope isolation via seed prefixesThemeProviderwith React 19 compatibilitysrc/utils/:jss-setup.ts- JSS instance configurationclass-name-generator.ts- Class name generation logicsheet-manager.ts- Stylesheet caching and managementcontexts.ts- React context definitionsChanged
Technical Details
Minor Changes
15eacdf: Enhanced theme system with support for extending
FusionThemewith custom properties, improved nested theme composition, and comprehensive documentation.Added
FusionThemenow supports extending with custom properties using generics:createThemenow accepts an optionalbaseThemeparameter for merging with custom base themes:deepMergefunction properly handles nested theme properties,Recordtypes, andStylePropertyinstancesThemeProviderProps,StylesProviderProps,FusionTheme,StyleDefinition, andcreateThemefor better TypeScript supportThemeExtensionstory demonstrating how to extend themes with custom properties, including step-by-step examples for type definition, theme creation, and usage withuseThemeandmakeStylesChanged
createThemesignature now accepts optionalbaseThemeparameter (backward compatible)ThemeProvider,useTheme, andmakeStylesThemeProvidercomponents.getVariable()method for accessing theme CSS values (e.g.,theme.colors.*.getVariable('color'),theme.spacing.*.getVariable('padding')). Direct usage of the.cssproperty has been replaced to ensure proper integration with Fusion design system tokens and to match the documented API usage.getVariable()API for theme propertiesTechnical Details
StylePropertyinstances (replaces instead of merging)ThemeProvidercomponents.style.fontSize,.style.fontWeight, etc. for proper CSS value extraction.getVariable('color')method to get CSS variable strings.getVariable('padding')method to get CSS variable stringsmakeStylesnow returnsRecord<ClassKey, string>whereClassKeyis inferred from style rules, providing type-safe access to class names when usingcreateStyles@equinor/fusion-react-context-selector@2.0.1
Patch Changes
@equinor/fusion-react-errorboundary@2.0.1
Patch Changes
@equinor/fusion-react-filter@2.0.1
Patch Changes
@equinor/fusion-react-hanging-garden@2.0.1
Patch Changes
@equinor/fusion-react-components-stories@5.0.1
Patch Changes
15eacdf: Add comprehensive Storybook documentation and stories for
@equinor/fusion-react-stylespackage.ref: React 19: Remove Material-UI from @equinor/fusion-react-styles (v1.0.0) fusion-framework#3698
Added
styles.mdx): Comprehensive MDX documentation page showcasing all styling featuresStylesProviderexamplesuseThemehook examples, and Theme Extension guidecreateStyleshelper examplesFusionThemewith custom propertiesChanged
@material-ui/stylesdependency from Storybook packagegetVariable()API (theme.colors.*.getVariable('color'),theme.spacing.*.getVariable('padding'),theme.typography.*.style.*) for consistent design system integrationUpdated dependencies [15eacdf]
Updated dependencies [15eacdf]