gpui-component/crates/story/src
obito 7487662343
chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102)
- Added `disabled` method to OtpInput.
- Added `disabled` method to DatePicker.
- Added `disabled_matcher` method to CalendarState.

## Break Changes

- The `InputState` has been removed `disabled` and `set_disabled`
method, the disabled state should assign from TextInput element.

```diff
- let state = InputState::new("input1").disabled(true)
+ let state = InputState::new("input1");
+ TextInput::new(&state).disabled(true)
```

- Renamed `set_disabled` method to `set_disabled_matcher` from
`CalendarState`.
- Removed `set_disabled` method from `DatePickerState`, use
`disabled_matcher` method in `DatePicker` element.

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2025-07-29 17:31:52 +08:00
..
fixtures story: Improve story case style. (#1060) 2025-07-15 11:56:07 +08:00
accordion_story.rs accordion: Fix accordion to size full. (#1083) 2025-07-23 10:45:02 +00:00
alert_story.rs alert: Improve Alert styles. (#1044) 2025-07-04 15:29:05 +08:00
assets.rs button: Fix selected style for outline button. (#1070) 2025-07-17 14:20:19 +08:00
avatar_story.rs avatar: Add Avatar element. (#1028) 2025-07-02 18:58:06 +08:00
badge_story.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
button_story.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
calendar_story.rs chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102) 2025-07-29 17:31:52 +08:00
chart_story.rs plot: Use f32 instead of f64 (#1052) 2025-07-08 16:24:59 +08:00
checkbox_story.rs story: Improve story case style. (#1060) 2025-07-15 11:56:07 +08:00
clipboard_story.rs story: Improve story case style. (#1060) 2025-07-15 11:56:07 +08:00
color_picker_story.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
date_picker_story.rs chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102) 2025-07-29 17:31:52 +08:00
description_list_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
drawer_story.rs list: Update ListItem and DropdownListItem style. (#1095) 2025-07-28 18:38:39 +08:00
dropdown_story.rs input: Add appearance option to NumberInput, Dropdown, DatePicker to render without style. (#1054) 2025-07-14 19:57:56 +08:00
form_story.rs input: Add appearance option to NumberInput, Dropdown, DatePicker to render without style. (#1054) 2025-07-14 19:57:56 +08:00
icon_story.rs theme: Add theme schema to support JSON theme config. (#1050) 2025-07-07 19:40:00 +08:00
image_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
indicator_story.rs theme: Add theme schema to support JSON theme config. (#1050) 2025-07-07 19:40:00 +08:00
input_story.rs input(state): Provide context to the validate method (#1082) 2025-07-23 14:30:16 +08:00
kbd_story.rs gallery: Redesign the gallery. (#797) 2025-04-17 17:12:48 +08:00
label_story.rs label: Add support for highlighting specified text (#1073) 2025-07-18 16:33:36 +08:00
lib.rs story: Fix the startup error in the dock example (#1093) 2025-07-28 09:43:29 +08:00
list_story.rs list: Add support for scrolling to item with the given strategy (#1100) 2025-07-29 15:14:26 +08:00
main.rs theme: Fix some theme's scrollbar background color. (#1090) 2025-07-24 16:54:04 +08:00
menu_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
modal_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
notification_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
number_input_story.rs chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102) 2025-07-29 17:31:52 +08:00
otp_input_story.rs chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102) 2025-07-29 17:31:52 +08:00
popover_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
progress_story.rs story: Add Indicator, Skeleton story. (#1038) 2025-07-03 18:54:23 +08:00
radio_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
resizable_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00
scrollable_story.rs virtual_list: Fix scrollable size calculate in VirtualList. (#1087) 2025-07-24 08:30:42 +00:00
sidebar_story.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
skeleton_story.rs story: Add Indicator, Skeleton story. (#1038) 2025-07-03 18:54:23 +08:00
slider_story.rs input: Refactor Input, Picker as stateless mode. (#858) 2025-05-16 23:41:26 +08:00
switch_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00
table_story.rs input(state): Provide context to the validate method (#1082) 2025-07-23 14:30:16 +08:00
tabs_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00
tag_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00
textarea_story.rs theme: Update secondary color and fix toggle selected color. (#1039) 2025-07-03 19:23:40 +08:00
themes.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
title_bar.rs theme: Add to support highlight color to theme config. (#1055) 2025-07-14 17:04:18 +08:00
toggle_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00
tooltip_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00
virtual_list_story.rs virtual_list: Fix scrollable size calculate in VirtualList. (#1087) 2025-07-24 08:30:42 +00:00
webview_story.rs input: Refactor Input, Picker as stateless mode. (#858) 2025-05-16 23:41:26 +08:00
welcome_story.rs story: Fix #1017 duplicate action name error. (#1020) 2025-06-30 11:18:57 +08:00