@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": "
|
|
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": "
|
|
25
|
+
"@mistertemp/design-system": "13.0.0-alpha.3",
|
|
26
26
|
"@mistertemp/libs-work-environments": "0.8.1",
|
|
27
|
-
"@mistertemp/types-shared": "2.
|
|
28
|
-
"@testing-library/dom": "10.4.
|
|
29
|
-
"@testing-library/jest-dom": "6.
|
|
30
|
-
"@testing-library/react": "
|
|
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": "
|
|
33
|
-
"@types/lodash": "4.17.
|
|
34
|
-
"@types/react": "
|
|
35
|
-
"@types/react-dom": "
|
|
36
|
-
"@types/react-
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"eslint": "
|
|
44
|
-
"eslint-
|
|
45
|
-
"eslint-plugin-
|
|
46
|
-
"eslint-plugin-
|
|
47
|
-
"eslint-plugin-
|
|
48
|
-
"eslint-plugin-
|
|
49
|
-
"eslint-plugin-
|
|
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": "
|
|
54
|
-
"i18next-browser-languagedetector": "8.0
|
|
55
|
-
"i18next-http-backend": "
|
|
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": "
|
|
55
|
+
"jest-environment-jsdom": "30.1.2",
|
|
58
56
|
"lodash": "4.17.21",
|
|
59
|
-
"prettier": "3.
|
|
60
|
-
"react": "
|
|
61
|
-
"react-dom": "
|
|
62
|
-
"react-hook-form": "7.
|
|
63
|
-
"react-i18next": "
|
|
64
|
-
"react-router-dom": "
|
|
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.
|
|
67
|
-
"stylelint": "16.
|
|
64
|
+
"sass": "1.91.0",
|
|
65
|
+
"stylelint": "16.23.1",
|
|
68
66
|
"stylelint-config-idiomatic-order": "10.0.0",
|
|
69
|
-
"stylelint-config-standard-scss": "
|
|
67
|
+
"stylelint-config-standard-scss": "15.0.1",
|
|
70
68
|
"stylelint-prettier": "5.0.3",
|
|
71
|
-
"ts-jest": "29.
|
|
72
|
-
"ts-node": "10.9.
|
|
73
|
-
"typescript": "5.
|
|
74
|
-
"vite": "
|
|
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.
|
|
74
|
+
"vite-plugin-svgr": "4.5.0"
|
|
77
75
|
},
|
|
78
76
|
"peerDependencies": {
|
|
79
|
-
"@mistertemp/design-system": ">=
|
|
77
|
+
"@mistertemp/design-system": ">=13.0.0-alpha.3",
|
|
80
78
|
"@mistertemp/libs-work-environments": "^0.8.1",
|
|
81
|
-
"i18next": "^
|
|
82
|
-
"i18next-browser-languagedetector": ">=8.
|
|
83
|
-
"i18next-http-backend": ">=
|
|
84
|
-
"react": "^
|
|
85
|
-
"react-dom": "^
|
|
86
|
-
"react-i18next": "^
|
|
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": [
|
|
@@ -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
|
-
|
|
115
|
+
|
|
116
|
+
if (!isOpen) {
|
|
117
|
+
triggerValueChanged();
|
|
118
|
+
}
|
|
116
119
|
}}
|
|
117
120
|
{...dropdownProps}>
|
|
118
121
|
<div className={styles.inputContainer}>
|