@opengeoweb/form-fields 8.2.0 → 8.3.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/index.esm.js CHANGED
@@ -23232,7 +23232,8 @@ var ReactHookFormFormControl = function ReactHookFormFormControl(_a) {
23232
23232
  }
23233
23233
  }), sx)
23234
23234
  }, props), children, errors && /*#__PURE__*/React.createElement(FormHelperText, {
23235
- variant: "filled"
23235
+ variant: "filled",
23236
+ role: "alert"
23236
23237
  }, getErrorMessage(errors)));
23237
23238
  };
23238
23239
 
@@ -24800,6 +24801,13 @@ function setRef(ref, value) {
24800
24801
  }
24801
24802
  }
24802
24803
 
24804
+ /**
24805
+ * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.
24806
+ * This is useful for effects that are only needed for client-side rendering but not for SSR.
24807
+ *
24808
+ * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
24809
+ * and confirm it doesn't apply to your use-case.
24810
+ */
24803
24811
  const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
24804
24812
  var useEnhancedEffect$1 = useEnhancedEffect;
24805
24813
 
@@ -40548,27 +40556,12 @@ var ReactHookFormProviderWrapper = function ReactHookFormProviderWrapper(_ref2)
40548
40556
  }, children));
40549
40557
  };
40550
40558
 
40551
- /* *
40552
- * Licensed under the Apache License, Version 2.0 (the "License");
40553
- * you may not use this file except in compliance with the License.
40554
- * You may obtain a copy of the License at
40555
- *
40556
- * http://www.apache.org/licenses/LICENSE-2.0
40557
- *
40558
- * Unless required by applicable law or agreed to in writing, software
40559
- * distributed under the License is distributed on an "AS IS" BASIS,
40560
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40561
- * See the License for the specific language governing permissions and
40562
- * limitations under the License.
40563
- *
40564
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
40565
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
40566
- * */
40567
- var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_ref) {
40568
- var name = _ref.name,
40569
- _ref$defaultValue = _ref.defaultValue,
40570
- defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue,
40571
- rules = _ref.rules;
40559
+ var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_a) {
40560
+ var name = _a.name,
40561
+ _a$defaultValue = _a.defaultValue,
40562
+ defaultValue = _a$defaultValue === void 0 ? null : _a$defaultValue,
40563
+ rules = _a.rules,
40564
+ props = __rest(_a, ["name", "defaultValue", "rules"]);
40572
40565
  var _useFormContext = useFormContext(),
40573
40566
  control = _useFormContext.control;
40574
40567
  var _useController = useController(Object.assign({
@@ -40580,7 +40573,7 @@ var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_ref) {
40580
40573
  field = _useController.field;
40581
40574
  return field.value !== null ? /*#__PURE__*/React.createElement("input", Object.assign({}, field, {
40582
40575
  type: "hidden"
40583
- })) : null;
40576
+ }, props)) : null;
40584
40577
  };
40585
40578
 
40586
40579
  /* *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/form-fields",
3
- "version": "8.2.0",
3
+ "version": "8.3.1",
4
4
  "description": "GeoWeb form-fields library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,11 +14,11 @@
14
14
  "peerDependencies": {
15
15
  "@mui/material": "5.12.0",
16
16
  "@mui/x-date-pickers": "6.2.1",
17
- "@opengeoweb/theme": "8.2.0",
17
+ "@opengeoweb/theme": "8.3.1",
18
18
  "lodash": "4.17.21",
19
19
  "moment": "2.29.4",
20
20
  "moment-timezone": "0.5.43",
21
21
  "react": "18.2.0",
22
- "react-hook-form": "7.46.2"
22
+ "react-hook-form": "7.47.0"
23
23
  }
24
24
  }
@@ -32,7 +32,3 @@ export declare const DateTimeDarkTheme: {
32
32
  }[];
33
33
  };
34
34
  };
35
- export declare const DateTimeOldTheme: {
36
- (): React.ReactElement;
37
- storyName: string;
38
- };
@@ -32,7 +32,3 @@ export declare const NumberFieldDarkTheme: {
32
32
  }[];
33
33
  };
34
34
  };
35
- export declare const NumberFieldOldTheme: {
36
- (): React.ReactElement;
37
- storyName: string;
38
- };
@@ -32,7 +32,3 @@ export declare const FormProviderDarkTheme: {
32
32
  }[];
33
33
  };
34
34
  };
35
- export declare const FormProviderOldTheme: {
36
- (): React.ReactElement;
37
- storyName: string;
38
- };
@@ -32,7 +32,3 @@ export declare const RadioGroupDarkTheme: {
32
32
  }[];
33
33
  };
34
34
  };
35
- export declare const RadioGroupOldTheme: {
36
- (): React.ReactElement;
37
- storyName: string;
38
- };
@@ -24,7 +24,3 @@ export declare const SelectDarkTheme: {
24
24
  }[];
25
25
  };
26
26
  };
27
- export declare const SelectOldTheme: {
28
- (): React.ReactElement;
29
- storyName: string;
30
- };
@@ -32,7 +32,3 @@ export declare const TextFieldDarkTheme: {
32
32
  }[];
33
33
  };
34
34
  };
35
- export declare const TextFieldOldTheme: {
36
- (): React.ReactElement;
37
- storyName: string;
38
- };