@opengeoweb/form-fields 6.1.0 → 6.1.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 +33 -22
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -23420,31 +23420,31 @@ var ReactHookFormTextField = function ReactHookFormTextField(_a) {
|
|
|
23420
23420
|
}, otherProps)));
|
|
23421
23421
|
};
|
|
23422
23422
|
|
|
23423
|
-
function _iterableToArrayLimit(
|
|
23424
|
-
var
|
|
23425
|
-
if (null !=
|
|
23426
|
-
var
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23423
|
+
function _iterableToArrayLimit(r, l) {
|
|
23424
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
23425
|
+
if (null != t) {
|
|
23426
|
+
var e,
|
|
23427
|
+
n,
|
|
23428
|
+
i,
|
|
23429
|
+
u,
|
|
23430
|
+
a = [],
|
|
23431
|
+
f = !0,
|
|
23432
|
+
o = !1;
|
|
23433
23433
|
try {
|
|
23434
|
-
if (
|
|
23435
|
-
if (Object(
|
|
23436
|
-
|
|
23437
|
-
} else for (; !(
|
|
23438
|
-
} catch (
|
|
23439
|
-
|
|
23434
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
23435
|
+
if (Object(t) !== t) return;
|
|
23436
|
+
f = !1;
|
|
23437
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
23438
|
+
} catch (r) {
|
|
23439
|
+
o = !0, n = r;
|
|
23440
23440
|
} finally {
|
|
23441
23441
|
try {
|
|
23442
|
-
if (!
|
|
23442
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
23443
23443
|
} finally {
|
|
23444
|
-
if (
|
|
23444
|
+
if (o) throw n;
|
|
23445
23445
|
}
|
|
23446
23446
|
}
|
|
23447
|
-
return
|
|
23447
|
+
return a;
|
|
23448
23448
|
}
|
|
23449
23449
|
}
|
|
23450
23450
|
function _slicedToArray(arr, i) {
|
|
@@ -24953,11 +24953,12 @@ const globalStateClassesMapping = {
|
|
|
24953
24953
|
checked: 'checked',
|
|
24954
24954
|
completed: 'completed',
|
|
24955
24955
|
disabled: 'disabled',
|
|
24956
|
-
readOnly: 'readOnly',
|
|
24957
24956
|
error: 'error',
|
|
24958
24957
|
expanded: 'expanded',
|
|
24959
24958
|
focused: 'focused',
|
|
24960
24959
|
focusVisible: 'focusVisible',
|
|
24960
|
+
open: 'open',
|
|
24961
|
+
readOnly: 'readOnly',
|
|
24961
24962
|
required: 'required',
|
|
24962
24963
|
selected: 'selected'
|
|
24963
24964
|
};
|
|
@@ -34258,10 +34259,20 @@ const width = style$1({
|
|
|
34258
34259
|
const maxWidth = props => {
|
|
34259
34260
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
34260
34261
|
const styleFromPropValue = propValue => {
|
|
34261
|
-
var _props$theme;
|
|
34262
|
+
var _props$theme, _props$theme2;
|
|
34262
34263
|
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
|
|
34264
|
+
if (!breakpoint) {
|
|
34265
|
+
return {
|
|
34266
|
+
maxWidth: sizingTransform(propValue)
|
|
34267
|
+
};
|
|
34268
|
+
}
|
|
34269
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
34270
|
+
return {
|
|
34271
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
34272
|
+
};
|
|
34273
|
+
}
|
|
34263
34274
|
return {
|
|
34264
|
-
maxWidth: breakpoint
|
|
34275
|
+
maxWidth: breakpoint
|
|
34265
34276
|
};
|
|
34266
34277
|
};
|
|
34267
34278
|
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/form-fields",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.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": "6.1.
|
|
17
|
+
"@opengeoweb/theme": "6.1.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.
|
|
22
|
+
"react-hook-form": "7.46.1"
|
|
23
23
|
}
|
|
24
24
|
}
|