@rolster/react-components 18.21.34 → 18.21.35
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.
- package/dist/esm/components/atoms/InputNumber/InputNumber.d.ts +5 -1
- package/dist/esm/components/atoms/InputNumber/InputNumber.js.map +1 -1
- package/dist/esm/components/atoms/InputSearch/InputSearch.d.ts +2 -2
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { InputProps } from '../../types';
|
|
2
2
|
import './InputNumber.css';
|
|
3
|
-
|
|
3
|
+
interface InputNumberProps extends InputProps<number> {
|
|
4
|
+
decimals?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function RlsInputNumber(props: InputNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputNumber.js","sourceRoot":"","sources":["../../../../../src/components/atoms/InputNumber/InputNumber.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"InputNumber.js","sourceRoot":"","sources":["../../../../../src/components/atoms/InputNumber/InputNumber.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,mBAAmB,CAAC;AAM3B,MAAM,UAAU,cAAc,CAAC,KAAuB;IACpD,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAC1C,WAAW,EAAE,KAAK,IAAI,KAAK,IAAI,CAAC,CACjC,CAAC;IAEF,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,KAAa,EAAE,EAAE;QAChB,CAAC,WAAW,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;QACrC,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,EACD,CAAC,WAAW,EAAE,OAAO,CAAC,CACvB,CAAC;IAEF,OAAO,CACL,cAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAC,kBAAkB,YAC/C,KAAC,QAAQ,OACH,KAAK,EACT,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,YAAY,YAEpB,WAAW,EAAE,KAAK,IAAI,UAAU,GACxB,GACP,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RolsterReactInputControl } from '../../types';
|
|
2
2
|
import './InputSearch.css';
|
|
3
3
|
interface InputSearchProps {
|
|
4
|
-
formControl?:
|
|
4
|
+
formControl?: RolsterReactInputControl<string>;
|
|
5
5
|
identifier?: string;
|
|
6
6
|
onEnter?: () => void;
|
|
7
7
|
onSearch?: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactControl } from '@rolster/react-forms';
|
|
2
2
|
import { KeyboardEvent } from 'react';
|
|
3
3
|
import { RlsComponent } from './definitions';
|
|
4
|
-
export type
|
|
4
|
+
export type RolsterReactInputControl<T = any> = ReactControl<HTMLInputElement, T> | ReactControl<HTMLInputElement, T | undefined>;
|
|
5
5
|
export interface InputProps<T = any> {
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
formControl?:
|
|
7
|
+
formControl?: RolsterReactInputControl<T>;
|
|
8
8
|
identifier?: string;
|
|
9
9
|
onEnter?: () => void;
|
|
10
10
|
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|