@goodhood-web/ui 1.10.0-development.7 → 1.10.0-development.8

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.
@@ -0,0 +1,4 @@
1
+ import { InputFieldSpecialProps } from './InputFieldSpecial.types';
2
+
3
+ declare const InputFieldSpecial: ({ ariaLabel, disabled, errorMessage, id, maxDigits, name, onChange, placeholder, style, value, }: InputFieldSpecialProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default InputFieldSpecial;
@@ -0,0 +1,22 @@
1
+ export interface InputFieldSpecialProps {
2
+ ariaLabel?: string;
3
+ disabled?: boolean;
4
+ errorMessage?: string;
5
+ id: string;
6
+ maxDigits?: 'two' | 'three' | 'four';
7
+ name?: string;
8
+ onChange: (id: string, value: number) => void;
9
+ placeholder?: string;
10
+ style?: 'outline' | 'filled';
11
+ value?: number;
12
+ }
13
+ export declare const maxDigitsInputMap: {
14
+ four: number;
15
+ three: number;
16
+ two: number;
17
+ };
18
+ export declare const maxDigitsValueMap: {
19
+ four: number;
20
+ three: number;
21
+ two: number;
22
+ };
@@ -0,0 +1,3 @@
1
+ import { maxDigitsValueMap } from './InputFieldSpecial.types';
2
+
3
+ export declare const getValue: (value: number, maxDigits: keyof typeof maxDigitsValueMap) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.10.0-development.7",
3
+ "version": "1.10.0-development.8",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {