pallote-react 0.15.15 → 0.15.17

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
@@ -1740,10 +1740,9 @@ const Checkbox = ({
1740
1740
  checked: checked,
1741
1741
  "aria-checked": checked,
1742
1742
  disabled: disabled,
1743
- required: !(disabled || optional)
1744
- }, props, {
1743
+ required: !(disabled || optional),
1745
1744
  onChange: onChange
1746
- })), /*#__PURE__*/React__default.createElement("label", {
1745
+ }, props)), /*#__PURE__*/React__default.createElement("label", {
1747
1746
  className: classnames('checkbox_label'),
1748
1747
  htmlFor: id
1749
1748
  }, label));
@@ -1756,7 +1755,6 @@ Checkbox.propTypes = {
1756
1755
  disabled: PropTypes.bool,
1757
1756
  optional: PropTypes.bool,
1758
1757
  dense: PropTypes.bool,
1759
- onChange: PropTypes.func,
1760
1758
  className: PropTypes.node
1761
1759
  };
1762
1760
 
@@ -2136,7 +2134,7 @@ const SectionHeader = ({
2136
2134
  label,
2137
2135
  title,
2138
2136
  promoteTitle = false,
2139
- titleComponent,
2137
+ titleComponent = 'h2',
2140
2138
  subtitle,
2141
2139
  actions,
2142
2140
  className,
@@ -2159,7 +2157,7 @@ SectionHeader.propTypes = {
2159
2157
  label: PropTypes.string,
2160
2158
  title: PropTypes.string.isRequired,
2161
2159
  promoteTitle: PropTypes.bool,
2162
- titleComponent: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']).isRequired,
2160
+ titleComponent: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']),
2163
2161
  subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
2164
2162
  actions: PropTypes.node,
2165
2163
  className: PropTypes.node
@@ -2320,10 +2318,9 @@ const Radio = ({
2320
2318
  checked: checked,
2321
2319
  "aria-checked": checked,
2322
2320
  disabled: disabled,
2323
- required: !(disabled || optional)
2324
- }, props, {
2321
+ required: !(disabled || optional),
2325
2322
  onChange: onChange
2326
- })), /*#__PURE__*/React__default.createElement("label", {
2323
+ }, props)), /*#__PURE__*/React__default.createElement("label", {
2327
2324
  className: classnames('radio_label'),
2328
2325
  htmlFor: id
2329
2326
  }, label));
@@ -2337,7 +2334,6 @@ Radio.propTypes = {
2337
2334
  disabled: PropTypes.bool,
2338
2335
  optional: PropTypes.bool,
2339
2336
  dense: PropTypes.bool,
2340
- onChange: PropTypes.func,
2341
2337
  className: PropTypes.node
2342
2338
  };
2343
2339
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pallote-react",
3
- "version": "0.15.15",
3
+ "version": "0.15.17",
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.15",
3
+ "version": "0.15.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "styles": "dist/index.css",