pallote-react 0.15.16 → 0.15.18

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.js CHANGED
@@ -1795,7 +1795,6 @@ InputLabel.propTypes = {
1795
1795
  };
1796
1796
 
1797
1797
  const Checkboxes = ({
1798
- onChange,
1799
1798
  id,
1800
1799
  label = 'Label',
1801
1800
  direction = 'portrait',
@@ -1827,14 +1826,9 @@ const Checkboxes = ({
1827
1826
  className: classnames(['input_control', 'radios', {
1828
1827
  [`radios-${direction}`]: direction
1829
1828
  }])
1830
- }, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
1831
- onChange,
1832
- optional,
1833
- disabled
1834
- }) : child)));
1829
+ }, children));
1835
1830
  };
1836
1831
  Checkboxes.propTypes = {
1837
- onChange: PropTypes.func,
1838
1832
  id: PropTypes.string.isRequired,
1839
1833
  label: PropTypes.string.isRequired,
1840
1834
  direction: PropTypes.oneOf(['portrait', 'landscape']),
@@ -2134,7 +2128,7 @@ const SectionHeader = ({
2134
2128
  label,
2135
2129
  title,
2136
2130
  promoteTitle = false,
2137
- titleComponent,
2131
+ titleComponent = 'h2',
2138
2132
  subtitle,
2139
2133
  actions,
2140
2134
  className,
@@ -2157,7 +2151,7 @@ SectionHeader.propTypes = {
2157
2151
  label: PropTypes.string,
2158
2152
  title: PropTypes.string.isRequired,
2159
2153
  promoteTitle: PropTypes.bool,
2160
- titleComponent: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']).isRequired,
2154
+ titleComponent: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']),
2161
2155
  subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
2162
2156
  actions: PropTypes.node,
2163
2157
  className: PropTypes.node
@@ -2338,7 +2332,6 @@ Radio.propTypes = {
2338
2332
  };
2339
2333
 
2340
2334
  const RadioButtons = ({
2341
- onChange,
2342
2335
  id,
2343
2336
  label = 'Label',
2344
2337
  direction = 'portrait',
@@ -2370,14 +2363,9 @@ const RadioButtons = ({
2370
2363
  className: classnames(['input_control', 'radios', {
2371
2364
  [`radios-${direction}`]: direction
2372
2365
  }])
2373
- }, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
2374
- onChange,
2375
- optional,
2376
- disabled
2377
- }) : child)));
2366
+ }, children));
2378
2367
  };
2379
2368
  RadioButtons.propTypes = {
2380
- onChange: PropTypes.func,
2381
2369
  id: PropTypes.string.isRequired,
2382
2370
  label: PropTypes.string.isRequired,
2383
2371
  direction: PropTypes.oneOf(['portrait', 'landscape']),
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.16",
3
+ "version": "0.15.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.16",
3
+ "version": "0.15.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",