Releases: inhouse-work/protos
v0.6.0
- Changes how merging attributes works to only mix on certain attributes,
overriding on all others. This is opposite to how attributes used to be merged
by default. This is a fix for attributes likevalue
where you actually need
to override them. - Adds a separate tested
Mix
class for handling attribute merging
Full Changelog: v0.5.0...v0.6.0
v0.5.0
- Fixes all accessibility violations according to Axe Core
- Reduces responsibility of Tabs to only be a tablist, no tab panels
- Fixes passing ID to popovers, dropdowns, drawers, etc to not override the
input ID - Changes trigger on popover to be a button instead of a div
Full Changelog: v0.4.3...v0.5.0
v0.4.3
- Removes unneeded auto-loading in Rails which fixes collisions with
protos-markdown
- Adds fixes for handling form submissions within modals with
protos-stimulus
v0.0.3 - Adds ability to disable margin on p tags with
Protos::Typography
Full Changelog: v0.4.2...v0.4.3
v0.4.2
v0.4.1
Patch for Protos::Theme
to handle nil values.
Full Changelog: v0.4.0...v0.4.1
v0.4.0
Overhauls how components public methods work to immediately render which reduces render calls. This provides a number of benefits:
- Examples are much cleaner, no unnecessary renders
- Delegation becomes easier with
(...)
args - Phlex creator (joeldrapper) recommends passing rendering blocks to new, allows them to be stored easily
- Rails has special handling for render calls that force them into strings, unnecessary calls to render from an ERB context is bad
This patch also has performance improvements for the core classes like Protos::Theme
and Protos::Attributes
. This library is currently 30x slower than vanilla Phlex. Most of the current impact of Tailwindmerge has been mitigated, exploring making it optional in the future. Performance hit is ~2x for reading with Protos::Theme#[]
.
What's Changed
- Immediate rendering nt by @nolantait in #3
- Performance nt by @nolantait in #4
Full Changelog: v0.3.0...v0.4.0
v0.3.0
v0.2.3
- Adds checkbox option for collapse component
- Removes hidden class from checkbox on collapse
- Huge performance improvement by not abusing TailwindMerge
Full Changelog: v0.2.2...v0.2.3
v0.2.2
- Adds backdrop blur to modals, commands and drawers
- Improves README
- Changes the name of class attributes to
default_attrs_method
andtheme_method
- Allows nil values for undefined slots
Full Changelog: v0.2.1...v0.2.2
v0.2.1
- Moves
Protos::Command
data-controller to within template onProtos::Command::List
- Adds
:size
,:pin_columns
,:pin_rows
and:striped
toProtos::Table
- Fixes toast positioning
- Adds default "hidden" class on
Protos::Swap
checkbox input - Adds
:input
css slot toProtos::Swap
checkbox input
Full Changelog: v0.2.0...v0.2.1