Releases: inhouse-work/protos
v0.7.0
- Changes passing an
input_id
to accordions. Replaced with the more accurate
input_name
(optional) parameter. There was no point in having different
name attributes for the different radio buttons - Updates modal component to use newer modal controller from protos-stimulus
that uses@stimulus-components/dialog
- Adds the ability for
css
helper to take multiple values, including inline
values instead of theme keys. - Adds new
Protos::Badge
component - Removes deprecated tokens to prepare for phlex 2.0
- Removes
dry-initializer
undefined constant to improve performance - Adds autoloading constants instead of hard requires
Full Changelog: v0.6.0...v0.7.0
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