diff --git a/components/lib/button/Button.spec.js b/components/lib/button/Button.spec.js
index 5171344dba..fcf46d1e34 100644
--- a/components/lib/button/Button.spec.js
+++ b/components/lib/button/Button.spec.js
@@ -1,82 +1,158 @@
import '@testing-library/jest-dom';
-import { render } from '@testing-library/react';
+import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import { Button } from './Button';
describe('Button', () => {
test('when visible is false Button return null', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-button').length).toBe(0);
});
test('when visible is true Button render correctly', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-button').length).toBe(1);
});
test('when iconPos is bottom Button is vertical', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-button-vertical').length).toBe(1);
});
test('when label is empty it returns empty button', async () => {
+ // Arrange
const { container } = render();
+
+ // Act + Assert
const button = container.getElementsByClassName('p-button-label p-c');
expect(button[0].innerHTML).toBe(' ');
});
test('when badge is true it renders Button with badge', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-badge').length).toBe(1);
});
test('when badge is null it renders Button without badge', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-badge').length).toBe(0);
});
test('when click the button if loading is true it renders Button with loading icon', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-button-icon').length).toBe(1);
});
test('when click the button if loading is false it renders Button without loading icon', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
expect(container.getElementsByClassName('p-button-loading-icon').length).toBe(0);
});
test('when label is true it renders Button with default aria label', () => {
+ // Arrange
const { container } = render();
+
+ // Act + Assert
const hasAriaLabel = container.getElementsByClassName('p-button')[0].getAttribute('aria-label');
expect(hasAriaLabel).toBe(null);
});
test('when aria-label prop is not exist aria-label prop should be equal to label prop ', () => {
+ // Arrange
const { container } = render();
+
+ // Act + Assert
const getAriaLabel = container.getElementsByClassName('p-button')[0].getAttribute('aria-label');
expect(getAriaLabel).toBe('test');
});
test('when label prop is not exist label prop should be equal to aria-label prop', () => {
+ // Arrange
const { container } = render();
+
+ // Act + Assert
const getAriaLabel = container.getElementsByClassName('p-button')[0].getAttribute('aria-label');
expect(getAriaLabel).toBe('test');
});
- //
+
test('when using badge and label the aria-label should contain both values', () => {
+ // Arrange
const { container } = render();
+
+ // Act + Assert
const getAriaLabel = container.getElementsByClassName('p-button')[0].getAttribute('aria-label');
expect(getAriaLabel).toBe('test lost');
});
+
+ test('when using tooltip make sure the tooltip is rendered', async () => {
+ // Arrange
+ const { container } = render();
+ const button = container.getElementsByClassName('p-button')[0];
+ const tooltipText = /Jest Tooltip/i;
+
+ // tooltip does not exist to start
+ expect(screen.queryByText(tooltipText)).toBeNull();
+
+ // Act
+ fireEvent.mouseEnter(button);
+
+ // Assert
+ await waitFor(() => screen.getByText(tooltipText));
+ expect(screen.getByText(tooltipText)).toBeVisible();
+
+ // tooltip disappears when we mouse out
+ fireEvent.mouseLeave(button);
+ expect(screen.queryByText(tooltipText)).toBeNull();
+ });
+
+ test('when button is clicked ensure onClick is fired', () => {
+ // Arrange
+ const clickOn = jest.fn();
+ const { container } = render();
+ const button = container.getElementsByClassName('p-button')[0];
+
+ // Act
+ fireEvent.click(button);
+
+ // Assert
+ expect(clickOn).toHaveBeenCalledTimes(1);
+ });
+
+ test('when button is disabled the click event should not fire', () => {
+ // Arrange
+ const clickOn = jest.fn();
+ const { container } = render();
+ const button = container.getElementsByClassName('p-button')[0];
+
+ // Act
+ fireEvent.click(button);
+
+ // Assert
+ expect(clickOn).toHaveBeenCalledTimes(0);
+ });
});
diff --git a/components/lib/chip/Chip.spec.js b/components/lib/chip/Chip.spec.js
index 4da70e5826..226c519e17 100644
--- a/components/lib/chip/Chip.spec.js
+++ b/components/lib/chip/Chip.spec.js
@@ -5,37 +5,57 @@ import '@testing-library/jest-dom';
describe('Chip', () => {
test('when removable is true it returns with remove icon', () => {
+ // Arrange
const removeOn = jest.fn();
const { container } = render();
const chipRemoveIcon = container.getElementsByClassName('p-chip-remove-icon')[0];
+ // Act
fireEvent.click(chipRemoveIcon);
+ // Assert
expect(container.getElementsByClassName('p-chip-remove-icon pi pi-times-circle').length).toBe(0);
expect(removeOn).toHaveBeenCalledTimes(1);
});
test('when image is property it returns with image class', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
const wrapper = container.getElementsByClassName('p-chip p-component p-chip-image');
const chipImage = within(wrapper[0]).getByRole('img');
expect(chipImage.getAttribute('alt')).toBe('chip');
});
+ test('when imageAlt property is set the alt is set', () => {
+ // Arrange
+ const { container } = render();
+
+ // Act + Assert
+ const wrapper = container.getElementsByClassName('p-chip p-component p-chip-image');
+ const chipImage = within(wrapper[0]).getByRole('img');
+
+ expect(chipImage.getAttribute('alt')).toBe('jest');
+ });
+
test('when icon is property it returns with icon class', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
const icon = container.getElementsByClassName('p-chip-icon');
const iconClass = icon[0].getAttribute('class');
-
+
expect(iconClass).toBe('p-chip-icon pi pi-check');
});
test('when label is property it returns with label class', () => {
+ // Arrange
const { container } = render();
+ // Act + Assert
const label = container.getElementsByClassName('p-chip-text');
const spanTextContent = label[0].textContent;
diff --git a/package-lock.json b/package-lock.json
index ae25ba3844..6d9939148b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,14 +22,14 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"react-final-form": "^6.5.9",
- "react-hook-form": "^7.39.0",
+ "react-hook-form": "^7.39.1",
"react-transition-group": "^4.4.5",
"xlsx": "0.18.5"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
- "@babel/plugin-transform-runtime": "^7.18.10",
- "@babel/preset-env": "^7.19.3",
+ "@babel/plugin-transform-runtime": "^7.19.6",
+ "@babel/preset-env": "^7.19.4",
"@babel/preset-react": "^7.18.6",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-babel": "^6.0.2",
@@ -38,13 +38,14 @@
"@rollup/plugin-replace": "^5.0.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.2",
- "@types/node": "^18.11.7",
- "@types/react": "^18.0.18",
- "@types/react-dom": "^18.0.6",
+ "@testing-library/user-event": "^14.4.3",
+ "@types/node": "^18.11.9",
+ "@types/react": "^18.0.24",
+ "@types/react-dom": "^18.0.8",
"@types/react-transition-group": "^4.4.5",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"eslint": "8.26.0",
- "eslint-config-next": "13.0.0",
+ "eslint-config-next": "13.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest-dom": "^4.0.2",
"gulp": "^4.0.2",
@@ -60,7 +61,7 @@
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.55.0",
- "typescript": "^4.8.3"
+ "typescript": "^4.8.4"
}
},
"node_modules/@adobe/css-tools": {
@@ -95,9 +96,9 @@
}
},
"node_modules/@babel/compat-data": {
- "version": "7.19.3",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz",
- "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==",
+ "version": "7.20.1",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz",
+ "integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==",
"dev": true,
"engines": {
"node": ">=6.9.0"
@@ -439,9 +440,9 @@
}
},
"node_modules/@babel/helper-string-parser": {
- "version": "7.18.10",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz",
- "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==",
+ "version": "7.19.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz",
+ "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==",
"dev": true,
"engines": {
"node": ">=6.9.0"
@@ -700,14 +701,14 @@
}
},
"node_modules/@babel/plugin-proposal-object-rest-spread": {
- "version": "7.18.9",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz",
- "integrity": "sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q==",
+ "version": "7.19.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz",
+ "integrity": "sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q==",
"dev": true,
"dependencies": {
- "@babel/compat-data": "^7.18.8",
- "@babel/helper-compilation-targets": "^7.18.9",
- "@babel/helper-plugin-utils": "^7.18.9",
+ "@babel/compat-data": "^7.19.4",
+ "@babel/helper-compilation-targets": "^7.19.3",
+ "@babel/helper-plugin-utils": "^7.19.0",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-parameters": "^7.18.8"
},
@@ -1095,12 +1096,12 @@
}
},
"node_modules/@babel/plugin-transform-block-scoping": {
- "version": "7.18.9",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.18.9.tgz",
- "integrity": "sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw==",
+ "version": "7.20.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz",
+ "integrity": "sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w==",
"dev": true,
"dependencies": {
- "@babel/helper-plugin-utils": "^7.18.9"
+ "@babel/helper-plugin-utils": "^7.19.0"
},
"engines": {
"node": ">=6.9.0"
@@ -1148,12 +1149,12 @@
}
},
"node_modules/@babel/plugin-transform-destructuring": {
- "version": "7.18.13",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.18.13.tgz",
- "integrity": "sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow==",
+ "version": "7.20.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz",
+ "integrity": "sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA==",
"dev": true,
"dependencies": {
- "@babel/helper-plugin-utils": "^7.18.9"
+ "@babel/helper-plugin-utils": "^7.19.0"
},
"engines": {
"node": ">=6.9.0"
@@ -1389,12 +1390,12 @@
}
},
"node_modules/@babel/plugin-transform-parameters": {
- "version": "7.18.8",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz",
- "integrity": "sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==",
+ "version": "7.20.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz",
+ "integrity": "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==",
"dev": true,
"dependencies": {
- "@babel/helper-plugin-utils": "^7.18.6"
+ "@babel/helper-plugin-utils": "^7.19.0"
},
"engines": {
"node": ">=6.9.0"
@@ -1515,9 +1516,9 @@
}
},
"node_modules/@babel/plugin-transform-runtime": {
- "version": "7.19.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.1.tgz",
- "integrity": "sha512-2nJjTUFIzBMP/f/miLxEK9vxwW/KUXsdvN4sR//TmuDhe6yU2h57WmIOE12Gng3MDP/xpjUV/ToZRdcf8Yj4fA==",
+ "version": "7.19.6",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz",
+ "integrity": "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==",
"dev": true,
"dependencies": {
"@babel/helper-module-imports": "^7.18.6",
@@ -1642,12 +1643,12 @@
}
},
"node_modules/@babel/preset-env": {
- "version": "7.19.3",
- "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.3.tgz",
- "integrity": "sha512-ziye1OTc9dGFOAXSWKUqQblYHNlBOaDl8wzqf2iKXJAltYiR3hKHUKmkt+S9PppW7RQpq4fFCrwwpIDj/f5P4w==",
+ "version": "7.19.4",
+ "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz",
+ "integrity": "sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg==",
"dev": true,
"dependencies": {
- "@babel/compat-data": "^7.19.3",
+ "@babel/compat-data": "^7.19.4",
"@babel/helper-compilation-targets": "^7.19.3",
"@babel/helper-plugin-utils": "^7.19.0",
"@babel/helper-validator-option": "^7.18.6",
@@ -1662,7 +1663,7 @@
"@babel/plugin-proposal-logical-assignment-operators": "^7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
- "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
+ "@babel/plugin-proposal-object-rest-spread": "^7.19.4",
"@babel/plugin-proposal-optional-catch-binding": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-private-methods": "^7.18.6",
@@ -1686,10 +1687,10 @@
"@babel/plugin-transform-arrow-functions": "^7.18.6",
"@babel/plugin-transform-async-to-generator": "^7.18.6",
"@babel/plugin-transform-block-scoped-functions": "^7.18.6",
- "@babel/plugin-transform-block-scoping": "^7.18.9",
+ "@babel/plugin-transform-block-scoping": "^7.19.4",
"@babel/plugin-transform-classes": "^7.19.0",
"@babel/plugin-transform-computed-properties": "^7.18.9",
- "@babel/plugin-transform-destructuring": "^7.18.13",
+ "@babel/plugin-transform-destructuring": "^7.19.4",
"@babel/plugin-transform-dotall-regex": "^7.18.6",
"@babel/plugin-transform-duplicate-keys": "^7.18.9",
"@babel/plugin-transform-exponentiation-operator": "^7.18.6",
@@ -1716,7 +1717,7 @@
"@babel/plugin-transform-unicode-escapes": "^7.18.10",
"@babel/plugin-transform-unicode-regex": "^7.18.6",
"@babel/preset-modules": "^0.1.5",
- "@babel/types": "^7.19.3",
+ "@babel/types": "^7.19.4",
"babel-plugin-polyfill-corejs2": "^0.3.3",
"babel-plugin-polyfill-corejs3": "^0.6.0",
"babel-plugin-polyfill-regenerator": "^0.4.1",
@@ -1826,12 +1827,12 @@
}
},
"node_modules/@babel/types": {
- "version": "7.19.3",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",
- "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",
+ "version": "7.20.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz",
+ "integrity": "sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==",
"dev": true,
"dependencies": {
- "@babel/helper-string-parser": "^7.18.10",
+ "@babel/helper-string-parser": "^7.19.4",
"@babel/helper-validator-identifier": "^7.19.1",
"to-fast-properties": "^2.0.0"
},
@@ -2800,9 +2801,9 @@
"integrity": "sha512-9P9THmRFVKGKt9DYqeC2aKIxm8rlvkK38V1P1sRE7qyoPBIs8l9oo79QoSdPtOWfzkbDAVUqvbQGgTMsb8BtJg=="
},
"node_modules/@next/eslint-plugin-next": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.0.0.tgz",
- "integrity": "sha512-z+gnX4Zizatqatc6f4CQrcC9oN8Us3Vrq/OLyc98h7K/eWctrnV91zFZodmJHUjx0cITY8uYM7LXD7IdYkg3kg==",
+ "version": "13.0.1",
+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.0.1.tgz",
+ "integrity": "sha512-t3bggJhKE/oB4pvMM7hMNnmIpIqsMGJ+OLklk8llOkSeXtfCV+MBQbhImWxf5QODkxNAmMK3IJGAAecQhBTc/Q==",
"dev": true,
"dependencies": {
"glob": "7.1.7"
@@ -3670,6 +3671,19 @@
"@types/react": "^17"
}
},
+ "node_modules/@testing-library/user-event": {
+ "version": "14.4.3",
+ "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.4.3.tgz",
+ "integrity": "sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "peerDependencies": {
+ "@testing-library/dom": ">=7.21.4"
+ }
+ },
"node_modules/@tootallnate/once": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz",
@@ -3840,9 +3854,9 @@
"dev": true
},
"node_modules/@types/node": {
- "version": "18.11.7",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.7.tgz",
- "integrity": "sha512-LhFTglglr63mNXUSRYD8A+ZAIu5sFqNJ4Y2fPuY7UlrySJH87rRRlhtVmMHplmfk5WkoJGmDjE9oiTfyX94CpQ==",
+ "version": "18.11.9",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz",
+ "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
"dev": true
},
"node_modules/@types/prettier": {
@@ -3864,9 +3878,9 @@
"optional": true
},
"node_modules/@types/react": {
- "version": "18.0.20",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.20.tgz",
- "integrity": "sha512-MWul1teSPxujEHVwZl4a5HxQ9vVNsjTchVA+xRqv/VYGCuKGAU6UhfrTdF5aBefwD1BHUD8i/zq+O/vyCm/FrA==",
+ "version": "18.0.24",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.24.tgz",
+ "integrity": "sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q==",
"dev": true,
"dependencies": {
"@types/prop-types": "*",
@@ -3875,9 +3889,9 @@
}
},
"node_modules/@types/react-dom": {
- "version": "18.0.6",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.6.tgz",
- "integrity": "sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==",
+ "version": "18.0.8",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.8.tgz",
+ "integrity": "sha512-C3GYO0HLaOkk9dDAz3Dl4sbe4AKUGTCfFIZsz3n/82dPNN8Du533HzKatDxeUYWu24wJgMP1xICqkWk1YOLOIw==",
"dev": true,
"dependencies": {
"@types/react": "*"
@@ -6906,12 +6920,12 @@
}
},
"node_modules/eslint-config-next": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.0.0.tgz",
- "integrity": "sha512-y2nqWS2tycWySdVhb+rhp6CuDmDazGySqkzzQZf3UTyfHyC7og1m5m/AtMFwCo5mtvDqvw1BENin52kV9733lg==",
+ "version": "13.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.0.1.tgz",
+ "integrity": "sha512-/N9UpSwkbEMj5pIiB235p7QHaSW08ta/iKVaIHF44wufxr+PuJVLwg5LzlAaQbmCZCBpYvVttl3ZxTusP1g2sg==",
"dev": true,
"dependencies": {
- "@next/eslint-plugin-next": "13.0.0",
+ "@next/eslint-plugin-next": "13.0.1",
"@rushstack/eslint-patch": "^1.1.3",
"@typescript-eslint/parser": "^5.21.0",
"eslint-import-resolver-node": "^0.3.6",
@@ -14585,9 +14599,9 @@
}
},
"node_modules/react-hook-form": {
- "version": "7.39.0",
- "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.39.0.tgz",
- "integrity": "sha512-rekW5NMBVG0nslE2choOKThy0zxLWQeoew87yTLwb3C9F91LaXwu/dhfFL/D3hdnSMnrTG60gVN/v6rvCrSOTw==",
+ "version": "7.39.1",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.39.1.tgz",
+ "integrity": "sha512-MiF9PCILN5KulhSGbnjohMiTOrB47GerDTichMNP0y2cPUu1GTRFqbunOxCE9N1499YTLMV/ne4gFzqCp1rxrQ==",
"engines": {
"node": ">=12.22.0"
},
@@ -16823,9 +16837,9 @@
"dev": true
},
"node_modules/typescript": {
- "version": "4.8.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz",
- "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==",
+ "version": "4.8.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
+ "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
@@ -17649,9 +17663,9 @@
}
},
"@babel/compat-data": {
- "version": "7.19.3",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz",
- "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==",
+ "version": "7.20.1",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz",
+ "integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==",
"dev": true
},
"@babel/core": {
@@ -17907,9 +17921,9 @@
}
},
"@babel/helper-string-parser": {
- "version": "7.18.10",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz",
- "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==",
+ "version": "7.19.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz",
+ "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==",
"dev": true
},
"@babel/helper-validator-identifier": {
@@ -18078,14 +18092,14 @@
}
},
"@babel/plugin-proposal-object-rest-spread": {
- "version": "7.18.9",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz",
- "integrity": "sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q==",
+ "version": "7.19.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz",
+ "integrity": "sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q==",
"dev": true,
"requires": {
- "@babel/compat-data": "^7.18.8",
- "@babel/helper-compilation-targets": "^7.18.9",
- "@babel/helper-plugin-utils": "^7.18.9",
+ "@babel/compat-data": "^7.19.4",
+ "@babel/helper-compilation-targets": "^7.19.3",
+ "@babel/helper-plugin-utils": "^7.19.0",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-parameters": "^7.18.8"
}
@@ -18344,12 +18358,12 @@
}
},
"@babel/plugin-transform-block-scoping": {
- "version": "7.18.9",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.18.9.tgz",
- "integrity": "sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw==",
+ "version": "7.20.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz",
+ "integrity": "sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "^7.18.9"
+ "@babel/helper-plugin-utils": "^7.19.0"
}
},
"@babel/plugin-transform-classes": {
@@ -18379,12 +18393,12 @@
}
},
"@babel/plugin-transform-destructuring": {
- "version": "7.18.13",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.18.13.tgz",
- "integrity": "sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow==",
+ "version": "7.20.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz",
+ "integrity": "sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "^7.18.9"
+ "@babel/helper-plugin-utils": "^7.19.0"
}
},
"@babel/plugin-transform-dotall-regex": {
@@ -18530,12 +18544,12 @@
}
},
"@babel/plugin-transform-parameters": {
- "version": "7.18.8",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz",
- "integrity": "sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==",
+ "version": "7.20.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz",
+ "integrity": "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "^7.18.6"
+ "@babel/helper-plugin-utils": "^7.19.0"
}
},
"@babel/plugin-transform-property-literals": {
@@ -18608,9 +18622,9 @@
}
},
"@babel/plugin-transform-runtime": {
- "version": "7.19.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.1.tgz",
- "integrity": "sha512-2nJjTUFIzBMP/f/miLxEK9vxwW/KUXsdvN4sR//TmuDhe6yU2h57WmIOE12Gng3MDP/xpjUV/ToZRdcf8Yj4fA==",
+ "version": "7.19.6",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz",
+ "integrity": "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==",
"dev": true,
"requires": {
"@babel/helper-module-imports": "^7.18.6",
@@ -18687,12 +18701,12 @@
}
},
"@babel/preset-env": {
- "version": "7.19.3",
- "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.3.tgz",
- "integrity": "sha512-ziye1OTc9dGFOAXSWKUqQblYHNlBOaDl8wzqf2iKXJAltYiR3hKHUKmkt+S9PppW7RQpq4fFCrwwpIDj/f5P4w==",
+ "version": "7.19.4",
+ "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz",
+ "integrity": "sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg==",
"dev": true,
"requires": {
- "@babel/compat-data": "^7.19.3",
+ "@babel/compat-data": "^7.19.4",
"@babel/helper-compilation-targets": "^7.19.3",
"@babel/helper-plugin-utils": "^7.19.0",
"@babel/helper-validator-option": "^7.18.6",
@@ -18707,7 +18721,7 @@
"@babel/plugin-proposal-logical-assignment-operators": "^7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
- "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
+ "@babel/plugin-proposal-object-rest-spread": "^7.19.4",
"@babel/plugin-proposal-optional-catch-binding": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-private-methods": "^7.18.6",
@@ -18731,10 +18745,10 @@
"@babel/plugin-transform-arrow-functions": "^7.18.6",
"@babel/plugin-transform-async-to-generator": "^7.18.6",
"@babel/plugin-transform-block-scoped-functions": "^7.18.6",
- "@babel/plugin-transform-block-scoping": "^7.18.9",
+ "@babel/plugin-transform-block-scoping": "^7.19.4",
"@babel/plugin-transform-classes": "^7.19.0",
"@babel/plugin-transform-computed-properties": "^7.18.9",
- "@babel/plugin-transform-destructuring": "^7.18.13",
+ "@babel/plugin-transform-destructuring": "^7.19.4",
"@babel/plugin-transform-dotall-regex": "^7.18.6",
"@babel/plugin-transform-duplicate-keys": "^7.18.9",
"@babel/plugin-transform-exponentiation-operator": "^7.18.6",
@@ -18761,7 +18775,7 @@
"@babel/plugin-transform-unicode-escapes": "^7.18.10",
"@babel/plugin-transform-unicode-regex": "^7.18.6",
"@babel/preset-modules": "^0.1.5",
- "@babel/types": "^7.19.3",
+ "@babel/types": "^7.19.4",
"babel-plugin-polyfill-corejs2": "^0.3.3",
"babel-plugin-polyfill-corejs3": "^0.6.0",
"babel-plugin-polyfill-regenerator": "^0.4.1",
@@ -18844,12 +18858,12 @@
}
},
"@babel/types": {
- "version": "7.19.3",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",
- "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",
+ "version": "7.20.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz",
+ "integrity": "sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==",
"dev": true,
"requires": {
- "@babel/helper-string-parser": "^7.18.10",
+ "@babel/helper-string-parser": "^7.19.4",
"@babel/helper-validator-identifier": "^7.19.1",
"to-fast-properties": "^2.0.0"
}
@@ -19590,9 +19604,9 @@
"integrity": "sha512-9P9THmRFVKGKt9DYqeC2aKIxm8rlvkK38V1P1sRE7qyoPBIs8l9oo79QoSdPtOWfzkbDAVUqvbQGgTMsb8BtJg=="
},
"@next/eslint-plugin-next": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.0.0.tgz",
- "integrity": "sha512-z+gnX4Zizatqatc6f4CQrcC9oN8Us3Vrq/OLyc98h7K/eWctrnV91zFZodmJHUjx0cITY8uYM7LXD7IdYkg3kg==",
+ "version": "13.0.1",
+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.0.1.tgz",
+ "integrity": "sha512-t3bggJhKE/oB4pvMM7hMNnmIpIqsMGJ+OLklk8llOkSeXtfCV+MBQbhImWxf5QODkxNAmMK3IJGAAecQhBTc/Q==",
"dev": true,
"requires": {
"glob": "7.1.7"
@@ -20179,6 +20193,13 @@
}
}
},
+ "@testing-library/user-event": {
+ "version": "14.4.3",
+ "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.4.3.tgz",
+ "integrity": "sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q==",
+ "dev": true,
+ "requires": {}
+ },
"@tootallnate/once": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz",
@@ -20336,9 +20357,9 @@
"dev": true
},
"@types/node": {
- "version": "18.11.7",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.7.tgz",
- "integrity": "sha512-LhFTglglr63mNXUSRYD8A+ZAIu5sFqNJ4Y2fPuY7UlrySJH87rRRlhtVmMHplmfk5WkoJGmDjE9oiTfyX94CpQ==",
+ "version": "18.11.9",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz",
+ "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
"dev": true
},
"@types/prettier": {
@@ -20360,9 +20381,9 @@
"optional": true
},
"@types/react": {
- "version": "18.0.20",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.20.tgz",
- "integrity": "sha512-MWul1teSPxujEHVwZl4a5HxQ9vVNsjTchVA+xRqv/VYGCuKGAU6UhfrTdF5aBefwD1BHUD8i/zq+O/vyCm/FrA==",
+ "version": "18.0.24",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.24.tgz",
+ "integrity": "sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q==",
"dev": true,
"requires": {
"@types/prop-types": "*",
@@ -20371,9 +20392,9 @@
}
},
"@types/react-dom": {
- "version": "18.0.6",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.6.tgz",
- "integrity": "sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==",
+ "version": "18.0.8",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.8.tgz",
+ "integrity": "sha512-C3GYO0HLaOkk9dDAz3Dl4sbe4AKUGTCfFIZsz3n/82dPNN8Du533HzKatDxeUYWu24wJgMP1xICqkWk1YOLOIw==",
"dev": true,
"requires": {
"@types/react": "*"
@@ -22725,12 +22746,12 @@
}
},
"eslint-config-next": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.0.0.tgz",
- "integrity": "sha512-y2nqWS2tycWySdVhb+rhp6CuDmDazGySqkzzQZf3UTyfHyC7og1m5m/AtMFwCo5mtvDqvw1BENin52kV9733lg==",
+ "version": "13.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.0.1.tgz",
+ "integrity": "sha512-/N9UpSwkbEMj5pIiB235p7QHaSW08ta/iKVaIHF44wufxr+PuJVLwg5LzlAaQbmCZCBpYvVttl3ZxTusP1g2sg==",
"dev": true,
"requires": {
- "@next/eslint-plugin-next": "13.0.0",
+ "@next/eslint-plugin-next": "13.0.1",
"@rushstack/eslint-patch": "^1.1.3",
"@typescript-eslint/parser": "^5.21.0",
"eslint-import-resolver-node": "^0.3.6",
@@ -28379,9 +28400,9 @@
}
},
"react-hook-form": {
- "version": "7.39.0",
- "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.39.0.tgz",
- "integrity": "sha512-rekW5NMBVG0nslE2choOKThy0zxLWQeoew87yTLwb3C9F91LaXwu/dhfFL/D3hdnSMnrTG60gVN/v6rvCrSOTw==",
+ "version": "7.39.1",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.39.1.tgz",
+ "integrity": "sha512-MiF9PCILN5KulhSGbnjohMiTOrB47GerDTichMNP0y2cPUu1GTRFqbunOxCE9N1499YTLMV/ne4gFzqCp1rxrQ==",
"requires": {}
},
"react-is": {
@@ -30120,9 +30141,9 @@
"dev": true
},
"typescript": {
- "version": "4.8.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz",
- "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==",
+ "version": "4.8.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
+ "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
"dev": true
},
"uglify-js": {
diff --git a/package.json b/package.json
index 80b451d638..7362c44739 100644
--- a/package.json
+++ b/package.json
@@ -34,14 +34,14 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"react-final-form": "^6.5.9",
- "react-hook-form": "^7.39.0",
+ "react-hook-form": "^7.39.1",
"react-transition-group": "^4.4.5",
"xlsx": "0.18.5"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
- "@babel/plugin-transform-runtime": "^7.18.10",
- "@babel/preset-env": "^7.19.3",
+ "@babel/plugin-transform-runtime": "^7.19.6",
+ "@babel/preset-env": "^7.19.4",
"@babel/preset-react": "^7.18.6",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-babel": "^6.0.2",
@@ -50,14 +50,14 @@
"@rollup/plugin-replace": "^5.0.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.2",
- "@types/node": "^18.11.7",
- "@types/react": "^18.0.18",
- "@types/react-dom": "^18.0.6",
+ "@testing-library/user-event": "^14.4.3",
+ "@types/node": "^18.11.9",
+ "@types/react": "^18.0.24",
+ "@types/react-dom": "^18.0.8",
"@types/react-transition-group": "^4.4.5",
"@typescript-eslint/eslint-plugin": "^5.42.0",
- "@testing-library/user-event": "^14.4.3",
"eslint": "8.26.0",
- "eslint-config-next": "13.0.0",
+ "eslint-config-next": "13.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest-dom": "^4.0.2",
"gulp": "^4.0.2",
@@ -73,6 +73,6 @@
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.55.0",
- "typescript": "^4.8.3"
+ "typescript": "^4.8.4"
}
}