@synerise/ds-radio 0.11.2 → 0.11.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/CHANGELOG.md +8 -0
- package/dist/Radio.js +19 -42
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.11.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.2...@synerise/ds-radio@0.11.3) (2021-11-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-radio
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.11.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.1...@synerise/ds-radio@0.11.2) (2021-11-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-radio
|
package/dist/Radio.js
CHANGED
|
@@ -1,32 +1,12 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2
|
-
|
|
3
1
|
var _excluded = ["children", "fullWidth", "big"],
|
|
4
2
|
_excluded2 = ["description"];
|
|
5
3
|
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
9
|
-
|
|
10
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11
|
-
|
|
12
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
|
-
|
|
14
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
15
|
-
|
|
16
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
17
|
-
|
|
18
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
19
|
-
|
|
20
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
21
5
|
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
7
|
|
|
26
8
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
9
|
|
|
28
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
-
|
|
30
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
11
|
|
|
32
12
|
import * as React from 'react';
|
|
@@ -39,7 +19,7 @@ var Group = function Group(_ref) {
|
|
|
39
19
|
var children = _ref.children,
|
|
40
20
|
fullWidth = _ref.fullWidth,
|
|
41
21
|
big = _ref.big,
|
|
42
|
-
props =
|
|
22
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
43
23
|
|
|
44
24
|
return (
|
|
45
25
|
/*#__PURE__*/
|
|
@@ -52,32 +32,29 @@ var Group = function Group(_ref) {
|
|
|
52
32
|
};
|
|
53
33
|
|
|
54
34
|
var Radio = /*#__PURE__*/function (_React$Component) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var _super = _createSuper(Radio);
|
|
35
|
+
_inheritsLoose(Radio, _React$Component);
|
|
58
36
|
|
|
59
37
|
function Radio() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return _super.apply(this, arguments);
|
|
38
|
+
return _React$Component.apply(this, arguments) || this;
|
|
63
39
|
}
|
|
64
40
|
|
|
65
|
-
|
|
66
|
-
key: "render",
|
|
67
|
-
value: function render() {
|
|
68
|
-
var _this$props = this.props,
|
|
69
|
-
description = _this$props.description,
|
|
70
|
-
antdRadioButtonProps = _objectWithoutProperties(_this$props, _excluded2);
|
|
41
|
+
var _proto = Radio.prototype;
|
|
71
42
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
43
|
+
_proto.render = function render() {
|
|
44
|
+
var _this$props = this.props,
|
|
45
|
+
description = _this$props.description,
|
|
46
|
+
antdRadioButtonProps = _objectWithoutPropertiesLoose(_this$props, _excluded2);
|
|
47
|
+
|
|
48
|
+
return /*#__PURE__*/React.createElement(S.RadioWrapper, null, /*#__PURE__*/React.createElement(AntdRadio, antdRadioButtonProps), /*#__PURE__*/React.createElement(S.AdditionalData, null, description && /*#__PURE__*/React.createElement(S.Description, {
|
|
49
|
+
disabled: antdRadioButtonProps.disabled
|
|
50
|
+
}, description)));
|
|
51
|
+
};
|
|
77
52
|
|
|
78
53
|
return Radio;
|
|
79
54
|
}(React.Component);
|
|
80
55
|
|
|
81
|
-
Radio
|
|
82
|
-
|
|
56
|
+
_defineProperty(Radio, "Group", Group);
|
|
57
|
+
|
|
58
|
+
_defineProperty(Radio, "Button", AntdRadio.Button);
|
|
59
|
+
|
|
83
60
|
export default Radio;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-radio",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Radio UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-utils": "^0.21.
|
|
35
|
+
"@synerise/ds-utils": "^0.21.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@synerise/ds-core": "*",
|
|
39
39
|
"antd": "^4",
|
|
40
40
|
"react": ">=16.9.0 < 17.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2468359677783819939fb9f1ef5acc36667ecd1a"
|
|
43
43
|
}
|