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
|
@@ -9,6 +9,10 @@ var _validations = _interopRequireDefault(require("../../helpers/validations"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
+
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); } }
|
|
13
|
+
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
|
|
12
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
17
|
|
|
14
18
|
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; }
|
|
@@ -33,7 +37,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
33
37
|
*
|
|
34
38
|
* @constructor ExclusionValidator
|
|
35
39
|
*/
|
|
36
|
-
var ExclusionValidator =
|
|
40
|
+
var ExclusionValidator = /*#__PURE__*/_createClass(
|
|
37
41
|
/**
|
|
38
42
|
* @method constructor
|
|
39
43
|
* @param {Object} params
|
|
@@ -70,7 +74,7 @@ function ExclusionValidator() {
|
|
|
70
74
|
* @param {String} value to check presence
|
|
71
75
|
* @return {Boolean} true if value is valid
|
|
72
76
|
*/
|
|
73
|
-
;
|
|
77
|
+
);
|
|
74
78
|
|
|
75
79
|
var _default = ExclusionValidator;
|
|
76
80
|
exports.default = _default;
|
|
@@ -9,6 +9,10 @@ var _validations = _interopRequireDefault(require("../../helpers/validations"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
+
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); } }
|
|
13
|
+
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
|
|
12
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
17
|
|
|
14
18
|
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; }
|
|
@@ -33,7 +37,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
33
37
|
*
|
|
34
38
|
* @constructor InclusionValidator
|
|
35
39
|
*/
|
|
36
|
-
var InclusionValidator =
|
|
40
|
+
var InclusionValidator = /*#__PURE__*/_createClass(
|
|
37
41
|
/**
|
|
38
42
|
* @method constructor
|
|
39
43
|
* @param {Object} params
|
|
@@ -70,7 +74,7 @@ function InclusionValidator() {
|
|
|
70
74
|
* @param {String} value to check presence
|
|
71
75
|
* @return {Boolean} true if value is valid
|
|
72
76
|
*/
|
|
73
|
-
;
|
|
77
|
+
);
|
|
74
78
|
|
|
75
79
|
var _default = InclusionValidator;
|
|
76
80
|
exports.default = _default;
|
|
@@ -9,6 +9,10 @@ var _validations = _interopRequireDefault(require("../../helpers/validations"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
+
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); } }
|
|
13
|
+
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
|
|
12
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -50,7 +54,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
50
54
|
*
|
|
51
55
|
* @constructor LengthValidator
|
|
52
56
|
*/
|
|
53
|
-
var LengthValidator =
|
|
57
|
+
var LengthValidator = /*#__PURE__*/_createClass(
|
|
54
58
|
/**
|
|
55
59
|
* @method constructor
|
|
56
60
|
* @param {Object} params
|
|
@@ -112,7 +116,7 @@ function LengthValidator() {
|
|
|
112
116
|
*/
|
|
113
117
|
|
|
114
118
|
this.message = validationObject.message;
|
|
115
|
-
};
|
|
119
|
+
});
|
|
116
120
|
|
|
117
121
|
var _default = LengthValidator; // Private Methods
|
|
118
122
|
|
|
@@ -5,10 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
9
|
+
|
|
8
10
|
var _validations = _interopRequireDefault(require("../../../helpers/validations"));
|
|
9
11
|
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
13
|
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
12
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
19
|
|
|
14
20
|
/**
|
|
@@ -28,7 +34,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
28
34
|
*
|
|
29
35
|
* @constructor NumeralTypeValidator
|
|
30
36
|
*/
|
|
31
|
-
var NumeralTypeValidator = function NumeralTypeValidator() {
|
|
37
|
+
var NumeralTypeValidator = /*#__PURE__*/_createClass(function NumeralTypeValidator() {
|
|
32
38
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
33
39
|
|
|
34
40
|
_classCallCheck(this, NumeralTypeValidator);
|
|
@@ -84,7 +90,7 @@ var NumeralTypeValidator = function NumeralTypeValidator() {
|
|
|
84
90
|
*/
|
|
85
91
|
|
|
86
92
|
this.message = validationObject.message;
|
|
87
|
-
};
|
|
93
|
+
});
|
|
88
94
|
|
|
89
95
|
var _default = NumeralTypeValidator; // Private Methods
|
|
90
96
|
|
|
@@ -17,6 +17,10 @@ var _i18n = _interopRequireDefault(require("../../helpers/i18n"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
+
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); } }
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
+
|
|
20
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
25
|
|
|
22
26
|
/**
|
|
@@ -62,7 +66,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
62
66
|
*
|
|
63
67
|
* @constructor NumeralValidator
|
|
64
68
|
*/
|
|
65
|
-
var NumeralValidator =
|
|
69
|
+
var NumeralValidator = /*#__PURE__*/_createClass(
|
|
66
70
|
/**
|
|
67
71
|
* @method constructor
|
|
68
72
|
* @param {Object} params
|
|
@@ -133,7 +137,7 @@ function NumeralValidator() {
|
|
|
133
137
|
*/
|
|
134
138
|
|
|
135
139
|
this.message = validationObject.message;
|
|
136
|
-
};
|
|
140
|
+
});
|
|
137
141
|
|
|
138
142
|
var _default = NumeralValidator; // Private Methods
|
|
139
143
|
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.string.
|
|
3
|
+
require("core-js/modules/es.object.to-string.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/web.dom-collections.for-each");
|
|
5
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
|
|
12
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
13
|
+
|
|
14
|
+
require("core-js/modules/es.string.match.js");
|
|
15
|
+
|
|
12
16
|
var _lodash = require("lodash");
|
|
13
17
|
|
|
14
18
|
var _validations = _interopRequireDefault(require("../../helpers/validations"));
|
|
15
19
|
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
21
|
|
|
22
|
+
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); } }
|
|
23
|
+
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
+
|
|
18
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
27
|
|
|
20
28
|
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; }
|
|
@@ -44,7 +52,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
44
52
|
*
|
|
45
53
|
* @constructor PresenceValidator
|
|
46
54
|
*/
|
|
47
|
-
var PresenceValidator =
|
|
55
|
+
var PresenceValidator = /*#__PURE__*/_createClass(
|
|
48
56
|
/**
|
|
49
57
|
* @method constructor
|
|
50
58
|
* @param {Object} params
|
|
@@ -125,7 +133,7 @@ function PresenceValidator() {
|
|
|
125
133
|
* @param {Object} props - component properties
|
|
126
134
|
* @return {Boolean} true if value is valid
|
|
127
135
|
*/
|
|
128
|
-
;
|
|
136
|
+
);
|
|
129
137
|
|
|
130
138
|
function isValid(value) {
|
|
131
139
|
if (Array.isArray(value)) return value.length > 0;
|
|
@@ -5,10 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
9
|
+
|
|
8
10
|
var _validations = _interopRequireDefault(require("../../helpers/validations"));
|
|
9
11
|
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
13
|
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
12
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
19
|
|
|
14
20
|
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; }
|
|
@@ -28,7 +34,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
28
34
|
*
|
|
29
35
|
* @constructor RegexValidator
|
|
30
36
|
*/
|
|
31
|
-
var RegexValidator =
|
|
37
|
+
var RegexValidator = /*#__PURE__*/_createClass(
|
|
32
38
|
/**
|
|
33
39
|
* @method constructor
|
|
34
40
|
* @param {Object} params
|
|
@@ -71,7 +77,7 @@ function RegexValidator() {
|
|
|
71
77
|
* @param {Float} value to check
|
|
72
78
|
* @return {Boolean} true if value is valid
|
|
73
79
|
*/
|
|
74
|
-
;
|
|
80
|
+
);
|
|
75
81
|
|
|
76
82
|
var _default = RegexValidator;
|
|
77
83
|
exports.default = _default;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
4
7
|
|
|
5
|
-
require("core-js/modules/es.
|
|
8
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
9
|
|
|
7
|
-
require("core-js/modules/es.
|
|
10
|
+
require("core-js/modules/es.promise.js");
|
|
8
11
|
|
|
9
|
-
require("core-js/modules/es.array.
|
|
12
|
+
require("core-js/modules/es.array.map.js");
|
|
10
13
|
|
|
11
|
-
require("core-js/modules/es.array.
|
|
14
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
15
|
|
|
13
|
-
require("core-js/modules/es.
|
|
16
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
17
|
|
|
15
|
-
require("core-js/modules/
|
|
18
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
19
|
|
|
17
|
-
require("core-js/modules/es.
|
|
20
|
+
require("core-js/modules/es.symbol.js");
|
|
18
21
|
|
|
19
|
-
require("core-js/modules/
|
|
22
|
+
require("core-js/modules/es.symbol.description.js");
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports.default = void 0;
|
|
24
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
25
25
|
|
|
26
|
-
function _typeof(obj) {
|
|
26
|
+
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); }
|
|
27
27
|
|
|
28
28
|
var isLegacy = function isLegacy(func) {
|
|
29
29
|
return _typeof(func) === 'object';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.6",
|
|
4
4
|
"description": "A library of reusable React components and an interface for easily building user interfaces based on Flux.",
|
|
5
5
|
"engineStrict": true,
|
|
6
6
|
"engines": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"lint": "./node_modules/.bin/eslint",
|
|
18
18
|
"lint-ts": "./node_modules/.bin/tslint 'src/**/*.ts'",
|
|
19
19
|
"precompile": "npm run clean-lib && npm run copy-files && npm run babel",
|
|
20
|
-
"prepublishOnly": "node check-version.js && npm
|
|
20
|
+
"prepublishOnly": "node check-version.js && npm run precompile",
|
|
21
21
|
"watch": "npm run clean-lib && npm run copy-files -- --watch & npm run babel -- --watch",
|
|
22
22
|
"storybook": "./node_modules/.bin/start-storybook -p 9001 -c .storybook",
|
|
23
|
-
"babel": "cross-env NODE_ENV=production babel
|
|
23
|
+
"babel": "cross-env NODE_ENV=production babel ./src --config-file ./babel.config.js --out-dir ./lib --ignore '**/*/__spec__.js','**/*.spec.js','**/__definition__.js' --quiet",
|
|
24
24
|
"clean-lib": "rimraf ./lib",
|
|
25
25
|
"copy-files": "cpx \"src/**/!(*.js|*.md|*.snap)\" lib",
|
|
26
26
|
"webpack": "node_modules/.bin/webpack",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/Sage/carbon#readme",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"react": "^16.8.2",
|
|
41
|
-
"react-dom": "^16.8.2",
|
|
40
|
+
"react": "^16.8.2 || ^17.0.2",
|
|
41
|
+
"react-dom": "^16.8.2 || ^17.0.2",
|
|
42
42
|
"i18n-js": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@storybook/addon-viewport": "^5.1.8",
|
|
51
51
|
"@storybook/react": "^5.1.8",
|
|
52
52
|
"@types/enzyme": "3.1.15",
|
|
53
|
-
"@types/enzyme-adapter-react-16": "1.0.3",
|
|
54
53
|
"@types/jest": "23.3.13",
|
|
55
54
|
"@types/node": "10.12.18",
|
|
56
|
-
"@types/react": "
|
|
57
|
-
"@types/react-dom": "
|
|
55
|
+
"@types/react": "^17.0.2",
|
|
56
|
+
"@types/react-dom": "^17.0.2",
|
|
57
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
|
|
58
58
|
"babel-standalone": "~6.17.0",
|
|
59
59
|
"carbon-factory": "^8.0.2",
|
|
60
60
|
"carbon-state-management": "^1.0.0",
|
|
@@ -70,14 +70,13 @@
|
|
|
70
70
|
"jest-styled-components": "^6.3.1",
|
|
71
71
|
"moxios": "^0.4.0",
|
|
72
72
|
"raf": "^3.4.0",
|
|
73
|
-
"react": "
|
|
73
|
+
"react": "^17.0.2",
|
|
74
74
|
"react-dnd-test-backend": "~2.4.0",
|
|
75
|
-
"react-dom": "
|
|
75
|
+
"react-dom": "^17.0.2",
|
|
76
76
|
"react-highlight": "briancappello/react-highlight#react-v16-compiled",
|
|
77
|
-
"react-test-renderer": "
|
|
77
|
+
"react-test-renderer": "^17.0.2",
|
|
78
78
|
"rimraf": "^2.6.3",
|
|
79
|
-
"underscore.string": "~3.3.4"
|
|
80
|
-
"xhr-mock": "git://github.com/resin-io-modules/xhr-mock.git#improvements"
|
|
79
|
+
"underscore.string": "~3.3.4"
|
|
81
80
|
},
|
|
82
81
|
"dependencies": {
|
|
83
82
|
"axios": "^0.19.0",
|
|
@@ -100,6 +99,7 @@
|
|
|
100
99
|
"react-router": "^3.0.0",
|
|
101
100
|
"react-transition-group": "^1.2.1",
|
|
102
101
|
"regenerator-runtime": "^0.13.2",
|
|
102
|
+
"semantic-release": "^16.0.1",
|
|
103
103
|
"styled-components": "^4.1.3",
|
|
104
104
|
"superagent": "~3.8.2"
|
|
105
105
|
}
|