@mistertemp/libs-front-shared 1.2.1 → 2.0.0-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistertemp/libs-front-shared",
3
- "version": "1.2.1",
3
+ "version": "2.0.0-alpha.1",
4
4
  "main": "index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
@@ -22,68 +22,66 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@axe-core/react": "4.10.0",
25
- "@mistertemp/design-system": "12.3.0",
25
+ "@mistertemp/design-system": "13.0.0-alpha.3",
26
26
  "@mistertemp/libs-work-environments": "0.8.1",
27
- "@mistertemp/types-shared": "2.3.0",
28
- "@testing-library/dom": "10.4.0",
29
- "@testing-library/jest-dom": "6.6.2",
30
- "@testing-library/react": "12.1.5",
27
+ "@mistertemp/types-shared": "2.7.0",
28
+ "@testing-library/dom": "10.4.1",
29
+ "@testing-library/jest-dom": "6.8.0",
30
+ "@testing-library/react": "16.3.0",
31
31
  "@testing-library/user-event": "14.6.1",
32
- "@types/jest": "29.5.7",
33
- "@types/lodash": "4.17.4",
34
- "@types/react": "17.0.52",
35
- "@types/react-dom": "17.0.18",
36
- "@types/react-router-dom": "5.3.3",
37
- "@types/react-test-renderer": "^18.0.7",
38
- "@types/react-transition-group": "4.4.10",
39
- "@typescript-eslint/eslint-plugin": "7.18.0",
40
- "@typescript-eslint/parser": "7.18.0",
41
- "@vitejs/plugin-react-swc": "3.10.0",
42
- "date-fns": "2.30.0",
43
- "eslint": "8.57.0",
44
- "eslint-config-prettier": "9.1.0",
45
- "eslint-plugin-import": "2.31.0",
46
- "eslint-plugin-jsx-a11y": "6.10.0",
47
- "eslint-plugin-prettier": "5.4.0",
48
- "eslint-plugin-react": "7.37.1",
49
- "eslint-plugin-react-hooks": "4.6.0",
50
- "eslint-plugin-simple-import-sort": "12.1.0",
51
- "eslint-plugin-testing-library": "6.5.0",
32
+ "@types/jest": "30.0.0",
33
+ "@types/lodash": "4.17.18",
34
+ "@types/react": "18.3.12",
35
+ "@types/react-dom": "18.3.5",
36
+ "@types/react-transition-group": "4.4.12",
37
+ "@typescript-eslint/eslint-plugin": "8.41.0",
38
+ "@typescript-eslint/parser": "8.41.0",
39
+ "@vitejs/plugin-react-swc": "4.0.1",
40
+ "date-fns": "3.6.0",
41
+ "eslint": "8.57.1",
42
+ "eslint-config-prettier": "10.1.8",
43
+ "eslint-plugin-import": "2.32.0",
44
+ "eslint-plugin-jsx-a11y": "6.10.2",
45
+ "eslint-plugin-prettier": "5.5.4",
46
+ "eslint-plugin-react": "7.37.5",
47
+ "eslint-plugin-react-hooks": "5.2.0",
48
+ "eslint-plugin-simple-import-sort": "12.1.1",
49
+ "eslint-plugin-testing-library": "7.6.6",
52
50
  "fuse.js": "7.1.0",
53
- "i18next": "23.15.1",
54
- "i18next-browser-languagedetector": "8.0.4",
55
- "i18next-http-backend": "2.6.1",
51
+ "i18next": "25.4.2",
52
+ "i18next-browser-languagedetector": "8.2.0",
53
+ "i18next-http-backend": "3.0.2",
56
54
  "identity-obj-proxy": "3.0.0",
57
- "jest-environment-jsdom": "29.7.0",
55
+ "jest-environment-jsdom": "30.1.2",
58
56
  "lodash": "4.17.21",
59
- "prettier": "3.5.3",
60
- "react": "17.0.2",
61
- "react-dom": "17.0.2",
62
- "react-hook-form": "7.57.0",
63
- "react-i18next": "14.1.0",
64
- "react-router-dom": "6.30.0",
57
+ "prettier": "3.6.2",
58
+ "react": "18.3.1",
59
+ "react-dom": "18.3.1",
60
+ "react-hook-form": "7.60.0",
61
+ "react-i18next": "15.7.3",
62
+ "react-router-dom": "7.8.2",
65
63
  "react-transition-group": "4.4.5",
66
- "sass": "1.89.0",
67
- "stylelint": "16.20.0",
64
+ "sass": "1.91.0",
65
+ "stylelint": "16.23.1",
68
66
  "stylelint-config-idiomatic-order": "10.0.0",
69
- "stylelint-config-standard-scss": "14.0.0",
67
+ "stylelint-config-standard-scss": "15.0.1",
70
68
  "stylelint-prettier": "5.0.3",
71
- "ts-jest": "29.3.2",
72
- "ts-node": "10.9.1",
73
- "typescript": "5.8.3",
74
- "vite": "6.3.4",
69
+ "ts-jest": "29.4.1",
70
+ "ts-node": "10.9.2",
71
+ "typescript": "5.9.2",
72
+ "vite": "7.0.4",
75
73
  "vite-plugin-environment": "1.1.3",
76
- "vite-plugin-svgr": "4.3.0"
74
+ "vite-plugin-svgr": "4.5.0"
77
75
  },
78
76
  "peerDependencies": {
79
- "@mistertemp/design-system": ">=12.0.0",
77
+ "@mistertemp/design-system": ">=13.0.0-alpha.3",
80
78
  "@mistertemp/libs-work-environments": "^0.8.1",
81
- "i18next": "^23.5.0",
82
- "i18next-browser-languagedetector": ">=8.0.0",
83
- "i18next-http-backend": ">=2.2.1",
84
- "react": "^17.0.2",
85
- "react-dom": "^17.0.2",
86
- "react-i18next": "^14.0.0 || ^15.0.0"
79
+ "i18next": "^25.4.2",
80
+ "i18next-browser-languagedetector": ">=8.2.0",
81
+ "i18next-http-backend": ">=3.0.2",
82
+ "react": "^18.3.1",
83
+ "react-dom": "^18.3.1",
84
+ "react-i18next": "^15.0.0"
87
85
  },
88
86
  "browserslist": {
89
87
  "production": [
@@ -1,5 +1,6 @@
1
1
  import { screen } from '@testing-library/react';
2
2
  import { format, startOfToday, startOfTomorrow } from 'date-fns';
3
+ import React from 'react';
3
4
 
4
5
  import { render } from '../../../../.jest/reactTestingLibrary.config';
5
6
  import { DateFilter } from '../DateFilter';
@@ -96,7 +96,7 @@ export function Filter<T extends string = string>({
96
96
  >(options.filter(({ id }) => dropdownValue?.includes(id)));
97
97
 
98
98
  const handleOnOpenChange = useCallback(
99
- (isOpen) => {
99
+ (isOpen: boolean) => {
100
100
  if (!isOpen && onDropdownValueChanged && internalDropdownValue) {
101
101
  const targetValue = internalDropdownValue.map(({ id }) => id);
102
102
 
@@ -90,7 +90,7 @@ export const ProfessionFilter = ({
90
90
  };
91
91
 
92
92
  const handleOpenChanged = useCallback(
93
- (isOpen) => {
93
+ (isOpen: boolean) => {
94
94
  if (!isOpen && selectionHasChanged.current) {
95
95
  selectionHasChanged.current = false;
96
96
  onChangeSelectedOptions?.(selectedOptions.current);
@@ -112,7 +112,10 @@ export const TextFilter: VFC<TextFilterProps> = ({
112
112
  size={size}
113
113
  onOpenChange={(isOpen) => {
114
114
  onOpenChange?.(isOpen);
115
- !isOpen && triggerValueChanged();
115
+
116
+ if (!isOpen) {
117
+ triggerValueChanged();
118
+ }
116
119
  }}
117
120
  {...dropdownProps}>
118
121
  <div className={styles.inputContainer}>