@pnkx-lib/ui 1.9.272 → 1.9.274
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.
|
@@ -46,11 +46,11 @@ const SearchFiltersForm = ({
|
|
|
46
46
|
hideDefaultSubmit,
|
|
47
47
|
hideResetButton
|
|
48
48
|
}) => {
|
|
49
|
-
const
|
|
49
|
+
const methods = useForm({
|
|
50
50
|
defaultValues: initialValues
|
|
51
51
|
});
|
|
52
|
-
const { control, handleSubmit, reset, setValue } =
|
|
53
|
-
return /* @__PURE__ */ jsx(FormProvider, { ...
|
|
52
|
+
const { control, handleSubmit, reset, setValue } = methods;
|
|
53
|
+
return /* @__PURE__ */ jsx(FormProvider, { ...methods, children: /* @__PURE__ */ jsxs("form", { className: classNameWrapperForm, onSubmit: handleSubmit(onSubmit), children: [
|
|
54
54
|
/* @__PURE__ */ jsx("div", { className: classNamesContainer, children: renderFilterFields && renderFilterFields({
|
|
55
55
|
control,
|
|
56
56
|
setValue,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnkx-lib/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.274",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./es/index.js",
|
|
7
7
|
"module": "./es/index.js",
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
"antd": "^5.24.4",
|
|
123
123
|
"react": "^18.3.1",
|
|
124
124
|
"react-dom": "^18.3.1",
|
|
125
|
+
"react-hook-form": "^7.54.2",
|
|
125
126
|
"react-router": "^7.6.0",
|
|
126
127
|
"tailwindcss": "^4.0.17"
|
|
127
128
|
},
|
|
@@ -145,8 +146,6 @@
|
|
|
145
146
|
"date-fns": "^4.1.0",
|
|
146
147
|
"lodash": "^4.17.21",
|
|
147
148
|
"react-datepicker": "^4.16.0",
|
|
148
|
-
"react-hook-form": "^7.54.2",
|
|
149
|
-
"react-number-format": "^5.4.3",
|
|
150
149
|
"tailwind-merge": "^3.3.0",
|
|
151
150
|
"yup": "^1.6.1",
|
|
152
151
|
"zustand": "^5.0.3"
|