Commit graph

45 commits

Author SHA1 Message Date
Floyd Wang
14af8998bf
Add disabled state for the dropdown (#190) 2024-08-30 09:56:12 +08:00
Jason Lee
9768755eab
Fix panel resize when window resized. (#181)
Co-authored-by: Floyd Wang <gassnake999@gmail.com>
2024-08-28 19:40:35 +08:00
Jason Lee
e86f90d309
Close Dropdown menu on blur. (#157)
Closes #156
2024-08-16 14:03:45 +08:00
Floyd Wang
a02a6ed6b8
Set default true for cleanable & trigger event when dropdown clean (#152) 2024-08-15 18:01:43 +08:00
Floyd Wang
ccad5cd98e
TableDelegate support render_empty (#142) 2024-08-14 11:01:57 +08:00
Jason Lee
70bc526fbb
Fix Dropdown and DatePicker anchor to snap to window. (#139)
<img width="786" alt="image"
src="https://github.com/user-attachments/assets/c40fab1d-2cbe-4750-b05e-ed42cb43dd3c">
2024-08-13 18:10:30 +08:00
Jason Lee
bb6d8d8f60
Cleanup first version impls (#132) 2024-08-11 14:46:55 +08:00
Jason Lee
ebdcf244e2
Add Calendar and DatePicker. (#117)
https://github.com/user-attachments/assets/dda87fa7-f080-418a-8dd7-ab8581eb3beb
2024-08-07 20:25:11 +08:00
Jason Lee
827f57fb6a
Add Sizable trait to impl small, xsmall, large and apply to Button, Input, Dropdown, Switch. (#113) 2024-08-06 17:19:54 +08:00
Jason Lee
553b6409c0
Improve Dropdown to Add search support and custom icon (#106)
- Add SearchableVec to let Dropdown support search filter.
- Fix dropdown title overflow.
- Add to support custom dropdown right icon.

https://github.com/user-attachments/assets/b9e28fce-3e0f-44f7-a0f4-3e01f6db31d1
2024-08-05 11:47:55 +08:00
Jason Lee
0e3736e312
Update Dropdown title to use SharedString (#95) 2024-08-01 11:00:18 +08:00
Jason Lee
9766a0766b
Fix dropdown to avoid item text wrap. (#88) 2024-07-30 19:58:48 +08:00
Jason Lee
8aaeb9383d
Fix dropdown click to lose focus. (#80) 2024-07-29 19:00:17 +08:00
Floyd Wang
66698bfe27
Rename dropdown render_empty to empty (#82)
Also, `OTPInput` to `OtpInput`
2024-07-29 15:37:38 +08:00
Jason Lee
a3df086e79
theme: Fix list, table theme colors. (#79)
- Fix list, table theme colors.
- Fix table hover bg.
- Add avatar to table list.
- Update dropdown Size:Small style.
2024-07-29 13:52:45 +08:00
Floyd Wang
11034ec2ac Improve dropdown render_empty builder result from AnyElement to impl IntoElement for better usage 2024-07-26 17:26:58 +08:00
Floyd Wang
d278d85058
Imporve dropdown (#73)
* Remove min-height
* Provide `render_empty` for custom empty view
* Fix crash when delegate is empty
2024-07-26 14:31:47 +08:00
Floyd Wang
f02c2a82b1
Do not preset padding when input with affix (#70) 2024-07-25 11:02:04 +08:00
Floyd Wang
764e7486e7 Set the default cleanable to false for new dropdown (#63) 2024-07-24 10:07:11 +08:00
Floyd Wang
1b715c431f
Fix new dropdown selected_index not work (#60) 2024-07-23 19:18:39 +08:00
Jason Lee
613cfebb65
Improve ActiveTheme trait to impl ViewContent and ModelContext to support auto import. (#49) 2024-07-19 11:20:45 +08:00
Floyd Wang
653222db73
dropdown: Use event instead of callback (#46)
* Rule: use event for `Render`, use callback for `RenderOnce`
2024-07-18 18:40:32 +08:00
Floyd Wang
07a1f3099e dropdown: Add on change callback 2024-07-18 16:50:30 +08:00
尹吉峰
4ccbe9bd71
Update Dropdown (#42) 2024-07-18 16:12:12 +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
Floyd Wang
b1bb22fd1d Fix clippy warning 2024-07-15 11:42:14 +08:00
Jason Lee
9b51a5b998
Remove picker, add list instead. (#17) 2024-07-07 02:07:17 +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
d183bacc73
Add Scrollbar (#9)
https://github.com/huacnlee/gpui-component/assets/5518/5e4b7809-f2d0-4e45-a0f2-b9578323a11e
2024-06-30 23:31:16 +08:00
Jason Lee
6503e00b69 Fix dropdown height. 2024-06-30 19:04:53 +08:00
Jason Lee
329b116980 Use Element to paint DropdownMenu to fix layer priority. 2024-06-29 18:04:47 +08:00
Jason Lee
ddadcda140 Improve Picker details. 2024-06-29 14:39:15 +08:00
Jason Lee
3288270b49
Add Popover (#6) 2024-06-29 10:03:59 +08:00
Jason Lee
3e8421c495 Fix Icon default use theme foreground and allows to override. 2024-06-29 03:10:14 +08:00
Jason Lee
5393580789 Update Dropdown icon to ChevronsUpDown 2024-06-28 10:19:24 +08:00
Jason Lee
5d3f19bdd8 Fix Label text_size support. 2024-06-28 10:11:00 +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
daf4e713d1 Fix ListItem check icon. 2024-06-28 10:11:00 +08:00
Jason Lee
cb8067d89b Fix Checkbox story. 2024-06-28 10:11:00 +08:00
Jason Lee
910f27a66a Add Dropdown. 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
085b8e578b Add ListItem and update PickerStory base on it. 2024-06-26 18:31:50 +08:00
Jason Lee
d5f446a351 Add to support no appearance for TextField and fix invalid key handle. 2024-06-26 17:47:42 +08:00