carbon-react 8.1.3 → 8.1.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/change_log/v8_1_4/position_date_picker.yml +1 -0
- package/change_log/v8_1_5/fix_path.yml +1 -0
- package/lib/__experimental__/components/input/input-presentation.component.js +35 -29
- package/lib/__experimental__/components/input/input.component.js +36 -28
- package/lib/__experimental__/components/input-decorator-bridge/input-decorator-bridge.component.js +45 -35
- package/lib/__experimental__/components/select/index.js +4 -4
- package/lib/__experimental__/components/select/option.component.js +6 -4
- package/lib/__experimental__/components/select/select-list.component.js +39 -35
- package/lib/__experimental__/components/select/select.component.js +45 -39
- package/lib/__experimental__/components/select-async/index.js +4 -4
- package/lib/__experimental__/components/select-async/select-async.component.js +53 -37
- package/lib/__experimental__/components/textbox/textbox.component.js +6 -4
- package/lib/__spec_helper__/index.js +1 -1
- package/lib/components/action-toolbar/action-toolbar.js +43 -37
- package/lib/components/alert/alert.js +35 -29
- package/lib/components/alert/alert.stories.js +4 -4
- package/lib/components/animated-menu-button/animated-menu-button.js +36 -32
- package/lib/components/animated-menu-button/animated-menu-button.stories.js +16 -24
- package/lib/components/app-wrapper/app-wrapper.js +29 -25
- package/lib/components/app-wrapper/app-wrapper.stories.js +1 -1
- package/lib/components/button/button.js +30 -26
- package/lib/components/button/button.stories.js +1 -1
- package/lib/components/button-toggle/button-toggle.js +52 -46
- package/lib/components/button-toggle/button-toggle.stories.js +23 -15
- package/lib/components/button-toggle-group/button-toggle-group.js +54 -48
- package/lib/components/button-toggle-group/button-toggle-group.stories.js +4 -4
- package/lib/components/carousel/carousel.js +48 -42
- package/lib/components/carousel/slide/slide.js +4 -4
- package/lib/components/checkbox/checkbox.js +68 -72
- package/lib/components/configurable-items/configurable-item-row/configurable-item-row.js +37 -33
- package/lib/components/configurable-items/configurable-items.js +38 -34
- package/lib/components/confirm/confirm.js +60 -54
- package/lib/components/content/content.js +31 -25
- package/lib/components/create/create.js +32 -24
- package/lib/components/date/date.js +216 -194
- package/lib/components/date/navbar/navbar.js +5 -5
- package/lib/components/date-range/date-range.js +97 -93
- package/lib/components/decimal/decimal.js +62 -56
- package/lib/components/detail/detail.js +51 -47
- package/lib/components/dialog/dialog.js +80 -72
- package/lib/components/dialog-full-screen/dialog-full-screen.js +53 -47
- package/lib/components/dialog-full-screen/full-screen-heading/full-screen-heading.js +9 -7
- package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.js +28 -24
- package/lib/components/drag-and-drop/drag-and-drop.js +6 -6
- package/lib/components/drag-and-drop/draggable-context/draggable-context.js +40 -37
- package/lib/components/drag-and-drop/with-drag/with-drag.js +26 -22
- package/lib/components/drag-and-drop/with-drop/with-drop.js +26 -20
- package/lib/components/dropdown/dropdown.js +146 -143
- package/lib/components/dropdown-filter/dropdown-filter.js +94 -88
- package/lib/components/dropdown-filter-ajax/dropdown-filter-ajax.js +54 -50
- package/lib/components/fieldset/fieldset.js +50 -42
- package/lib/components/filter/filter.js +43 -46
- package/lib/components/flash/flash.js +72 -64
- package/lib/components/form/cancel-button/cancel-button.js +11 -11
- package/lib/components/form/form-summary/form-summary.js +7 -7
- package/lib/components/form/form.js +68 -69
- package/lib/components/form/save-button/save-button.js +11 -11
- package/lib/components/grouped-character/grouped-character.js +49 -43
- package/lib/components/heading/heading.js +65 -59
- package/lib/components/help/help.js +46 -40
- package/lib/components/i18n/i18n.js +30 -22
- package/lib/components/icon/icon.js +55 -51
- package/lib/components/inline-inputs/inline-inputs.js +6 -6
- package/lib/components/link/link.js +45 -37
- package/lib/components/menu/menu-item/menu-item.js +55 -49
- package/lib/components/menu/menu.js +47 -41
- package/lib/components/menu/submenu-block/submenu-block.js +43 -37
- package/lib/components/menu-list/menu-list-item/menu-list-item.js +29 -25
- package/lib/components/menu-list/menu-list.js +49 -43
- package/lib/components/message/message.js +47 -41
- package/lib/components/modal/modal.js +77 -71
- package/lib/components/mount-in-app/mount-in-app.js +32 -26
- package/lib/components/multi-action-button/multi-action-button.js +52 -46
- package/lib/components/multi-step-wizard/multi-step-wizard.js +60 -54
- package/lib/components/multi-step-wizard/step/step.js +68 -69
- package/lib/components/navigation-bar/navigation-bar.js +44 -38
- package/lib/components/number/number.js +58 -52
- package/lib/components/pager/pager.js +75 -71
- package/lib/components/pages/page/page.js +6 -6
- package/lib/components/pages/pages.js +4 -4
- package/lib/components/pill/pill.js +33 -27
- package/lib/components/pod/pod.js +84 -80
- package/lib/components/portal/portal.js +34 -26
- package/lib/components/portrait/portrait.js +52 -48
- package/lib/components/preview/preview.js +4 -4
- package/lib/components/profile/profile.js +51 -45
- package/lib/components/radio-button/radio-button.js +51 -45
- package/lib/components/rainbow/rainbow.js +44 -38
- package/lib/components/row/column/column.js +1 -1
- package/lib/components/row/row.js +47 -41
- package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.js +8 -8
- package/lib/components/scrollable-list/scrollable-list-item.component.js +27 -35
- package/lib/components/scrollable-list/scrollable-list.component.js +53 -37
- package/lib/components/scrollable-list/scrollable-list.style.js +5 -13
- package/lib/components/scrollable-list/test-utils.js +38 -28
- package/lib/components/settings-row/settings-row.js +49 -43
- package/lib/components/show-edit-pod/show-edit-pod.js +67 -63
- package/lib/components/sidebar/sidebar-header/sidebar-header.js +43 -37
- package/lib/components/sidebar/sidebar.js +54 -48
- package/lib/components/simple-color-picker/color-option/color-option.js +47 -41
- package/lib/components/simple-color-picker/simple-color-picker.js +53 -47
- package/lib/components/spinner/spinner.js +43 -37
- package/lib/components/split-button/split-button.js +69 -69
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.js +15 -13
- package/lib/components/step-sequence/step-sequence.js +4 -4
- package/lib/components/switch/switch.js +23 -21
- package/lib/components/table/draggable-table-cell/draggable-table-cell.js +4 -4
- package/lib/components/table/table-cell/table-cell.js +45 -39
- package/lib/components/table/table-header/table-header.js +107 -110
- package/lib/components/table/table-row/table-row.js +62 -58
- package/lib/components/table/table-subheader/table-subheader.js +32 -26
- package/lib/components/table/table.js +166 -169
- package/lib/components/table-ajax/table-ajax.js +67 -70
- package/lib/components/tabs/tab/tab.js +48 -44
- package/lib/components/tabs/tabs.js +73 -67
- package/lib/components/textarea/textarea.js +52 -49
- package/lib/components/textbox/textbox.js +49 -43
- package/lib/components/toast/toast.js +56 -50
- package/lib/components/tooltip/tooltip.js +47 -41
- package/lib/patterns/configurable-items/configurable-items-content/configurable-items-content.js +35 -29
- package/lib/patterns/configurable-items/configurable-items.js +55 -51
- package/lib/patterns/configurable-items/store/store.js +35 -27
- package/lib/style/index.js +1 -1
- package/lib/style/palette/index.js +4 -2
- package/lib/style/themes/base/index.js +7 -7
- package/lib/style/themes/test-utils.js +19 -21
- package/lib/style/utils/add-hex-symbols.js +4 -2
- package/lib/style/utils/at-opacity.js +10 -8
- package/lib/style/utils/merge-deep.js +15 -15
- package/lib/style/utils/mix.js +32 -20
- package/lib/utils/decorators/input/input.js +46 -42
- package/lib/utils/decorators/input-icon/input-icon.js +37 -33
- package/lib/utils/decorators/input-label/input-label.js +37 -31
- package/lib/utils/decorators/input-validation/input-validation.js +40 -36
- package/lib/utils/decorators/should-component-update/should-component-update.js +29 -23
- package/lib/utils/decorators/tooltip-decorator/tooltip-decorator.js +38 -34
- package/lib/utils/ether/ether.js +16 -14
- package/lib/utils/filter-children/filter-children.util.js +10 -8
- package/lib/utils/handlers/base-registry/base-registry.js +12 -13
- package/lib/utils/helpers/browser/browser.js +15 -13
- package/lib/utils/helpers/date/date.js +4 -2
- package/lib/utils/helpers/element-resize/element-resize.js +6 -4
- package/lib/utils/helpers/events/events.js +2 -2
- package/lib/utils/helpers/guid/guid.js +6 -6
- package/lib/utils/helpers/i18n/i18n.js +11 -9
- package/lib/utils/helpers/immutable/immutable.js +13 -13
- package/lib/utils/helpers/options-helper/options-helper.js +2 -1
- package/lib/utils/helpers/prop-types/prop-types.js +2 -2
- package/lib/utils/helpers/scrollable-parent/scrollable-parent.js +2 -0
- package/lib/utils/helpers/serialize/serialize.js +12 -12
- package/lib/utils/helpers/tags/tags-specs/tags-specs.js +6 -4
- package/lib/utils/helpers/to-array/to-array.js +8 -6
- package/lib/utils/router/router.js +2 -2
- package/lib/utils/service/service.js +34 -34
- package/lib/utils/validations/blank/blank.js +6 -2
- package/lib/utils/validations/date/date.js +6 -2
- package/lib/utils/validations/date-range/date-range.js +6 -2
- package/lib/utils/validations/date-within-range/date-within-range.js +6 -2
- package/lib/utils/validations/email/email.js +6 -2
- package/lib/utils/validations/exclusion/exclusion.js +6 -2
- package/lib/utils/validations/inclusion/inclusion.js +6 -2
- package/lib/utils/validations/length/length.js +6 -2
- package/lib/utils/validations/numeral/numeral-type/numeral-type.js +8 -2
- package/lib/utils/validations/numeral/numeral.js +6 -2
- package/lib/utils/validations/presence/presence.js +12 -4
- package/lib/utils/validations/regex/regex.js +8 -2
- package/lib/utils/validations/validator/validator.js +14 -14
- package/package.json +13 -13
- package/release_notes/v8_1_4.html.md +5 -0
- package/release_notes/v8_1_5.html.md +5 -0
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.symbol.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.description.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.string.iterator");
|
|
19
|
+
require("core-js/modules/es.string.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
21
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "__esModule", {
|
|
24
24
|
value: true
|
|
25
25
|
});
|
|
26
26
|
exports.default = void 0;
|
|
27
27
|
|
|
28
|
+
require("core-js/modules/es.array.concat.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.array.map.js");
|
|
31
|
+
|
|
28
32
|
var _react = _interopRequireDefault(require("react"));
|
|
29
33
|
|
|
30
34
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -41,23 +45,25 @@ require("./step.scss");
|
|
|
41
45
|
|
|
42
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
47
|
|
|
44
|
-
function _typeof(obj) { 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); }
|
|
45
|
-
|
|
46
48
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47
49
|
|
|
48
50
|
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); } }
|
|
49
51
|
|
|
50
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
52
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
53
|
+
|
|
54
|
+
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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
51
55
|
|
|
52
|
-
function
|
|
56
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
53
57
|
|
|
54
|
-
function
|
|
58
|
+
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); }; }
|
|
59
|
+
|
|
60
|
+
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); }
|
|
55
61
|
|
|
56
62
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
57
63
|
|
|
58
|
-
function
|
|
64
|
+
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; } }
|
|
59
65
|
|
|
60
|
-
function
|
|
66
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
61
67
|
|
|
62
68
|
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; }
|
|
63
69
|
|
|
@@ -71,14 +77,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
71
77
|
* @class Step
|
|
72
78
|
* @constructor
|
|
73
79
|
*/
|
|
74
|
-
var Step =
|
|
75
|
-
/*#__PURE__*/
|
|
76
|
-
function (_React$Component) {
|
|
80
|
+
var Step = /*#__PURE__*/function (_React$Component) {
|
|
77
81
|
_inherits(Step, _React$Component);
|
|
78
82
|
|
|
79
|
-
|
|
80
|
-
var _getPrototypeOf2;
|
|
83
|
+
var _super = _createSuper(Step);
|
|
81
84
|
|
|
85
|
+
function Step() {
|
|
82
86
|
var _this;
|
|
83
87
|
|
|
84
88
|
_classCallCheck(this, Step);
|
|
@@ -87,7 +91,7 @@ function (_React$Component) {
|
|
|
87
91
|
args[_key] = arguments[_key];
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
_this =
|
|
94
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
91
95
|
|
|
92
96
|
_defineProperty(_assertThisInitialized(_this), "handleOnSubmit", function (ev) {
|
|
93
97
|
var valid = true;
|
|
@@ -123,44 +127,15 @@ function (_React$Component) {
|
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
_createClass(Step, [{
|
|
126
|
-
key: "render",
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Renders the component.
|
|
130
|
-
*
|
|
131
|
-
* @method render
|
|
132
|
-
*/
|
|
133
|
-
value: function render() {
|
|
134
|
-
if (this.wizard) {
|
|
135
|
-
return _react.default.createElement("div", {
|
|
136
|
-
className: this.mainClasses
|
|
137
|
-
}, _react.default.createElement("div", {
|
|
138
|
-
className: "multi-step-wizard-step__indicator-bar ".concat(this.indicatorStatus)
|
|
139
|
-
}, _react.default.createElement("div", {
|
|
140
|
-
className: "multi-step-wizard-step__indicator-background"
|
|
141
|
-
})), _react.default.createElement("div", {
|
|
142
|
-
className: "multi-step-wizard-step__indicator-icon"
|
|
143
|
-
}, _react.default.createElement("div", {
|
|
144
|
-
className: "multi-step-wizard-step__indicator-placeholder"
|
|
145
|
-
}, _react.default.createElement("div", {
|
|
146
|
-
className: "multi-step-wizard-step__indicator-icon__content ".concat(this.indicatorStatus)
|
|
147
|
-
}, this.indicatorHTML))), this.stepHTML);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return _react.default.createElement("div", {
|
|
151
|
-
className: "multi-step-wizard-step--none"
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
130
|
key: "wizard",
|
|
156
|
-
|
|
131
|
+
get:
|
|
157
132
|
/**
|
|
158
133
|
* Gets the step's wizard
|
|
159
134
|
*
|
|
160
135
|
* @method wizard
|
|
161
136
|
* @return {Object}
|
|
162
137
|
*/
|
|
163
|
-
|
|
138
|
+
function get() {
|
|
164
139
|
return this.context.wizard;
|
|
165
140
|
}
|
|
166
141
|
/**
|
|
@@ -253,7 +228,7 @@ function (_React$Component) {
|
|
|
253
228
|
}, {
|
|
254
229
|
key: "stepHTML",
|
|
255
230
|
get: function get() {
|
|
256
|
-
return _react.default.createElement("div", {
|
|
231
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
257
232
|
className: "multi-step-wizard-step__content"
|
|
258
233
|
}, this.props.children, this.buttonHTML);
|
|
259
234
|
}
|
|
@@ -274,7 +249,7 @@ function (_React$Component) {
|
|
|
274
249
|
var nextButton, backButton, submitButton;
|
|
275
250
|
|
|
276
251
|
if (this.isLastStep) {
|
|
277
|
-
submitButton = _react.default.createElement(_button.default, {
|
|
252
|
+
submitButton = /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
278
253
|
as: "primary",
|
|
279
254
|
className: "multi-step-wizard-step__button submit",
|
|
280
255
|
"data-element": "submit",
|
|
@@ -283,7 +258,7 @@ function (_React$Component) {
|
|
|
283
258
|
defaultValue: 'Submit'
|
|
284
259
|
}));
|
|
285
260
|
} else {
|
|
286
|
-
nextButton = _react.default.createElement(_button.default, {
|
|
261
|
+
nextButton = /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
287
262
|
as: "primary",
|
|
288
263
|
className: "multi-step-wizard-step__button next",
|
|
289
264
|
"data-element": "next",
|
|
@@ -294,7 +269,7 @@ function (_React$Component) {
|
|
|
294
269
|
}
|
|
295
270
|
|
|
296
271
|
if (!this.isFirstStep) {
|
|
297
|
-
backButton = _react.default.createElement(_button.default, {
|
|
272
|
+
backButton = /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
298
273
|
className: "multi-step-wizard-step__button back",
|
|
299
274
|
"data-element": "back",
|
|
300
275
|
onClick: this.handleOnBack
|
|
@@ -303,7 +278,7 @@ function (_React$Component) {
|
|
|
303
278
|
}));
|
|
304
279
|
}
|
|
305
280
|
|
|
306
|
-
return _react.default.createElement("div", {
|
|
281
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
307
282
|
className: "multi-step-wizard-step__buttons"
|
|
308
283
|
}, nextButton, submitButton, backButton, this.extraButtonHTML);
|
|
309
284
|
}
|
|
@@ -318,13 +293,13 @@ function (_React$Component) {
|
|
|
318
293
|
key: "indicatorHTML",
|
|
319
294
|
get: function get() {
|
|
320
295
|
if (this.stepProcessed) {
|
|
321
|
-
return _react.default.createElement(_icon.default, {
|
|
296
|
+
return /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
322
297
|
type: "white-tick",
|
|
323
298
|
className: "multi-step-wizard-step__white-tick"
|
|
324
299
|
});
|
|
325
300
|
}
|
|
326
301
|
|
|
327
|
-
return _react.default.createElement("div", null, this.props.stepNumber);
|
|
302
|
+
return /*#__PURE__*/_react.default.createElement("div", null, this.props.stepNumber);
|
|
328
303
|
}
|
|
329
304
|
/**
|
|
330
305
|
* Returns the step indicator status.
|
|
@@ -349,7 +324,9 @@ function (_React$Component) {
|
|
|
349
324
|
key: "extraButtonHTML",
|
|
350
325
|
get: function get() {
|
|
351
326
|
return this.props.extraButtons.map(function (button, index) {
|
|
352
|
-
return (
|
|
327
|
+
return (
|
|
328
|
+
/*#__PURE__*/
|
|
329
|
+
// Would change behaviour to supply a uuid on each button
|
|
353
330
|
|
|
354
331
|
/* eslint-disable react/no-array-index-key */
|
|
355
332
|
_react.default.createElement("span", {
|
|
@@ -377,6 +354,35 @@ function (_React$Component) {
|
|
|
377
354
|
'multi-step-wizard-step-final': this.isLastStep
|
|
378
355
|
}, this.props.className);
|
|
379
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* Renders the component.
|
|
359
|
+
*
|
|
360
|
+
* @method render
|
|
361
|
+
*/
|
|
362
|
+
|
|
363
|
+
}, {
|
|
364
|
+
key: "render",
|
|
365
|
+
value: function render() {
|
|
366
|
+
if (this.wizard) {
|
|
367
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
368
|
+
className: this.mainClasses
|
|
369
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
370
|
+
className: "multi-step-wizard-step__indicator-bar ".concat(this.indicatorStatus)
|
|
371
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
372
|
+
className: "multi-step-wizard-step__indicator-background"
|
|
373
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
374
|
+
className: "multi-step-wizard-step__indicator-icon"
|
|
375
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
376
|
+
className: "multi-step-wizard-step__indicator-placeholder"
|
|
377
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
378
|
+
className: "multi-step-wizard-step__indicator-icon__content ".concat(this.indicatorStatus)
|
|
379
|
+
}, this.indicatorHTML))), this.stepHTML);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
383
|
+
className: "multi-step-wizard-step--none"
|
|
384
|
+
});
|
|
385
|
+
}
|
|
380
386
|
}]);
|
|
381
387
|
|
|
382
388
|
return Step;
|
|
@@ -463,13 +469,6 @@ _defineProperty(Step, "defaultProps", {
|
|
|
463
469
|
|
|
464
470
|
_defineProperty(Step, "contextTypes", {
|
|
465
471
|
wizard: _propTypes.default.object
|
|
466
|
-
/**
|
|
467
|
-
* Completes the step's wizard and triggers the custom submit event handler of the step's wizard
|
|
468
|
-
*
|
|
469
|
-
* @method handleOnSubmit
|
|
470
|
-
* @return {void}
|
|
471
|
-
*/
|
|
472
|
-
|
|
473
472
|
});
|
|
474
473
|
|
|
475
474
|
var _default = Step;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.object.assign");
|
|
11
|
+
require("core-js/modules/es.object.assign.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.description.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/
|
|
19
|
+
require("core-js/modules/es.array.iterator.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.string.iterator.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
20
24
|
|
|
21
25
|
Object.defineProperty(exports, "__esModule", {
|
|
22
26
|
value: true
|
|
@@ -37,60 +41,69 @@ require("./navigation-bar.scss");
|
|
|
37
41
|
|
|
38
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
43
|
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
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); }
|
|
44
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
43
45
|
|
|
44
46
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
45
47
|
|
|
46
48
|
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); } }
|
|
47
49
|
|
|
48
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
50
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
49
51
|
|
|
50
|
-
function
|
|
52
|
+
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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
51
53
|
|
|
52
|
-
function
|
|
54
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
53
55
|
|
|
54
|
-
function
|
|
56
|
+
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); }; }
|
|
57
|
+
|
|
58
|
+
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); }
|
|
59
|
+
|
|
60
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
55
61
|
|
|
56
|
-
function
|
|
62
|
+
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; } }
|
|
57
63
|
|
|
58
|
-
function
|
|
64
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
59
65
|
|
|
60
66
|
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; }
|
|
61
67
|
|
|
62
68
|
/**
|
|
63
69
|
* Renders a full width application bar.
|
|
64
70
|
*/
|
|
65
|
-
var NavigationBar =
|
|
66
|
-
/*#__PURE__*/
|
|
67
|
-
function (_React$Component) {
|
|
71
|
+
var NavigationBar = /*#__PURE__*/function (_React$Component) {
|
|
68
72
|
_inherits(NavigationBar, _React$Component);
|
|
69
73
|
|
|
74
|
+
var _super = _createSuper(NavigationBar);
|
|
75
|
+
|
|
70
76
|
function NavigationBar() {
|
|
71
77
|
_classCallCheck(this, NavigationBar);
|
|
72
78
|
|
|
73
|
-
return
|
|
79
|
+
return _super.apply(this, arguments);
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
_createClass(NavigationBar, [{
|
|
77
|
-
key: "
|
|
78
|
-
|
|
83
|
+
key: "classes",
|
|
84
|
+
get:
|
|
85
|
+
/**
|
|
86
|
+
* Returns the classes for the component.
|
|
87
|
+
*
|
|
88
|
+
* @method classes
|
|
89
|
+
* @return {String}
|
|
90
|
+
*/
|
|
91
|
+
function get() {
|
|
92
|
+
return (0, _classnames.default)('carbon-navigation-bar', this.props.className, "carbon-navigation-bar--".concat(this.props.as));
|
|
93
|
+
}
|
|
79
94
|
/**
|
|
80
95
|
* @method render
|
|
81
96
|
*/
|
|
97
|
+
|
|
98
|
+
}, {
|
|
99
|
+
key: "render",
|
|
82
100
|
value: function render() {
|
|
83
|
-
return _react.default.createElement("div", _extends({
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
84
102
|
className: this.classes
|
|
85
|
-
}, (0, _tags.default)('navigation-bar', this.props)), _react.default.createElement(_appWrapper.default, {
|
|
103
|
+
}, (0, _tags.default)('navigation-bar', this.props)), /*#__PURE__*/_react.default.createElement(_appWrapper.default, {
|
|
86
104
|
className: "carbon-navigation-bar__content"
|
|
87
105
|
}, this.props.children));
|
|
88
106
|
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "classes",
|
|
91
|
-
get: function get() {
|
|
92
|
-
return (0, _classnames.default)('carbon-navigation-bar', this.props.className, "carbon-navigation-bar--".concat(this.props.as));
|
|
93
|
-
}
|
|
94
107
|
}]);
|
|
95
108
|
|
|
96
109
|
return NavigationBar;
|
|
@@ -125,13 +138,6 @@ _defineProperty(NavigationBar, "propTypes", {
|
|
|
125
138
|
|
|
126
139
|
_defineProperty(NavigationBar, "defaultProps", {
|
|
127
140
|
as: 'primary'
|
|
128
|
-
/**
|
|
129
|
-
* Returns the classes for the component.
|
|
130
|
-
*
|
|
131
|
-
* @method classes
|
|
132
|
-
* @return {String}
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
141
|
});
|
|
136
142
|
|
|
137
143
|
var _default = NavigationBar;
|
|
@@ -1,34 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.symbol.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.description.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.string.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/
|
|
22
|
-
|
|
23
|
-
require("core-js/modules/es.string.iterator");
|
|
24
|
-
|
|
25
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
21
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
26
22
|
|
|
27
23
|
Object.defineProperty(exports, "__esModule", {
|
|
28
24
|
value: true
|
|
29
25
|
});
|
|
30
26
|
exports.default = void 0;
|
|
31
27
|
|
|
28
|
+
require("core-js/modules/es.array.concat.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.object.assign.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.regexp.constructor.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
35
|
+
|
|
36
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
37
|
+
|
|
32
38
|
var _react = _interopRequireDefault(require("react"));
|
|
33
39
|
|
|
34
40
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -45,29 +51,31 @@ var _ether = require("../../utils/ether");
|
|
|
45
51
|
|
|
46
52
|
var _tags = _interopRequireDefault(require("../../utils/helpers/tags"));
|
|
47
53
|
|
|
48
|
-
var _class
|
|
54
|
+
var _class;
|
|
49
55
|
|
|
50
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
57
|
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
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); }
|
|
58
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
55
59
|
|
|
56
60
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
61
|
|
|
58
62
|
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); } }
|
|
59
63
|
|
|
60
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
64
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
65
|
+
|
|
66
|
+
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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
61
67
|
|
|
62
|
-
function
|
|
68
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
63
69
|
|
|
64
|
-
function
|
|
70
|
+
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); }; }
|
|
71
|
+
|
|
72
|
+
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); }
|
|
65
73
|
|
|
66
74
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
67
75
|
|
|
68
|
-
function
|
|
76
|
+
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; } }
|
|
69
77
|
|
|
70
|
-
function
|
|
78
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
71
79
|
|
|
72
80
|
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; }
|
|
73
81
|
|
|
@@ -89,14 +97,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
89
97
|
* @constructor
|
|
90
98
|
* @decorators {Input,InputLabel,InputValidation}
|
|
91
99
|
*/
|
|
92
|
-
var Number = (0, _input.default)((0, _inputLabel.default)((0, _inputValidation.default)((
|
|
93
|
-
/*#__PURE__*/
|
|
94
|
-
function (_React$Component) {
|
|
100
|
+
var Number = (0, _input.default)((0, _inputLabel.default)((0, _inputValidation.default)((_class = /*#__PURE__*/function (_React$Component) {
|
|
95
101
|
_inherits(Number, _React$Component);
|
|
96
102
|
|
|
97
|
-
|
|
98
|
-
var _getPrototypeOf2;
|
|
103
|
+
var _super = _createSuper(Number);
|
|
99
104
|
|
|
105
|
+
function Number() {
|
|
100
106
|
var _this;
|
|
101
107
|
|
|
102
108
|
_classCallCheck(this, Number);
|
|
@@ -105,7 +111,7 @@ function (_React$Component) {
|
|
|
105
111
|
args[_key] = arguments[_key];
|
|
106
112
|
}
|
|
107
113
|
|
|
108
|
-
_this =
|
|
114
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
109
115
|
|
|
110
116
|
_defineProperty(_assertThisInitialized(_this), "handleOnChange", function (ev) {
|
|
111
117
|
if (isValidNumber(ev.target.value)) {
|
|
@@ -133,22 +139,15 @@ function (_React$Component) {
|
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
_createClass(Number, [{
|
|
136
|
-
key: "
|
|
137
|
-
|
|
142
|
+
key: "mainClasses",
|
|
143
|
+
get:
|
|
138
144
|
/**
|
|
139
|
-
*
|
|
145
|
+
* Main Class getter
|
|
140
146
|
*
|
|
141
|
-
* @method
|
|
142
|
-
* @return {
|
|
147
|
+
* @method mainClasses
|
|
148
|
+
* @return {String} Main className
|
|
143
149
|
*/
|
|
144
|
-
|
|
145
|
-
return _react.default.createElement("div", _extends({
|
|
146
|
-
className: this.mainClasses
|
|
147
|
-
}, (0, _tags.default)('number', this.props)), this.labelHTML, this.inputHTML, this.validationHTML, this.fieldHelpHTML);
|
|
148
|
-
}
|
|
149
|
-
}, {
|
|
150
|
-
key: "mainClasses",
|
|
151
|
-
get: function get() {
|
|
150
|
+
function get() {
|
|
152
151
|
return (0, _classnames.default)('carbon-number', this.props.className);
|
|
153
152
|
}
|
|
154
153
|
/**
|
|
@@ -173,7 +172,7 @@ function (_React$Component) {
|
|
|
173
172
|
|
|
174
173
|
}, {
|
|
175
174
|
key: "inputProps",
|
|
176
|
-
|
|
175
|
+
get:
|
|
177
176
|
/**
|
|
178
177
|
* A getter that combines props passed down from the input decorator with
|
|
179
178
|
* number specific props.
|
|
@@ -181,7 +180,7 @@ function (_React$Component) {
|
|
|
181
180
|
* @method inputProps
|
|
182
181
|
* @return {Object} props for the input
|
|
183
182
|
*/
|
|
184
|
-
|
|
183
|
+
function get() {
|
|
185
184
|
var _validProps = (0, _ether.validProps)(this),
|
|
186
185
|
props = Object.assign({}, _validProps);
|
|
187
186
|
|
|
@@ -190,6 +189,20 @@ function (_React$Component) {
|
|
|
190
189
|
props.onKeyDown = this.handleKeyDown;
|
|
191
190
|
return props;
|
|
192
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Renders the component.
|
|
194
|
+
*
|
|
195
|
+
* @method render
|
|
196
|
+
* @return {Object} JSX
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
}, {
|
|
200
|
+
key: "render",
|
|
201
|
+
value: function render() {
|
|
202
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
203
|
+
className: this.mainClasses
|
|
204
|
+
}, (0, _tags.default)('number', this.props)), this.labelHTML, this.inputHTML, this.validationHTML, this.fieldHelpHTML);
|
|
205
|
+
}
|
|
193
206
|
}]);
|
|
194
207
|
|
|
195
208
|
return Number;
|
|
@@ -217,14 +230,7 @@ function (_React$Component) {
|
|
|
217
230
|
* @type {Function}
|
|
218
231
|
*/
|
|
219
232
|
onKeyDown: _propTypes.default.func
|
|
220
|
-
|
|
221
|
-
* Main Class getter
|
|
222
|
-
*
|
|
223
|
-
* @method mainClasses
|
|
224
|
-
* @return {String} Main className
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
}), _temp))));
|
|
233
|
+
}), _class))));
|
|
228
234
|
/**
|
|
229
235
|
* Checks that the given value is valid number.
|
|
230
236
|
*
|