@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.
Files changed (2) hide show
  1. package/index.esm.js +33 -22
  2. 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(arr, i) {
23424
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
23425
- if (null != _i) {
23426
- var _s,
23427
- _e,
23428
- _x,
23429
- _r,
23430
- _arr = [],
23431
- _n = !0,
23432
- _d = !1;
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 (_x = (_i = _i.call(arr)).next, 0 === i) {
23435
- if (Object(_i) !== _i) return;
23436
- _n = !1;
23437
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
23438
- } catch (err) {
23439
- _d = !0, _e = err;
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 (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
23442
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
23443
23443
  } finally {
23444
- if (_d) throw _e;
23444
+ if (o) throw n;
23445
23445
  }
23446
23446
  }
23447
- return _arr;
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 || sizingTransform(propValue)
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.0",
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.0",
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.45.4"
22
+ "react-hook-form": "7.46.1"
23
23
  }
24
24
  }