Commit Graph

8 Commits

Author SHA1 Message Date
Bartłomiej Dach 970b1951ac
Rewrite logic slightly to better convey meaning of textbox clear 2022-04-03 14:26:08 +02:00
Jai Sharma 94fa5e2ef2 Use `Action<string>` for event `OnChatMessageCommitted` & clear textbox internally 2022-04-02 21:58:54 +01:00
Jai Sharma 9e152cd3fd Fix code quality issues 2022-04-02 17:27:44 +01:00
Jai Sharma 2297073b7e Use `OnChatMessageCommit` & `OnSearchTermsChanged` events in `ChatTextBar` 2022-04-02 17:15:19 +01:00
Jai Sharma fff30e8a6e Simplify show/hide of text and search in `ChatTextBar` 2022-03-30 21:02:12 +01:00
Jai Sharma eec3fef7a6 Remove the enter box in `ChatTextBar` 2022-03-30 20:25:23 +01:00
Jai Sharma e7d2d94eee Fix code quality issues in `ChatTextBar` 2022-03-30 02:16:50 +01:00
Jai Sharma f049d7cb67 Implement `ChatTextBox` for new chat design
Reference design: https://www.figma.com/file/f8b2dHp9LJCMOqYP4mdrPZ/Client%2FChat?node-id=1%3A297

Adds new component `ChatTextBox`.
Exposes `BindableBool` `ShowSearch` to change text input behaviour
between normal and search behaviour.

Adds new component `ChatTextBar`.
Exposes `BindableBool` `ShowSearch` which toggles between showing current
chat channel or search icon.
Additionally binds to child `ChatTextBox` components.
Requires a cached `Bindable<Channel>` instance to be managed by a parent
component.
2022-03-29 22:33:38 +01:00