@opengeoweb/form-fields 8.3.1 → 8.4.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 +13 -4
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -23206,11 +23206,14 @@ var ReactHookFormFormControl = function ReactHookFormFormControl(_a) {
|
|
|
23206
23206
|
sx = _a$sx === void 0 ? {} : _a$sx,
|
|
23207
23207
|
_a$className = _a.className,
|
|
23208
23208
|
className = _a$className === void 0 ? '' : _a$className,
|
|
23209
|
-
|
|
23209
|
+
_a$size = _a.size,
|
|
23210
|
+
size = _a$size === void 0 ? 'medium' : _a$size,
|
|
23211
|
+
props = __rest(_a, ["children", "errors", "isReadOnly", "sx", "className", "size"]);
|
|
23210
23212
|
return /*#__PURE__*/React.createElement(FormControl, Object.assign({
|
|
23211
23213
|
fullWidth: true,
|
|
23212
23214
|
error: !!errors,
|
|
23213
23215
|
className: "".concat(isReadOnly ? 'is-read-only' : '', " ").concat(className),
|
|
23216
|
+
size: size,
|
|
23214
23217
|
sx: Object.assign(Object.assign({}, isReadOnly && {
|
|
23215
23218
|
// Radio input
|
|
23216
23219
|
'.MuiRadio-root': radioCheckboxStyle,
|
|
@@ -23260,7 +23263,9 @@ var ReactHookFormSelect = function ReactHookFormSelect(_a) {
|
|
|
23260
23263
|
className = _a.className,
|
|
23261
23264
|
sx = _a.sx,
|
|
23262
23265
|
isReadOnly = _a.isReadOnly,
|
|
23263
|
-
|
|
23266
|
+
_a$size = _a.size,
|
|
23267
|
+
size = _a$size === void 0 ? 'medium' : _a$size,
|
|
23268
|
+
otherProps = __rest(_a, ["name", "label", "defaultValue", "children", "rules", "onChange", "disabled", "className", "sx", "isReadOnly", "size"]);
|
|
23264
23269
|
var labelId = "".concat(name, "-label");
|
|
23265
23270
|
var _useFormContext = useFormContext(),
|
|
23266
23271
|
control = _useFormContext.control;
|
|
@@ -23281,7 +23286,8 @@ var ReactHookFormSelect = function ReactHookFormSelect(_a) {
|
|
|
23281
23286
|
sx: sx,
|
|
23282
23287
|
disabled: disabled,
|
|
23283
23288
|
errors: errors,
|
|
23284
|
-
isReadOnly: isReadOnly
|
|
23289
|
+
isReadOnly: isReadOnly,
|
|
23290
|
+
size: size
|
|
23285
23291
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
23286
23292
|
variant: "filled",
|
|
23287
23293
|
id: labelId
|
|
@@ -23507,11 +23513,13 @@ var ReactHookFormNumberField = function ReactHookFormNumberField(_a) {
|
|
|
23507
23513
|
_a$helperText = _a.helperText,
|
|
23508
23514
|
helperText = _a$helperText === void 0 ? '' : _a$helperText,
|
|
23509
23515
|
className = _a.className,
|
|
23516
|
+
_a$size = _a.size,
|
|
23517
|
+
size = _a$size === void 0 ? 'medium' : _a$size,
|
|
23510
23518
|
sx = _a.sx,
|
|
23511
23519
|
_a$onChange = _a.onChange,
|
|
23512
23520
|
_onChange = _a$onChange === void 0 ? function () {} : _a$onChange,
|
|
23513
23521
|
isReadOnly = _a.isReadOnly,
|
|
23514
|
-
otherProps = __rest(_a, ["name", "label", "defaultValue", "rules", "disabled", "inputMode", "helperText", "className", "sx", "onChange", "isReadOnly"]);
|
|
23522
|
+
otherProps = __rest(_a, ["name", "label", "defaultValue", "rules", "disabled", "inputMode", "helperText", "className", "size", "sx", "onChange", "isReadOnly"]);
|
|
23515
23523
|
var _useFormContext = useFormContext(),
|
|
23516
23524
|
control = _useFormContext.control;
|
|
23517
23525
|
var _useController = useController(Object.assign({
|
|
@@ -23558,6 +23566,7 @@ var ReactHookFormNumberField = function ReactHookFormNumberField(_a) {
|
|
|
23558
23566
|
inputMode: inputMode
|
|
23559
23567
|
},
|
|
23560
23568
|
name: name,
|
|
23569
|
+
size: size,
|
|
23561
23570
|
onChange: function onChange(evt) {
|
|
23562
23571
|
var value = evt.target.value;
|
|
23563
23572
|
setDisplayValue(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/form-fields",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.1",
|
|
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.4.1",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"moment": "2.29.4",
|
|
20
20
|
"moment-timezone": "0.5.43",
|