@scenid/react-formulator 2.2.1 → 2.2.3

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/dist/index.cjs.js CHANGED
@@ -54833,10 +54833,10 @@ var FormRepeaterGrid = function FormRepeaterGrid(_ref) {
54833
54833
  return /*#__PURE__*/React__default["default"].createElement(material.Box, {
54834
54834
  width: "100%"
54835
54835
  }, mappedEntries.map(function (row, i) {
54836
- return /*#__PURE__*/React__default["default"].createElement(material.Stack // eslint-disable-next-line react/no-array-index-key
54836
+ return /*#__PURE__*/React__default["default"].createElement(material.Box // eslint-disable-next-line react/no-array-index-key
54837
54837
  , {
54838
54838
  key: "row-".concat(i),
54839
- direction: "row",
54839
+ width: "100%",
54840
54840
  mb: 2
54841
54841
  }, row.map(function (_ref2, ei) {
54842
54842
  var value = _ref2.value,
@@ -54850,17 +54850,26 @@ var FormRepeaterGrid = function FormRepeaterGrid(_ref) {
54850
54850
  variant: selected ? 'contained' : 'outlined',
54851
54851
  color: selected ? 'primary' : 'inherit',
54852
54852
  sx: {
54853
+ width: 'calc(50% - 8px)',
54853
54854
  p: 0,
54855
+ pl: function pl(theme) {
54856
+ return theme.spacing(2);
54857
+ },
54858
+ pr: function pr(theme) {
54859
+ return theme.spacing(2);
54860
+ },
54854
54861
  height: function height(theme) {
54855
54862
  return theme.spacing(7);
54856
54863
  },
54857
- flex: ' 1 1 auto',
54858
54864
  mr: ei === 0 ? 2 : 0
54859
54865
  },
54860
54866
  onClick: function onClick() {
54861
54867
  return toggleEntry(value);
54862
54868
  }
54863
- }, label);
54869
+ }, /*#__PURE__*/React__default["default"].createElement(material.Typography, {
54870
+ variant: "button",
54871
+ noWrap: true
54872
+ }, label));
54864
54873
  }));
54865
54874
  }));
54866
54875
  };
package/dist/index.esm.js CHANGED
@@ -54820,10 +54820,10 @@ var FormRepeaterGrid = function FormRepeaterGrid(_ref) {
54820
54820
  return /*#__PURE__*/React.createElement(Box, {
54821
54821
  width: "100%"
54822
54822
  }, mappedEntries.map(function (row, i) {
54823
- return /*#__PURE__*/React.createElement(Stack // eslint-disable-next-line react/no-array-index-key
54823
+ return /*#__PURE__*/React.createElement(Box // eslint-disable-next-line react/no-array-index-key
54824
54824
  , {
54825
54825
  key: "row-".concat(i),
54826
- direction: "row",
54826
+ width: "100%",
54827
54827
  mb: 2
54828
54828
  }, row.map(function (_ref2, ei) {
54829
54829
  var value = _ref2.value,
@@ -54837,17 +54837,26 @@ var FormRepeaterGrid = function FormRepeaterGrid(_ref) {
54837
54837
  variant: selected ? 'contained' : 'outlined',
54838
54838
  color: selected ? 'primary' : 'inherit',
54839
54839
  sx: {
54840
+ width: 'calc(50% - 8px)',
54840
54841
  p: 0,
54842
+ pl: function pl(theme) {
54843
+ return theme.spacing(2);
54844
+ },
54845
+ pr: function pr(theme) {
54846
+ return theme.spacing(2);
54847
+ },
54841
54848
  height: function height(theme) {
54842
54849
  return theme.spacing(7);
54843
54850
  },
54844
- flex: ' 1 1 auto',
54845
54851
  mr: ei === 0 ? 2 : 0
54846
54852
  },
54847
54853
  onClick: function onClick() {
54848
54854
  return toggleEntry(value);
54849
54855
  }
54850
- }, label);
54856
+ }, /*#__PURE__*/React.createElement(Typography, {
54857
+ variant: "button",
54858
+ noWrap: true
54859
+ }, label));
54851
54860
  }));
54852
54861
  }));
54853
54862
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenid/react-formulator",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",