Commit graph

24 commits

Author SHA1 Message Date
Jason Lee
c7336fd5ea
Add InputOtp (#40)
https://github.com/user-attachments/assets/c92da4e7-21de-436f-968d-7cb47fa31aed
2024-07-17 18:49:41 +08:00
Jason Lee
3467522714
Add double click to select word support for Input. (#38)
Continue #27
2024-07-17 11:41:04 +08:00
Jason Lee
36411750ee Fix to limit change when Input is disabled.
Add clean button to List query input.
Add ButtonRouneded with px support.
2024-07-17 10:47:25 +08:00
Jason Lee
702863eb83
Add overflow scroll support to Input. (#37)
Continue #27

- Fix cut and paste invalid replace range.
- Add `Shift-Home`, `Shift-End` for select to home or end.

## Show case


https://github.com/user-attachments/assets/d99c56e3-5241-46e2-b3ac-f72ef962b0b5
2024-07-17 10:31:17 +08:00
Jason Lee
07e1296916
Add cleanable to Input (#36) 2024-07-16 19:44:16 +08:00
Jason Lee
ce7c1a3a34
Add Small, Large size support to Input and Dropdown and let them use same height. (#35)
- Add `Dropdown::string_list` to use `Vec<SharedString>` to create
dropdown for easy use.
- Add `input_px`, `input_py`, `input_h` trait methods to `Styled`
element.
2024-07-16 15:14:12 +08:00
Jason Lee
4ca98029dd
Fix placeholder style for Input (#32)
https://github.com/huacnlee/gpui-component/issues/27
2024-07-13 09:53:03 +08:00
Jason Lee
35cec4cf5c
Update to use better implementation of selection support for Input. (#31)
Co-authored-by: Conrad Irwin <conrad@zed.dev>
2024-07-13 09:40:42 +08:00
Jason Lee
41a83e6f6f
Improve Input (#29)
Continue #27 

- Fix selection color in dark mode.
- Allow to continue selection, even mouse is out of the input.
- Pause cursor blinking when keep typing.

https://github.com/user-attachments/assets/ce9e722c-5c47-4daa-b2ba-cbe1680c4932
2024-07-13 00:34:55 +08:00
Jason Lee
21f0e1c78a
Add mouse selection support to Input (#26)
Done reset mouse support of
https://github.com/zed-industries/zed/pull/13534


https://github.com/user-attachments/assets/71b1d4e4-eef7-4746-8400-b2e3812e5ad4
2024-07-12 22:41:18 +08:00
Jason Lee
ac789b2379
Add Table (#16)
https://github.com/huacnlee/gpui-component/assets/5518/8603cbcc-c416-4d10-84a0-8cfe2e021e1a
2024-07-06 21:01:16 +08:00
Jason Lee
c925a6aa61 Add ButtonStyle::Outline, ButtonStyle::Glost 2024-07-05 00:18:36 +08:00
Jason Lee
3ccadf6cc3
Improve focus (#14)
- Add `FocusableCycle` trait to help impl cycle focus.
- Add `outline` style to StyledExt.
2024-07-04 14:05:14 +08:00
Jason Lee
537dbfab9e Fix Input avoid copy, cut a empty into into clipboard. 2024-07-02 17:35:23 +08:00
Jason Lee
f84e8b82ef
Add prefix and suffix to Input. (#12)
<img width="393" alt="image"
src="https://github.com/huacnlee/gpui-component/assets/5518/5df8d269-ea04-4d42-95c5-a3358cdee9b5">
2024-07-01 23:30:06 +08:00
Jason Lee
2785f38eeb Add to blinking currsor support for Input. 2024-06-29 15:38:02 +08:00
Jason Lee
63076725f2 Add up, down, enter, esc keybinding for Dropdown. 2024-06-28 10:11:00 +08:00
Jason Lee
720672b0e2 Update Input, Button, Dropdown based on theme.radius 2024-06-28 10:11:00 +08:00
Jason Lee
1d1803f348 Fix Input keybinding on Windows. 2024-06-28 10:11:00 +08:00
Jason Lee
8489a3f7f7 Fix Picker to search filter. 2024-06-27 18:07:08 +08:00
Jason Lee
659f00c9a4
New input (#1)
![CleanShot 2024-06-27 at 15 34
23](https://github.com/huacnlee/gpui-app/assets/5518/95e24dd1-8924-47e4-8063-200fa76efa1f)

Ref: https://github.com/zed-industries/zed/pull/13534
2024-06-27 15:36:07 +08:00
Jason Lee
8440df938a Add checkbox, title_bar. 2024-06-25 17:16:04 +08:00
Jason Lee
b503d5f7e3 Add input 2024-06-14 19:47:03 +08:00
Jason Lee
537edcae99 Add input 2024-06-14 10:20:29 +08:00