8 Commits (3cf676a3d5b5621cdc93bd9a7537a3f8f19d5809)

Author SHA1 Message Date
Mike Fix 5f752c28e8
undo some changes 2 years ago
Mike Fix dc61e0714a
make WidthHandler pure component 2 years ago
Mike Fix 4f4a3837ce
bugfix width handler 2 years ago
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
5 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>
5 years ago