๐ Prismane Version 1.6.0
๐งพ Release Notes
This new version introduces new props and features to components and hooks and provides numerous improvements and bug fixes throughout the codebase.
๐ Improvements
Components
- - Portal: Improved performance by reducing unnecessary use of hooks.
- - Table: The table now occupies the entire width of its parent.
- - Dialog: Improved default animations by making them related to the value of the
position
prop. - - Field: Every field component now occupies the entire width of its parent.
- - Menu: Improved spacing of
Menu.Label
by providing a margin when the label isn't the first child in the menu container.
โจ New
Components
- - Progress: Now can change its color using the
color
prop. - - Table:
- - Now can change the lines between the columns and rows using the
lines
prop. - - Now can toggle the table border using the
bordered
prop. - - Now can make the table appear as 'striped' using the
striped
prop. - - Now can automatically change the
padding
andfont-size
of the table using thesize
prop, making the table appear smaller or bigger.
- - Now can change the lines between the columns and rows using the
- - Tabs: Now each
Tabs.Tab
can be disabled using thedisabled
prop. - - Spinner: Now the color of the spinner can be changed using the
color
prop. - - TextareaField: Now can be resized using the
resize
prop. - - All:
- - The
fs
prop now supports both Prismane's predefined values and any other valid value for thefont-size
CSS property. - - The
fw
prop now supports both Prismane's predefined values and any other valid value for thefont-weight
CSS property.
- - The
Hooks
- - useClickOutside: Now accepts a third parameter - an array of DOM event names that will trigger the callback. By default, the hook listens for
mousedown
andtouchstart
events.
๐ Bug Fixes
- - Table: Fixed a border appearing above the
Table.Head
component. - - TextField: Fixed an issue where the
prefix
wasn't shown properly, due to prop inheritance.