@sproutsocial/seeds-react-radio 1.0.0 → 1.0.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.
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
7
  var __esm = (fn, res) => function __init() {
9
8
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
9
  };
@@ -32,10 +31,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
31
  mod
33
32
  ));
34
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
- var __publicField = (obj, key, value) => {
36
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
37
- return value;
38
- };
39
34
 
40
35
  // ../../node_modules/polished/node_modules/@babel/runtime/helpers/esm/extends.js
41
36
  function _extends() {
@@ -4572,25 +4567,25 @@ var styles_default = Container;
4572
4567
 
4573
4568
  // src/Radio.tsx
4574
4569
  var Radio = class extends React.Component {
4575
- constructor() {
4576
- super(...arguments);
4577
- __publicField(this, "handleChange", (e) => {
4578
- if (!!this.props.checked || this.props.disabled) {
4579
- return;
4580
- }
4581
- this.props.onChange && this.props.onChange(e);
4582
- });
4583
- __publicField(this, "handleFocus", (e) => {
4584
- if (this.props.onFocus) {
4585
- this.props.onFocus(e);
4586
- }
4587
- });
4588
- __publicField(this, "handleBlur", (e) => {
4589
- if (this.props.onBlur) {
4590
- this.props.onBlur(e);
4591
- }
4592
- });
4593
- }
4570
+ static defaultProps = {
4571
+ disabled: false
4572
+ };
4573
+ handleChange = (e) => {
4574
+ if (!!this.props.checked || this.props.disabled) {
4575
+ return;
4576
+ }
4577
+ this.props.onChange && this.props.onChange(e);
4578
+ };
4579
+ handleFocus = (e) => {
4580
+ if (this.props.onFocus) {
4581
+ this.props.onFocus(e);
4582
+ }
4583
+ };
4584
+ handleBlur = (e) => {
4585
+ if (this.props.onBlur) {
4586
+ this.props.onBlur(e);
4587
+ }
4588
+ };
4594
4589
  render() {
4595
4590
  const {
4596
4591
  id,
@@ -4639,9 +4634,6 @@ var Radio = class extends React.Component {
4639
4634
  );
4640
4635
  }
4641
4636
  };
4642
- __publicField(Radio, "defaultProps", {
4643
- disabled: false
4644
- });
4645
4637
 
4646
4638
  // src/index.ts
4647
4639
  var src_default = Radio;
package/dist/index.js CHANGED
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
8
  var __esm = (fn, res) => function __init() {
10
9
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
11
10
  };
@@ -33,10 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
32
  mod
34
33
  ));
35
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
- var __publicField = (obj, key, value) => {
37
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
38
- return value;
39
- };
40
35
 
41
36
  // ../../node_modules/polished/node_modules/@babel/runtime/helpers/esm/extends.js
42
37
  function _extends() {
@@ -4581,25 +4576,25 @@ var styles_default = Container;
4581
4576
 
4582
4577
  // src/Radio.tsx
4583
4578
  var Radio = class extends React.Component {
4584
- constructor() {
4585
- super(...arguments);
4586
- __publicField(this, "handleChange", (e) => {
4587
- if (!!this.props.checked || this.props.disabled) {
4588
- return;
4589
- }
4590
- this.props.onChange && this.props.onChange(e);
4591
- });
4592
- __publicField(this, "handleFocus", (e) => {
4593
- if (this.props.onFocus) {
4594
- this.props.onFocus(e);
4595
- }
4596
- });
4597
- __publicField(this, "handleBlur", (e) => {
4598
- if (this.props.onBlur) {
4599
- this.props.onBlur(e);
4600
- }
4601
- });
4602
- }
4579
+ static defaultProps = {
4580
+ disabled: false
4581
+ };
4582
+ handleChange = (e) => {
4583
+ if (!!this.props.checked || this.props.disabled) {
4584
+ return;
4585
+ }
4586
+ this.props.onChange && this.props.onChange(e);
4587
+ };
4588
+ handleFocus = (e) => {
4589
+ if (this.props.onFocus) {
4590
+ this.props.onFocus(e);
4591
+ }
4592
+ };
4593
+ handleBlur = (e) => {
4594
+ if (this.props.onBlur) {
4595
+ this.props.onBlur(e);
4596
+ }
4597
+ };
4603
4598
  render() {
4604
4599
  const {
4605
4600
  id,
@@ -4648,9 +4643,6 @@ var Radio = class extends React.Component {
4648
4643
  );
4649
4644
  }
4650
4645
  };
4651
- __publicField(Radio, "defaultProps", {
4652
- disabled: false
4653
- });
4654
4646
 
4655
4647
  // src/index.ts
4656
4648
  var src_default = Radio;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@sproutsocial/seeds-react-radio",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Seeds React Radio",
5
5
  "author": "Sprout Social, Inc.",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
+ "module": "dist/esm/index.js",
8
9
  "types": "dist/index.d.ts",
9
10
  "files": [
10
11
  "dist"