@momentum-design/components 0.105.0 → 0.105.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,16 @@ import { AUTO_CAPITALIZE, AUTO_COMPLETE, INPUT_TYPE } from './input.constants';
4
4
  type AutoCapitalizeType = ValueOf<typeof AUTO_CAPITALIZE>;
5
5
  type AutoCompleteType = ValueOf<typeof AUTO_COMPLETE>;
6
6
  type InputType = ValueOf<typeof INPUT_TYPE>;
7
- type InputClearEvent = TypedCustomEvent<Input>;
7
+ type InputInputEvent = OverrideEventTarget<InputEvent, Input>;
8
8
  type InputChangeEvent = TypedCustomEvent<Input>;
9
+ type InputFocusEvent = OverrideEventTarget<FocusEvent, Input>;
10
+ type InputBlurEvent = OverrideEventTarget<FocusEvent, Input>;
11
+ type InputClearEvent = TypedCustomEvent<Input>;
9
12
  interface Events {
10
- onInputEvent: OverrideEventTarget<InputEvent, Input>;
13
+ onInputEvent: InputInputEvent;
11
14
  onChangeEvent: InputChangeEvent;
12
- onFocusEvent: OverrideEventTarget<FocusEvent, Input>;
13
- onBlurEvent: OverrideEventTarget<FocusEvent, Input>;
15
+ onFocusEvent: InputFocusEvent;
16
+ onBlurEvent: InputBlurEvent;
14
17
  onClearEvent: InputClearEvent;
15
18
  }
16
- export type { AutoCapitalizeType, AutoCompleteType, InputType, InputClearEvent, InputChangeEvent, Events };
19
+ export type { AutoCapitalizeType, AutoCompleteType, InputType, InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent, Events, };