@team_yumi/ramen 0.4.0 → 0.6.0
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.
|
@@ -16,6 +16,7 @@ export interface IProps {
|
|
|
16
16
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
17
17
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
18
18
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
19
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
19
20
|
innerButton?: {
|
|
20
21
|
icon: (typeof Collections.IIcon)[number];
|
|
21
22
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IProps as IInputProps } from '../x-input/root';
|
|
3
2
|
import { Collections } from '@yumi/models';
|
|
3
|
+
import { IProps as IInputProps } from '../x-input/root';
|
|
4
4
|
/**
|
|
5
5
|
* Properties for a custom input component.
|
|
6
6
|
* Extends the base input properties (excluding 'type').
|
|
@@ -26,6 +26,10 @@ export interface IProps extends Omit<IInputProps, 'type'> {
|
|
|
26
26
|
* Whether the input field is mandatory.
|
|
27
27
|
*/
|
|
28
28
|
mandatory?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Max digital count
|
|
31
|
+
*/
|
|
32
|
+
maxNumber?: number;
|
|
29
33
|
}
|
|
30
34
|
declare const XTextField: React.FC<IProps>;
|
|
31
35
|
export default XTextField;
|