Jason Lee
|
b3f62bf096
|
Export with_type and impl FluentBuilder for Notification. (#154)
|
2024-08-15 19:52:37 +08:00 |
|
Jason Lee
|
57dab4d15a
|
Rename with_id, with_type_id to id, type_id. (#153)
|
2024-08-15 18:05:07 +08:00 |
|
Floyd Wang
|
a02a6ed6b8
|
Set default true for cleanable & trigger event when dropdown clean (#152)
|
2024-08-15 18:01:43 +08:00 |
|
Jason Lee
|
36475bac76
|
Add with_type_id to support set a struct as a Notification unique id. (#151)
|
2024-08-15 18:01:32 +08:00 |
|
Jason Lee
|
981d1391e6
|
Update Root API (#150)
|
2024-08-15 17:27:34 +08:00 |
|
Jason Lee
|
c9763224c2
|
Add Notification (#149)
https://github.com/user-attachments/assets/8a10bff7-f669-471e-8516-2a64ae95ae0a
|
2024-08-15 16:50:33 +08:00 |
|
Jason Lee
|
6d86e64846
|
Update modal demo to focus input on open. (#147)
|
2024-08-15 09:45:58 +08:00 |
|
Jason Lee
|
a36e3e09d5
|
Focus back last focus handle when modal, drawer closed. (#145)
|
2024-08-14 18:14:59 +08:00 |
|
Floyd Wang
|
c9a1bba3c2
|
Fix the disabled style of ghost button (#144)
|
2024-08-14 17:44:00 +08:00 |
|
Jason Lee
|
3550b1ee13
|
Add slide down animation t Modal. (#141)
- Export cx.active_modal and cx.active_drawer
- Add support custom modal style, and add show_close option.
|
2024-08-14 17:23:39 +08:00 |
|
Floyd Wang
|
1da82c5453
|
Do not show the scrollbar when table is empty (#143)
|
2024-08-14 11:13:42 +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
|
b934ff76e6
|
Add Modal (#138)
https://github.com/user-attachments/assets/f4c2f9dd-2508-4251-a861-1af3af7542a3
|
2024-08-13 17:41:12 +08:00 |
|
Jason Lee
|
63f333d8ad
|
Add Drawer (#137)
- Update scrollable to accept EntityId.
https://github.com/user-attachments/assets/a6c02890-3a6e-4b82-b5c5-3f0a48f35368
|
2024-08-13 16:01:52 +08:00 |
|
Jason Lee
|
7059165fa6
|
datepicker: Fix calender popup background. (#136)
Closes #135
|
2024-08-12 18:52:58 +08:00 |
|
Jason Lee
|
7d309acd2f
|
Improve Table head to not show selected bg and remove drag border color. (#134)
https://github.com/user-attachments/assets/0836014d-9240-4e77-9daf-dd1ef8d81cd5
|
2024-08-11 21:25:41 +08:00 |
|
Jason Lee
|
b301c5b8fe
|
Optimize and simplify the BlinkCursor. (#133)
|
2024-08-11 21:12:29 +08:00 |
|
Jason Lee
|
bb6d8d8f60
|
Cleanup first version impls (#132)
|
2024-08-11 14:46:55 +08:00 |
|
Jason Lee
|
8f71b807aa
|
Add Animate (#130)
|
2024-08-09 18:22:06 +08:00 |
|
Floyd Wang
|
283b319edd
|
Input add set_placeholder method (#131)
|
2024-08-09 17:24:29 +08:00 |
|
Floyd Wang
|
e073b60bc1
|
Fix the issue of repeatedly setting the input background color (#129)
|
2024-08-09 16:09:22 +08:00 |
|
Jason Lee
|
ebf8a7f6f3
|
Add Skeleton (#128)
https://github.com/user-attachments/assets/deb57e8d-f894-41b6-b44b-cc2b4a307429
|
2024-08-09 15:55:48 +08:00 |
|
Floyd Wang
|
eb53016d71
|
Use ViewContext<Self> instead of WindowContext for input affix (#126)
|
2024-08-09 11:37:13 +08:00 |
|
Jason Lee
|
2b4ed4f8f6
|
Improve Tooltip style details. (#125)
|
2024-08-09 10:36:54 +08:00 |
|
Jason Lee
|
97dd09fbda
|
Fix to display correct days in calendar view. (#124)
<img width="624" alt="image"
src="https://github.com/user-attachments/assets/3e6528a0-d649-42a9-9c82-f1e06539ec46">
<img width="617" alt="image"
src="https://github.com/user-attachments/assets/370dfa05-e8b1-4aa6-8eda-070d6f4a2661">
|
2024-08-09 10:16:31 +08:00 |
|
Jason Lee
|
5d55c5c31e
|
Add DateRangePicker (#123)
https://github.com/user-attachments/assets/cc934401-78c5-42d6-afc8-a365fea2129b
|
2024-08-08 23:29:54 +08:00 |
|
Jason Lee
|
2c531fa3ef
|
Add text style to Button with no padding. (#122)
|
2024-08-08 20:13:52 +08:00 |
|
Jason Lee
|
966ce4c2dd
|
Add link, link_with_icon to PopupMenu, and remove track_focus. (#121)
- Add `popup_menu` quick API to Button to let easy to use.
|
2024-08-08 19:50:10 +08:00 |
|
Jason Lee
|
27d094c590
|
datepicker: Add Year, Month select mode. (#119)
https://github.com/user-attachments/assets/b6232d8e-0832-449d-a982-49e015232cfa
|
2024-08-07 23:09:42 +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 |
|
Floyd Wang
|
e07f551317
|
Fix the issue where large sections of label do not wrap (#118)
|
2024-08-07 19:38:48 +08:00 |
|
Jason Lee
|
340c5fef3d
|
Improve OtpInput to add more size, use Icon to render mask. (#116)
- Add `default_value`, `set_value`, `masked` method.
- Add `set_value`, `value` method to set/get from OptInput.
<img width="390" alt="image"
src="https://github.com/user-attachments/assets/ef5368e9-132d-4de6-8506-aeecc47a9189">
|
2024-08-07 11:39:02 +08:00 |
|
Jason Lee
|
cbffb9a543
|
Fix Input clean button size. (#115)
|
2024-08-06 23:51:09 +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
|
2e1a4f84fd
|
Add to support click Scrollbar to scroll and fix thumb position when dragging. (#112)
- Add scrollbar border on hover and dragging.
https://github.com/user-attachments/assets/c7c3b9c1-d458-438d-bf78-3b5bc2ddcd5c
|
2024-08-06 15:09:42 +08:00 |
|
Floyd Wang
|
bc4e5732a0
|
Fix label text align not work (#111)
<img width="1668" alt="image"
src="https://github.com/user-attachments/assets/e1bbad88-40c3-4701-bfd0-38381e2ed67b">
|
2024-08-06 11:51:39 +08:00 |
|
Jason Lee
|
f3fdfae002
|
Fix list next to select first item, cancel to deselect item. (#110)
- Add confirmed to ListItem to show check style.
|
2024-08-06 11:31:35 +08:00 |
|
Jason Lee
|
e7a0d13b69
|
Fix windows build (#109)
|
2024-08-05 21:43:55 +08:00 |
|
Jason Lee
|
a5989f6a7c
|
Improve PopupMenu style (#108)
<img width="216" alt="image"
src="https://github.com/user-attachments/assets/9dcfd30f-62cc-41ff-a97d-f69b79bd997c">
<img width="346" alt="image"
src="https://github.com/user-attachments/assets/c7e564e9-c0f9-4282-9df1-9c2cd92efea9">
|
2024-08-05 21:23:57 +08:00 |
|
Jason Lee
|
4b61c3c25a
|
Add ContextMenu (#107)
https://github.com/user-attachments/assets/1534bb31-1d32-40b8-8871-f41fb182c8e9
|
2024-08-05 20:54:07 +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 |
|
Floyd Wang
|
12b5d1b501
|
Add clipboard (#105)
|
2024-08-05 11:35:02 +08:00 |
|
Floyd Wang
|
48c452e6f6
|
Better disabled style for ghost button (#102)
|
2024-08-02 18:20:08 +08:00 |
|
Floyd Wang
|
e784f98a38
|
TableDelegate methods return ViewContext<Table<Self>> (#101)
|
2024-08-02 16:38:48 +08:00 |
|
Floyd Wang
|
48efdecdef
|
The button compact method defaults to true (#99)
|
2024-08-02 11:31:40 +08:00 |
|
Jason Lee
|
22a1157378
|
Add prefix, suffix to TabBar. (#98)
|
2024-08-01 21:36:33 +08:00 |
|
Jason Lee
|
68e6464bea
|
Fix pane bottom offset in scroll mode.
|
2024-08-01 20:28:02 +08:00 |
|
Jason Lee
|
e9d409a4b1
|
Add Link style Button (#97)
<img width="1305" alt="image"
src="https://github.com/user-attachments/assets/ee42d86f-e237-4544-aa2d-1414dabfb55e">
- Update `primary`, `danger`, `outline`, `ghost`, `link` methods to as a
builder method to just change style.
- Add `compact` used to reduce padding.
<img width="1279" alt="image"
src="https://github.com/user-attachments/assets/ccbd71c0-9157-4ef8-b164-b99ade24cf92">
|
2024-08-01 19:54:35 +08:00 |
|
Jason Lee
|
4a5b387b40
|
Fix mistake unwrap in PopupMenu.
|
2024-08-01 15:43:21 +08:00 |
|
Jason Lee
|
3dd149e711
|
Update PopupMenu to support checked style. (#96)
<img width="256" alt="image"
src="https://github.com/user-attachments/assets/87009870-e426-48e5-9860-ba91b4702ea4">
|
2024-08-01 15:41:00 +08:00 |
|
Michael Angerman
|
eb75df5d99
|
Update demo application to activate on startup (#92)
When I start up *gpui-component* its nice to be able to see that
application show up,
similar to the way zed editor works upon startup...
|
2024-08-01 11:03:40 +08:00 |
|
Jason Lee
|
0e3736e312
|
Update Dropdown title to use SharedString (#95)
|
2024-08-01 11:00:18 +08:00 |
|
Floyd Wang
|
c91f71ae21
|
Table support render_tr and stripe methods (#94)
|
2024-08-01 10:17:21 +08:00 |
|
Floyd Wang
|
35c3b13bdd
|
Fix typo in table
|
2024-07-31 15:34:36 +08:00 |
|
Jason Lee
|
d1c19c5912
|
Add Link (#91)
|
2024-07-31 14:24:57 +08:00 |
|
Jason Lee
|
d659713555
|
Fix Label, Checkbox, Radio to support label text wrap. (#90)
<img width="1102" alt="image"
src="https://github.com/user-attachments/assets/1443378d-54e9-43a4-8bb8-0d0f4581169d">
|
2024-07-31 11:49:32 +08:00 |
|
Jason Lee
|
c94e9feae2
|
Fix to work with new GPUI.
|
2024-07-31 10:12:26 +08:00 |
|
Jason Lee
|
9766a0766b
|
Fix dropdown to avoid item text wrap. (#88)
|
2024-07-30 19:58:48 +08:00 |
|
Jason Lee
|
6465969c5a
|
Improve svg_img to use cached assets. (#87)
|
2024-07-30 19:54:27 +08:00 |
|
Floyd Wang
|
73121123f3
|
Add custom button demo (#86)
|
2024-07-30 11:24:29 +08:00 |
|
Floyd Wang
|
fc6423f22c
|
Add ButtonCustomStyle for customized color (#85)
|
2024-07-30 10:38:42 +08:00 |
|
Jason Lee
|
f496c241d7
|
button: Fix Button click prevent_default. (#84)
- Use icon in title_bar for switch theme, and add GitHub icon.
|
2024-07-30 00:28:18 +08:00 |
|
Jason Lee
|
8aaeb9383d
|
Fix dropdown click to lose focus. (#80)
|
2024-07-29 19:00:17 +08:00 |
|
尹吉峰
|
6e58edd349
|
input: Expose TextInput::disabled (#81)
|
2024-07-29 18:51:46 +08:00 |
|
Floyd Wang
|
97d139f9ec
|
Expose focus method for otp input (#83)
|
2024-07-29 16:20:58 +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 |
|
Jason Lee
|
01aa9401c5
|
resizable: Fix resizable handle to keep showing drag style on dragging. (#78)
https://github.com/user-attachments/assets/a8d2abcb-9122-4060-bfd6-2673903c18a1
|
2024-07-29 10:01:22 +08:00 |
|
Jason Lee
|
15e9804f08
|
table: Add sort button to table column. (#77)
https://github.com/user-attachments/assets/d6a3dc9b-758f-4108-8d1d-d8a3d2dc0dc2
|
2024-07-28 23:24:55 +08:00 |
|
Jason Lee
|
7bfdfcb2ec
|
table: Add drag to move col. (#76)
https://github.com/user-attachments/assets/9964f3da-0376-4b53-b64e-c9652c324aa3
|
2024-07-28 22:20:23 +08:00 |
|
Jason Lee
|
79958fc95c
|
Add to support Table column resizing. (#75)
https://github.com/user-attachments/assets/d56f2cd7-df08-437b-9eea-849d68094e1f
|
2024-07-28 00:51:37 +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
|
55822144c4
|
Rename InputOtp to OTPInput (#74)
|
2024-07-26 17:12:23 +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
|
81ecb1e11b
|
InputEvent support clone (#72)
|
2024-07-25 18:43:29 +08:00 |
|
Jason Lee
|
2396c918f2
|
Hide scrollbar when scroll are is small than container. (#71)
|
2024-07-25 15:53:57 +08:00 |
|
Floyd Wang
|
f02c2a82b1
|
Do not preset padding when input with affix (#70)
|
2024-07-25 11:02:04 +08:00 |
|
尹吉峰
|
7489a4ffdd
|
Update WebView to pass wry::WebView instance (#69)
It's much prefer to use `WebViewBuilder` instead of
[WebView::new](https://docs.rs/wry/latest/wry/struct.WebView.html#method.new)
|
2024-07-24 19:32:05 +08:00 |
|
Jason Lee
|
4c81977639
|
Fix Label text_align again.
|
2024-07-24 19:01:43 +08:00 |
|
Jason Lee
|
ed132ad55e
|
Add more example to Label.
|
2024-07-24 18:56:32 +08:00 |
|
Jason Lee
|
c538a231c1
|
Fix Label text_align.
|
2024-07-24 18:39:13 +08:00 |
|
Jason Lee
|
6b019e3954
|
Impl InteractiveElement, StatefulInteractiveElement for Scrollable.
|
2024-07-24 17:59:44 +08:00 |
|
Jason Lee
|
030a706a4c
|
Refactor ScrollView into scrollable fluent method. (#68)
|
2024-07-24 17:50:50 +08:00 |
|
Jason Lee
|
7305967c09
|
Impl Scrollable for Focusable<E>, Stateful<E>.
|
2024-07-24 17:01:15 +08:00 |
|
Jason Lee
|
d63e256f19
|
Update Label masked char (#67)
|
2024-07-24 16:35:28 +08:00 |
|
Jason Lee
|
22a15c7dcc
|
Update scroll view (#66)
|
2024-07-24 15:41:20 +08:00 |
|
Jason Lee
|
4edf1e3427
|
Update ScrollView to let content is FnOnce. (#65)
|
2024-07-24 11:38:30 +08:00 |
|
Jason Lee
|
e0103d1d58
|
Add CI (#62)
|
2024-07-24 10:39:19 +08:00 |
|
Jason Lee
|
d60a1122d4
|
Scroll to top when list have searched. (#64)
|
2024-07-24 10:09:12 +08:00 |
|
Floyd Wang
|
764e7486e7
|
Set the default cleanable to false for new dropdown (#63)
|
2024-07-24 10:07:11 +08:00 |
|
Jason Lee
|
b4862082f1
|
Improve list item (#61)
|
2024-07-23 22:08:21 +08:00 |
|
Floyd Wang
|
1b715c431f
|
Fix new dropdown selected_index not work (#60)
|
2024-07-23 19:18:39 +08:00 |
|
Jason Lee
|
db14f0a2e5
|
Add pattern and validate to Input for limit input format. (#59)
|
2024-07-23 15:36:08 +08:00 |
|
Jason Lee
|
3ec35929ae
|
Add font-weight methods to styled: font_light, font_semibold, font_bold ... (#58)
https://tailwindcss.com/docs/font-weight
|
2024-07-23 14:57:16 +08:00 |
|
Jason Lee
|
30f34dc780
|
Fix button icon color support (#57)
|
2024-07-23 13:45:34 +08:00 |
|
Jason Lee
|
652efd187c
|
Update list to save the task on the struct.
|
2024-07-23 10:51:11 +08:00 |
|
Jason Lee
|
80bdf20376
|
Export set_query and query method to List.
|
2024-07-23 10:15:38 +08:00 |
|
Jason Lee
|
8ff4658c96
|
Update Icon again, let new to support impl Into<Icon>.
|
2024-07-23 10:02:34 +08:00 |
|
Jason Lee
|
8609968ac2
|
Improve Icon::new to support impl Into<IconName>
|
2024-07-23 09:56:57 +08:00 |
|