Skip to content

Commit ecc0f86

Browse files
author
Kubit
committed
Update package and fix tsc errors
1 parent 52c14c1 commit ecc0f86

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubit-ui-web/react-components",
3-
"version": "1.6.2",
3+
"version": "1.7.0",
44
"description": "Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience",
55
"author": {
66
"name": "Kubit",
@@ -111,8 +111,8 @@
111111
"@types/react-dom": "^18.3.0",
112112
"@types/styled-components": "^5.1.34",
113113
"@types/ungap__structured-clone": "^1.2.0",
114-
"@typescript-eslint/eslint-plugin": "^7.14.1",
115-
"@typescript-eslint/parser": "^7.14.1",
114+
"@typescript-eslint/eslint-plugin": "^7.15.0",
115+
"@typescript-eslint/parser": "^7.15.0",
116116
"@ungap/structured-clone": "^1.2.0",
117117
"@vitejs/plugin-react": "^4.3.1",
118118
"babel-jest": "^29.7.0",
@@ -127,13 +127,13 @@
127127
"eslint-plugin-n": "^17.9.0",
128128
"eslint-plugin-node": "^11.1.0",
129129
"eslint-plugin-prettier": "5.1.3",
130-
"eslint-plugin-promise": "^6.2.0",
130+
"eslint-plugin-promise": "^6.4.0",
131131
"eslint-plugin-react": "^7.34.3",
132132
"eslint-plugin-react-hooks": "^4.6.2",
133133
"eslint-plugin-react-refresh": "^0.4.7",
134134
"eslint-plugin-storybook": "^0.8.0",
135135
"eslint-plugin-unused-imports": "^4.0.0",
136-
"globals": "^15.6.0",
136+
"globals": "^15.8.0",
137137
"gts": "^5.3.1",
138138
"html-validate": "^8.20.1",
139139
"jest": "^29.7.0",
@@ -151,9 +151,9 @@
151151
"ts-jest": "^29.1.5",
152152
"tsc-alias": "1.8.10",
153153
"typedoc": "^0.26.3",
154-
"typedoc-plugin-markdown": "^4.1.0",
155-
"typescript": "^5.5.2",
156-
"vite": "^5.3.2",
154+
"typedoc-plugin-markdown": "^4.1.2",
155+
"typescript": "^5.5.3",
156+
"vite": "^5.3.3",
157157
"vite-tsconfig-paths": "^4.3.2",
158158
"yarn-deduplicate": "^6.0.2"
159159
},

src/components/inputCurrency/__tests__/inputCurrency.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from 'react';
33

44
import { axe } from 'jest-axe';
55

6-
import { InputContentPosition, InputState } from '@/components/input/types';
6+
import { FormatNumber, InputContentPosition, InputState } from '@/components/input/types';
77
import { renderProvider } from '@/tests/renderProvider/renderProvider.utility';
88
import { POSITIONS } from '@/types/positions';
99

@@ -32,7 +32,9 @@ const format = {
3232

3333
describe('New Input Currency Component', () => {
3434
test('Should render InputCurrency component', async () => {
35-
const { container } = renderProvider(<InputCurrency {...mockProps} formatNumber={format} />);
35+
const { container } = renderProvider(
36+
<InputCurrency {...mockProps} formatNumber={format as FormatNumber} />
37+
);
3638

3739
const currencyBox = screen.getByText('EUR');
3840
expect(currencyBox).toBeInTheDocument();

src/hooks/useInput/__tests__/useInput.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { act, renderHook } from '@testing-library/react-hooks';
22
import React, { ChangeEvent } from 'react';
33

4+
import { FormatNumber } from '@/components';
45
import * as validationsProvider from '@/provider/validations/validationsProvider';
56

67
import { useInput } from '../useInput';
78

89
describe('useInput Hook', () => {
910
it('useInput - on internal change should call parent onChange', () => {
1011
const onChange = jest.fn();
11-
const formatNumber = { style: 'decimal' };
12+
const formatNumber = { style: 'decimal' } as FormatNumber;
1213
const ref = React.createRef<HTMLInputElement | undefined>();
1314
const currentValue = '123234';
1415
const regex = new RegExp('^[0-9]*$');
@@ -43,7 +44,7 @@ describe('useInput Hook', () => {
4344
});
4445
it('useInput - on internal blur should call parent onBlur', () => {
4546
const onBlur = jest.fn();
46-
const formatNumber = { style: 'decimal' };
47+
const formatNumber = { style: 'decimal' } as FormatNumber;
4748
const { result } = renderHook(() => useInput({ onBlur, formatNumber }));
4849

4950
act(() => {

0 commit comments

Comments
 (0)