@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.
@@ -1,3 +1,7 @@
1
1
  import { InputProps } from '../../types';
2
2
  import './InputNumber.css';
3
- export declare function RlsInputNumber(props: InputProps<number>): import("react/jsx-runtime").JSX.Element;
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;AAE3B,MAAM,UAAU,cAAc,CAAC,KAAyB;IACtD,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
+ {"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 { RolsterControl } from '../../types';
1
+ import { RolsterReactInputControl } from '../../types';
2
2
  import './InputSearch.css';
3
3
  interface InputSearchProps {
4
- formControl?: RolsterControl<string>;
4
+ formControl?: RolsterReactInputControl<string>;
5
5
  identifier?: string;
6
6
  onEnter?: () => void;
7
7
  onSearch?: () => void;
@@ -2,3 +2,4 @@ export * from './atoms';
2
2
  export * from './definitions';
3
3
  export * from './molecules';
4
4
  export * from './organisms';
5
+ export { RolsterReactInputControl } from './types';
@@ -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 RolsterControl<T = any> = ReactControl<HTMLInputElement, T> | ReactControl<HTMLInputElement, T | undefined>;
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?: RolsterControl<T>;
7
+ formControl?: RolsterReactInputControl<T>;
8
8
  identifier?: string;
9
9
  onEnter?: () => void;
10
10
  onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolster/react-components",
3
- "version": "18.21.34",
3
+ "version": "18.21.35",
4
4
  "type": "module",
5
5
  "description": "Package containing UI components for React Project.",
6
6
  "module": "dist/esm/index.js",