-
Add inheritance strategies to style variants ([@omarluq][])
-
Add special
class:
variant tostyle
helper. For appending classes. Inspired by https://cva.style/docs/getting-started/extending-components
- Fix publishing transpiled files (and bring Ruby 2.7 support back) (@palkan)
- Fix style variants inhertiance. (@palkan)
-
Introduce style variants. (@palkan)
-
Require Ruby 2.7+. (@palkan)
-
Add system tests to generator. (@palkan)
-
Drop Webpack-related stuff from the generator. (@palkan)
- Support preview classes named
<component|partial>_preview.rb
. (@palkan)
It's also possible to explicitly specify the component class name for the preview class:
class MyComponentPreview
self.component_class_name = "SomeComponent"
def default
render_component
end
end
- Support content blocks in
#render_component
and#render_with
. (@palkan)
class MyComponent::Preview
def default
# Now you can pass a block to render_component to render it inside the component:
render_component(kind: "info") do
"Welcome!"
end
end
end
- Support implicit components in
#render_component
helper. (@palkan)
class MyComponent::Preview
def default
# Before
render_component(MyComponent::Component.new(foo: "bar"))
end
# After
def default
render_component(foo: "bar")
end
end
- Fix compatibility with new errors classes in view_component.
See view_component#1701.
- Fix release dependencies (@palkan)
-
Fix compatibility with sidecar translations. (@palkan)
-
Detect Webpack when using Rails 7 + jsbundling-rails. ([@unikitty37][])
-
Skip autoloading of Preview files when viewing previews is disabled. (@dhnaranjo)
-
Automatic publish to RailsBytes in CI. (@fargelus)
-
Fix adding gem's previews to the app's path. (@palkan)
-
Fix configurable default template.
- Initial release.