protos

A UI component library built with Phlex, Tailwindcss, and daisyUI

MIT License

Downloads
3.7K
Stars
52
Committers
1
protos - v0.4.3 Latest Release

Published by nolantait 2 months ago

  • 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: https://github.com/inhouse-work/protos/compare/v0.4.2...v0.4.3

protos - v0.4.2

Published by nolantait 6 months ago

  • Adds steps component
  • General performance improvements with constant hash lookups
  • Avoids unnecessary usage of tokens in component themes for performance

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.4.1...v0.4.2

protos - v0.4.1

Published by nolantait 7 months ago

Patch for Protos::Theme to handle nil values.

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.4.0...v0.4.1

protos - v0.4.0

Published by nolantait 7 months ago

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: https://github.com/inhouse-work/protos/compare/v0.3.0...v0.4.0

protos - v0.3.0

Published by nolantait 7 months ago

  • Updates to Phlex v0.10
  • Improves README
  • Adds autocomplete false to all checkbox inputs
  • Removes hidden class from swap input

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.2.3...v0.3.0

protos - v0.2.3

Published by nolantait 7 months ago

  • Adds checkbox option for collapse component
  • Removes hidden class from checkbox on collapse
  • Huge performance improvement by not abusing TailwindMerge

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.2.2...v0.2.3

protos - v0.2.2

Published by nolantait 8 months ago

  • 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: https://github.com/inhouse-work/protos/compare/v0.2.1...v0.2.2

protos - v0.2.1

Published by nolantait 8 months ago

  • Moves Protos::Command data-controller to within template on Protos::Command::List
  • Adds :size, :pin_columns, :pin_rows and :striped to Protos::Table
  • Fixes toast positioning
  • Adds default "hidden" class on Protos::Swap checkbox input
  • Adds :input css slot to Protos::Swap checkbox input

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.2.0...v0.2.1

protos - v0.2.0

Published by nolantait 8 months ago

Reworks components to use Protos::Popover through inheritance. Gives better accessibility to placement of popovers using tippy.js.

What's Changed

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.1.2...v0.2.0

protos - v0.1.2

Published by nolantait 8 months ago

Adds components:

  • Hero
  • Breadcrumbs
  • Stats
  • Chat bubble
  • Carousel
  • Tab
  • Swap
  • Toast

Also adds align option to table cells and heads.

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.1.1...v0.1.2

protos - v0.1.1

Published by nolantait 8 months ago

Fixes for List and Timeline components to allow overriding styles.

Full Changelog: https://github.com/inhouse-work/protos/compare/v0.1.0...v0.1.1

protos - v0.1.0

Published by nolantait 8 months ago

Initial release. Adds initial components for:

  • Accordion
  • Alert
  • Avatar
  • Card
  • Collapse
  • Combobox
  • Command
  • Drawer
  • Dropdown
  • List
  • Modal
  • Popover
  • Table
  • Timeline
  • Typography

What's Changed

Full Changelog: https://github.com/inhouse-work/protos/commits/v0.1.0

Package Rankings