Skip to content

v0.40.0

Choose a tag to compare

@axadrn axadrn released this 21 Mar 07:48

Added

  • use enums instead of raw strings for component configuration
  • add new component: Table (shoutout to @niclimcy)
  • Added Modal Closing Control Options.
  • replace Alpinejs with vanillajs
  • add tailwind ring when button is active
  • better API and showcase
  • add base props (id, class, attributes) to every component for better customization
  • rename prop TooltipSide to TooltipPosition
  • has cursor pointer now
  • add avatar group and improve showcase examples
  • add examples for Form and Label on all form related components now
  • add labels and improve showcase examples

Changed

  • This is my biggest release so far with many changes! It's mainly about converting all components where possible and sensible to component composition for better customization, accessibility, and so on - you know what I mean! Also, this is another big step towards v1.0!
  • rename Sheet component to Drawer for more semantic naming
  • improve showcase for htmx loading button example with native tailwindcss instead of additional css script
  • global renaming from Type to Variant for config props on all components to be more "semantic"
  • better internal file structure and naming
  • use component composition style instead of content passing via props on: Accordion, Avatar, Badge, Breadcrumb, Button (can now be disabled even with Href prop), Tooltip, dropdown menu (generally improved with scrolling), Pagination, Select, Label, Carousel, Form, Drawer, Input OTP, Radio Card, Checkbox Card, Rating, Slider (also use vanilla instead of Alpinejs), Tabs
  • DisableClickAway: Prevents modal from closing when clicking outside
  • DisableESC: Prevents modal from closing when pressing ESC key
  • (shoutout to @derkan)
  • change navbar and announcmentbar style
  • sort alphabetically
  • better utils comments
  • better sorting for consistency and readability: types, templ components, scripts, functions and methods
  • rename TwIf and TfIfElse to If and IfElse and make them more generic
  • more semantic showcase example titles
  • Form and Label showcase links are now complete and alphabetically sorted
  • use string enums instead of iota in all components now

Removed

  • remove all comments from component structure to have cleaner and more readable code
  • big update on almost all components (Attention many breaking changes!) and improve docs showcases:
  • remove it for now because of compatibility problems
  • remove unnecessary Text prop
  • remove postfix on some components, removed the word Root on base components

Fixed

  • use correct charts.js cdn to avoid browser console errors