Releases: crystal-ball/componentry
v7.2.0
What's Changed
- Update: Add layout utility props by @DHedgecock in #544
- Update: Package dependencies update by @DHedgecock in #545
- Chore: Update deps by @DHedgecock in #549
- New: Support additional action states by @DHedgecock in #550
Full Changelog: v7.1.0...v7.2.0
v7.1.0
What's Changed
- Update: Simplified type utilities exported by @DHedgecock in #513
Full Changelog: v7.0.0...v7.1.0
v7.0.0 🚀 - Useful utilities
What's Changed
- Chore: Update development dependencies by @DHedgecock in #509
- New: Export
createElement
utility fn by @DHedgecock in #510
BREAKING 💥
createUtilityClasses
has been renamed tocreateUtilityProps
. The return value has been updated to return{ filteredProps, utilityClassName, and utilityStyle }
initializeUtilityClassesTheme
has been renamed toinitializeUtilityPropsTheme
Full Changelog: v6.5.0...v7.0.0
v6.5.0
What's Changed
- Add exclude option to Babel plugin by @DHedgecock in #506
Full Changelog: v6.4.0...v6.5.0
v6.4.0
What's Changed
- Badge: Updates and bug fixes for Badge component by @DHedgecock in #504
- Chore: Update development dependencies by @DHedgecock in #505
Full Changelog: v6.3.0...v6.4.0
v6.3.0
What's Changed
- New: Babel plugin custom import path and transform stats by @DHedgecock in #503
Full Changelog: v6.2.0...v6.3.0
v6.2.0
What's Changed
Full Changelog: v6.1.0...v6.2.0
v6.1.0
What's Changed
- Update: Badge ready for production use by @DHedgecock in #501
Full Changelog: v6.0.0...v6.1.0
v6.0.0 🚀 - Babel Precompiling
v6 of Componentry provides a feature that has been in the works for a long time: Precompiling components with Babel 🏎 🎉
The display components Block, Flex, Grid, Paper, and Text now have full support for precompilation with Babel at build time. By compiling these components to static DOM elements with classNames applications can use flexible design system components with helpful guardrails with zero runtime overhead
Breaking changes
The configuration shape for ComponentryProvider
and componentry.config.js
is updated to support precompilation configurations. The exported Config
shape should be used for both (note all fields are optional)
A common setup might look like:
componentry.config.js
const { theme } = require('./src/theme/theme')
const { textStyles } = require('./src/components/Text/Text/styles')
module.exports = {
theme,
styles: {
Text: textStyles
}
}
app.js
import { ComponentryProvider } from 'componentry'
import { theme } from './theme/theme'
import { textProps } from './components/Text/Text'
const componentryConfig = {
theme,
defaultProps: {
Text: textProps
}
}
root.render(
<ComponentryProvider config={componentryConfig>
<App />
</ComponentryProvider>
)
What's Changed
- Chore: Update devDependencies 🆙 by @renovate in #484
- Chore: Update devDependencies to v29 🆙 (major) by @renovate in #485
- Chore: Save a fresh lockfile by @DHedgecock in #486
- Update: Remove components' null return type by @DHedgecock in #488
- Update: Clarify code branching in utility styles by @DHedgecock in #489
- New: Support for pre-compiling all display components by @DHedgecock in #487
- New: Support arbitrary className values in pre-compilation by @DHedgecock in #493
- Pre compile styles support by @DHedgecock in #494
- New: Config available for babel, postcss, and provider by @DHedgecock in #496
- Update: Type remaining styles by @DHedgecock in #497
- Update: Move textElementMap to props by @DHedgecock in #498
- Update: Export Config type by @DHedgecock in #499
Full Changelog: v5.0.1...v6.0.0
v6.0.0-beta.0 🧪
What's Changed
- Chore: Update devDependencies 🆙 by @renovate in #484
- Chore: Update devDependencies to v29 🆙 (major) by @renovate in #485
- Chore: Save a fresh lockfile by @DHedgecock in #486
- Update: Remove components' null return type by @DHedgecock in #488
- Update: Clarify code branching in utility styles by @DHedgecock in #489
- New: Support for pre-compiling all display components by @DHedgecock in #487
- New: Support arbitrary className values in pre-compilation by @DHedgecock in #493
- Pre compile styles support by @DHedgecock in #494
- New: Config available for babel, postcss, and provider by @DHedgecock in #496
- Update: Type remaining styles by @DHedgecock in #497
- Update: Move textElementMap to props by @DHedgecock in #498
Full Changelog: v5.0.1...v6.0.0-beta.0