mia-platform / design-system

React graphical components designed by Mia Platform
https://mia-platform.github.io/design-system/
Apache License 2.0
12 stars 1 forks source link

feat: Tree component #563

Closed ThisIsDemetrio closed 3 months ago

ThisIsDemetrio commented 3 months ago

Description

We add the Tree component, based on Ant Design Tree component.

Includes most of the properties of the original Tree component, like: showing vertical lines for chidlren, showing icons before the node, checkbox on nodes, strict checking, callback on checking (by clicking the checkbox, if enabled) and/or on selecting item (by clicking on the name), fixed height and virtual scrolling.

Add a little tweak to ensure that, when showing lines, the icon to expand/collapse children is still a caret (and not the "+"/"-" icons).

Also:

Addressed issue

No particular issue opened for this component.

Checklist

fredmaggiowski commented 3 months ago

since we changed existing theme colors, is this breaking?

the next tag will already include color changes, i'm labelling this as breaking as well