@opengeoweb/form-fields 8.2.0 → 8.3.0
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 +9 -23
- package/package.json +2 -2
- package/src/lib/components/ReactHookFormDateTime.stories.d.ts +0 -4
- package/src/lib/components/ReactHookFormNumberField.stories.d.ts +0 -4
- package/src/lib/components/ReactHookFormProvider.stories.d.ts +0 -4
- package/src/lib/components/ReactHookFormRadioGroup.stories.d.ts +0 -4
- package/src/lib/components/ReactHookFormSelect.stories.d.ts +0 -4
- package/src/lib/components/ReactHookFormTextField.stories.d.ts +0 -4
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
|
|
|
@@ -40548,27 +40549,12 @@ var ReactHookFormProviderWrapper = function ReactHookFormProviderWrapper(_ref2)
|
|
|
40548
40549
|
}, children));
|
|
40549
40550
|
};
|
|
40550
40551
|
|
|
40551
|
-
|
|
40552
|
-
|
|
40553
|
-
|
|
40554
|
-
|
|
40555
|
-
|
|
40556
|
-
|
|
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;
|
|
40552
|
+
var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_a) {
|
|
40553
|
+
var name = _a.name,
|
|
40554
|
+
_a$defaultValue = _a.defaultValue,
|
|
40555
|
+
defaultValue = _a$defaultValue === void 0 ? null : _a$defaultValue,
|
|
40556
|
+
rules = _a.rules,
|
|
40557
|
+
props = __rest(_a, ["name", "defaultValue", "rules"]);
|
|
40572
40558
|
var _useFormContext = useFormContext(),
|
|
40573
40559
|
control = _useFormContext.control;
|
|
40574
40560
|
var _useController = useController(Object.assign({
|
|
@@ -40580,7 +40566,7 @@ var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_ref) {
|
|
|
40580
40566
|
field = _useController.field;
|
|
40581
40567
|
return field.value !== null ? /*#__PURE__*/React.createElement("input", Object.assign({}, field, {
|
|
40582
40568
|
type: "hidden"
|
|
40583
|
-
})) : null;
|
|
40569
|
+
}, props)) : null;
|
|
40584
40570
|
};
|
|
40585
40571
|
|
|
40586
40572
|
/* *
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/form-fields",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "GeoWeb form-fields library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@mui/material": "5.12.0",
|
|
16
16
|
"@mui/x-date-pickers": "6.2.1",
|
|
17
|
-
"@opengeoweb/theme": "8.
|
|
17
|
+
"@opengeoweb/theme": "8.3.0",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"moment": "2.29.4",
|
|
20
20
|
"moment-timezone": "0.5.43",
|