Skip to content

v3.3.0

Choose a tag to compare

@mkocansey mkocansey released this 01 Dec 15:05
· 162 commits to main since this release
5d3379d

Release Notes

Enhanced Button and Table Components with Icon Type Support

This release introduces improved support for icon types within the BladeWind components library. The following enhancements and changes have been made:

Improvements

  • Table Component
    • Added support for specifying icon types (solid or outline) on action buttons in data tables.
    • button_outline allows you to opt either for outlined or filled action buttons.
    • The action icons are now defined as an array instead of strings separated by pipes. The pipes approach will be supported till v4.0

Before...

$action_icons = [
    "icon:chat | tip:send message | color:green | click:sendMessage('{first_name}')",
    "icon:pencil | click:redirect('/user/{id}')",
    "icon:trash | color:red | click:deleteUser({id}, '{first_name}')",
];

Now...

$action_icons = [
    [
        'icon'  => 'chat',
        'icon_type' => 'solid',
        'tip'   => 'send message',
        'color' => 'green',
        'click' => "sendMessage('{first_name}')",
    ],
    [
        'icon'  => 'pencil',
        'click' => "redirect('/user/{id}')",
    ],
    [
        'icon'  => 'trash',
        'color' => 'red',
        'click' => "deleteUser({id}, '{first_name}')",
    ],
];
  • Card and Statistics Component
    • Both components have been refactored to support radius to change how rounded the components look.