Skip to content

Releases: inhouse-work/protos

v0.7.0

13 Jan 09:06
Compare
Choose a tag to compare
  • 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

04 Sep 19:37
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release
  • 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 like value 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

27 Aug 20:09
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release
  • 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

15 Aug 04:08
Compare
Choose a tag to compare
v0.4.3 Pre-release
Pre-release
  • 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

30 Apr 15:04
Compare
Choose a tag to compare
v0.4.2 Pre-release
Pre-release
  • Adds steps component
  • General performance improvements with constant hash lookups
  • Avoids unnecessary usage of tokens in component themes for performance

Full Changelog: v0.4.1...v0.4.2

v0.4.1

09 Apr 22:15
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release

Patch for Protos::Theme to handle nil values.

Full Changelog: v0.4.0...v0.4.1

v0.4.0

09 Apr 22:05
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Overhauls how components public methods work to immediately render which reduces render calls. This provides a number of benefits:

  1. Examples are much cleaner, no unnecessary renders
  2. Delegation becomes easier with (...) args
  3. Phlex creator (joeldrapper) recommends passing rendering blocks to new, allows them to be stored easily
  4. 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

Full Changelog: v0.3.0...v0.4.0

v0.3.0

07 Apr 09:34
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release
  • Updates to Phlex v0.10
  • Improves README
  • Adds autocomplete false to all checkbox inputs
  • Removes hidden class from swap input

Full Changelog: v0.2.3...v0.3.0

v0.2.3

14 Mar 13:14
Compare
Choose a tag to compare
v0.2.3 Pre-release
Pre-release
  • 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

11 Mar 06:33
Compare
Choose a tag to compare
v0.2.2 Pre-release
Pre-release
  • Adds backdrop blur to modals, commands and drawers
  • Improves README
  • Changes the name of class attributes to default_attrs_method and theme_method
  • Allows nil values for undefined slots

Full Changelog: v0.2.1...v0.2.2