5 Commits (3f6b14de9bddfff6af460a4ff398a29e63d0813f)

Author SHA1 Message Date
Mike Fix 3f6b14de9b
refactor widthhandler a bit 2 years ago
Mike Fix bd8cb2a66e
confirm width state on mouse up 2 years ago
Mike Fix 33cc091e7b
move onMouseUp to component handler 2 years ago
Mike Fix 6e1b115c95
move mouse up listener to the window
Closes #1034
4 years ago
aluc 41722923d5
add 'width' option for Carbon container (#949)
* feat: add 'width' option for Carbon container

* feat: draggable width adjustment

* chore: auto disable widthAdjustment when edge starts dragging

* remove label width default; tweak settings style

* use only right width handler

* use react effects, add a11y role and props

* clean up code

* use clamp fn

* move max and min widths out of state

* give WidthHandler a display name

* tweak variable names

Co-authored-by: Mike Fix <mrfix84@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
4 years ago