ZIm/crates/ui/src/components
Nate Butler 19d6e067af
Toggle & Switch (#21979)
![CleanShot 2024-12-13 at 11 27
39@2x](https://github.com/user-attachments/assets/7c7828c0-c5c7-4dc6-931e-722366d4f15a)

- Adds the Switch component
- Updates `Selected`, `Selectable` -> `ToggleState`, `Toggleable`
- Adds `checkbox` and `switch` functions to align better with other
elements in our layout system.

We decided not to merge Switch and Checkbox. However, in a followup I'll
introduce a Toggle or AnyToggle enum so we can update
`CheckboxWithLabel` -> `ToggleWithLabel` as this component will work
exactly the same with either a Checkbox or a Switch.

Release Notes:

- N/A
2024-12-13 14:23:02 -05:00
..
avatar ui: Fix avatar indicators getting cut off (#18821) 2024-10-07 12:53:11 -04:00
button Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
label ui: Ensure Label with single_line set does not wrap (#21444) 2024-12-03 13:03:53 -05:00
list Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
stories Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
avatar.rs chore: Revert changes made to ui crate structure (#17516) 2024-09-06 21:38:56 +02:00
button.rs chore: Another round of style lints fixes (#17519) 2024-09-07 02:36:55 +02:00
content_group.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
context_menu.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
disclosure.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
divider.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
dropdown_menu.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
facepile.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
icon.rs project panel: Reintroduce project panel knockout color (#21926) 2024-12-13 00:52:03 -03:00
image.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
indent_guides.rs outline panel: Add indent guides (#19719) 2024-10-28 09:54:18 +01:00
indicator.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
keybinding.rs Fix file finder menu actions (#21087) 2024-11-23 02:21:19 +02:00
label.rs chore: Revert changes made to ui crate structure (#17516) 2024-09-06 21:38:56 +02:00
list.rs chore: Revert changes made to ui crate structure (#17516) 2024-09-06 21:38:56 +02:00
modal.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
navigable.rs gpui: Add scroll anchors (#19894) 2024-11-01 14:47:46 +01:00
numeric_stepper.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
popover.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
popover_menu.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
radio.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
right_click_menu.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
scrollbar.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
settings_container.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
settings_group.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
stack.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
stories.rs Add preview for Checkbox with Label (#20448) 2024-11-08 22:53:15 -05:00
tab.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
tab_bar.rs Dynamic tab bar height (#19076) 2024-11-16 13:48:25 +02:00
table.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
toggle.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
tool_strip.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
tooltip.rs Enhance the Vim Mode toggle discoverability (#21589) 2024-12-09 09:28:40 -03:00