@synerise/ds-wizard 0.2.2 → 0.2.6

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 CHANGED
@@ -3,6 +3,38 @@
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.2.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.2.5...@synerise/ds-wizard@0.2.6) (2021-12-20)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-wizard
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.2.4...@synerise/ds-wizard@0.2.5) (2021-12-01)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-wizard
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.2.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.2.3...@synerise/ds-wizard@0.2.4) (2021-11-23)
23
+
24
+ **Note:** Version bump only for package @synerise/ds-wizard
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.2.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.2.2...@synerise/ds-wizard@0.2.3) (2021-11-22)
31
+
32
+ **Note:** Version bump only for package @synerise/ds-wizard
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.2.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-wizard@0.2.1...@synerise/ds-wizard@0.2.2) (2021-11-16)
7
39
 
8
40
  **Note:** Version bump only for package @synerise/ds-wizard
package/dist/Wizard.js CHANGED
@@ -42,13 +42,13 @@ var Wizard = function Wizard(_ref) {
42
42
  onClick: onPrevStep
43
43
  }, /*#__PURE__*/React.createElement(Icon, {
44
44
  component: /*#__PURE__*/React.createElement(ArrowLeftCircleM, null)
45
- }), ' ', (texts === null || texts === void 0 ? void 0 : texts.prevButtonLabel) || intl.formatMessage({
45
+ }), ' ', (texts == null ? void 0 : texts.prevButtonLabel) || intl.formatMessage({
46
46
  id: 'DS.WIZARD.PREV-BUTTON',
47
47
  defaultMessage: 'Back'
48
48
  })) : /*#__PURE__*/React.createElement(S.ButtonPlaceholder, null), onNextStep && /*#__PURE__*/React.createElement(Button, {
49
49
  type: "primary",
50
50
  onClick: onNextStep
51
- }, (texts === null || texts === void 0 ? void 0 : texts.nextButtonLabel) || intl.formatMessage({
51
+ }, (texts == null ? void 0 : texts.nextButtonLabel) || intl.formatMessage({
52
52
  id: 'DS.WIZARD.NEXT-BUTTON',
53
53
  defaultMessage: 'Next step'
54
54
  }))))), footer && /*#__PURE__*/React.createElement(S.WizardFooter, null, footer))) : null;
@@ -1,24 +1,8 @@
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
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
-
5
- 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); } }
6
-
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8
-
9
- 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); }
10
-
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
-
13
- 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); }; }
14
-
15
- 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); }
16
-
17
1
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
2
 
19
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
20
4
 
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5
+ 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; }
22
6
 
23
7
  import * as React from 'react';
24
8
  import * as ReactDOM from 'react-dom';
@@ -37,40 +21,36 @@ var getPortalRoot = function getPortalRoot() {
37
21
  };
38
22
 
39
23
  var WizardPortal = /*#__PURE__*/function (_React$Component) {
40
- _inherits(WizardPortal, _React$Component);
41
-
42
- var _super = _createSuper(WizardPortal);
24
+ _inheritsLoose(WizardPortal, _React$Component);
43
25
 
44
26
  function WizardPortal(props) {
45
27
  var _this;
46
28
 
47
- _classCallCheck(this, WizardPortal);
29
+ _this = _React$Component.call(this, props) || this;
30
+
31
+ _defineProperty(_assertThisInitialized(_this), "modalRoot", void 0);
32
+
33
+ _defineProperty(_assertThisInitialized(_this), "el", void 0);
48
34
 
49
- _this = _super.call(this, props);
50
- _this.modalRoot = void 0;
51
- _this.el = void 0;
52
35
  _this.modalRoot = getPortalRoot();
53
36
  _this.el = document.createElement('div');
54
37
  return _this;
55
38
  }
56
39
 
57
- _createClass(WizardPortal, [{
58
- key: "componentDidMount",
59
- value: function componentDidMount() {
60
- this.modalRoot.appendChild(this.el);
61
- }
62
- }, {
63
- key: "componentWillUnmount",
64
- value: function componentWillUnmount() {
65
- this.modalRoot.removeChild(this.el);
66
- }
67
- }, {
68
- key: "render",
69
- value: function render() {
70
- var children = this.props.children;
71
- return /*#__PURE__*/ReactDOM.createPortal(children, this.el);
72
- }
73
- }]);
40
+ var _proto = WizardPortal.prototype;
41
+
42
+ _proto.componentDidMount = function componentDidMount() {
43
+ this.modalRoot.appendChild(this.el);
44
+ };
45
+
46
+ _proto.componentWillUnmount = function componentWillUnmount() {
47
+ this.modalRoot.removeChild(this.el);
48
+ };
49
+
50
+ _proto.render = function render() {
51
+ var children = this.props.children;
52
+ return ReactDOM.createPortal(children, this.el);
53
+ };
74
54
 
75
55
  return WizardPortal;
76
56
  }(React.Component);
@@ -32,13 +32,13 @@ var WizardOnModal = function WizardOnModal(_ref) {
32
32
  onClick: onPrevStep
33
33
  }, /*#__PURE__*/React.createElement(Icon, {
34
34
  component: /*#__PURE__*/React.createElement(ArrowLeftCircleM, null)
35
- }), ' ', (texts === null || texts === void 0 ? void 0 : texts.prevButtonLabel) || intl.formatMessage({
35
+ }), ' ', (texts == null ? void 0 : texts.prevButtonLabel) || intl.formatMessage({
36
36
  id: 'DS.WIZARD.PREV-BUTTON',
37
37
  defaultMessage: 'Back'
38
38
  })) : /*#__PURE__*/React.createElement(S.ButtonPlaceholder, null), onNextStep && /*#__PURE__*/React.createElement(Button, {
39
39
  type: "primary",
40
40
  onClick: onNextStep
41
- }, (texts === null || texts === void 0 ? void 0 : texts.nextButtonLabel) || intl.formatMessage({
41
+ }, (texts == null ? void 0 : texts.nextButtonLabel) || intl.formatMessage({
42
42
  id: 'DS.WIZARD.NEXT-BUTTON',
43
43
  defaultMessage: 'Next step'
44
44
  })))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-wizard",
3
- "version": "0.2.2",
3
+ "version": "0.2.6",
4
4
  "description": "Wizard UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,15 +32,15 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-button": "^0.16.1",
36
- "@synerise/ds-icon": "^0.46.1",
37
- "@synerise/ds-layout": "^0.8.1",
38
- "@synerise/ds-modal": "^0.15.1",
39
- "@synerise/ds-page-header": "^0.13.2"
35
+ "@synerise/ds-button": "^0.16.2",
36
+ "@synerise/ds-icon": "^0.46.2",
37
+ "@synerise/ds-layout": "^0.8.3",
38
+ "@synerise/ds-modal": "^0.15.2",
39
+ "@synerise/ds-page-header": "^0.13.6"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
43
43
  "react": ">=16.9.0 < 17.0.0"
44
44
  },
45
- "gitHead": "8e667a88a48d774c550ff4766de71c4aab01f5a9"
45
+ "gitHead": "dd78d8abea639d2d77cf841f8b41a1382cf8d827"
46
46
  }