gpui-component/crates
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
..
macros chore: Fix spelling of the word masked (#990) 2025-06-19 12:34:19 +08:00
story chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102) 2025-07-29 17:31:52 +08:00
ui chrore: Refactor the disabled API for NumberInput, DatePicker, OtpInput, Calandar. (#1102) 2025-07-29 17:31:52 +08:00
webview chore: Update GPUI and fix FocusableWrapper removed error. (#1026) 2025-07-02 11:06:04 +08:00
wef wef: Fixed some issues (#975) 2025-06-18 10:46:55 +08:00