intelicoreact 0.2.45 → 0.2.48

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.
@@ -29,14 +29,11 @@ var CheckboxInput = function CheckboxInput(_ref) {
29
29
  className = _ref.className,
30
30
  isStark = _ref.isStark;
31
31
  return /*#__PURE__*/_react.default.createElement("label", {
32
- key: id || key,
33
32
  className: (0, _classnames.default)('checkbox-input', className, (0, _defineProperty2.default)({}, "checkbox-input_disabled", disabled)),
34
33
  htmlFor: id
35
34
  }, /*#__PURE__*/_react.default.createElement("div", {
36
35
  className: (0, _classnames.default)("checkbox-input__input", (_cn2 = {}, (0, _defineProperty2.default)(_cn2, "checkbox-input__input_checked", value), (0, _defineProperty2.default)(_cn2, "checkbox-input__input_indeterminate", isStark), _cn2))
37
- }, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
38
- key: id || key
39
- }, id ? (0, _defineProperty2.default)({
36
+ }, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({}, id ? (0, _defineProperty2.default)({
40
37
  id: id
41
38
  }, 'data-id', id) : {}, {
42
39
  type: "checkbox",
@@ -41,6 +41,8 @@ var SwitcherCheckbox = function SwitcherCheckbox(_ref) {
41
41
  isActive = _ref.isActive,
42
42
  hintSide = _ref.hintSide,
43
43
  disabled = _ref.disabled,
44
+ _ref$hideChildren = _ref.hideChildren,
45
+ hideChildren = _ref$hideChildren === void 0 ? true : _ref$hideChildren,
44
46
  _ref$onSwitcherChange = _ref.onSwitcherChange,
45
47
  onSwitcherChange = _ref$onSwitcherChange === void 0 ? function () {} : _ref$onSwitcherChange,
46
48
  _ref$onChange = _ref.onChange,
@@ -66,7 +68,7 @@ var SwitcherCheckbox = function SwitcherCheckbox(_ref) {
66
68
  },
67
69
  isLabelBold: isLabelBold,
68
70
  hint: hint
69
- }), isActive && renderCheckboxes());
71
+ }), isActive ? renderCheckboxes() : !hideChildren ? renderCheckboxes() : '');
70
72
  };
71
73
 
72
74
  var _default = SwitcherCheckbox;
@@ -35,21 +35,21 @@ var getIcon = function getIcon(type) {
35
35
  }), /*#__PURE__*/_react.default.createElement("path", {
36
36
  d: "M18 18V11",
37
37
  stroke: "#1F7499",
38
- "stroke-width": "2",
39
- "stroke-linecap": "round",
40
- "stroke-linejoin": "round"
38
+ strokeWidth: "2",
39
+ strokeLinecap: "round",
40
+ strokeLinejoin: "round"
41
41
  }), /*#__PURE__*/_react.default.createElement("path", {
42
42
  d: "M12 18V6",
43
43
  stroke: "#1F7499",
44
- "stroke-width": "2",
45
- "stroke-linecap": "round",
46
- "stroke-linejoin": "round"
44
+ strokeWidth: "2",
45
+ strokeLinecap: "round",
46
+ strokeLinejoin: "round"
47
47
  }), /*#__PURE__*/_react.default.createElement("path", {
48
48
  d: "M6 18V13",
49
49
  stroke: "#1F7499",
50
- "stroke-width": "2",
51
- "stroke-linecap": "round",
52
- "stroke-linejoin": "round"
50
+ strokeWidth: "2",
51
+ strokeLinecap: "round",
52
+ strokeLinejoin: "round"
53
53
  }));
54
54
 
55
55
  case 'Line':
@@ -68,9 +68,9 @@ var getIcon = function getIcon(type) {
68
68
  }), /*#__PURE__*/_react.default.createElement("path", {
69
69
  d: "M21 8L15.2544 13.2668C14.1075 14.3181 12.3288 14.3014 11.1818 13.25V13.25C10.0349 12.1986 8.25615 12.1819 7.10919 13.2332L3 17",
70
70
  stroke: "#1F7499",
71
- "stroke-width": "2",
72
- "stroke-linecap": "round",
73
- "stroke-linejoin": "round"
71
+ strokeWidth: "2",
72
+ strokeLinecap: "round",
73
+ strokeLinejoin: "round"
74
74
  }));
75
75
 
76
76
  default:
@@ -43,7 +43,7 @@
43
43
  transform: translate(3px, 3px);
44
44
  transition: stroke-dashoffset 0.8s;
45
45
 
46
- stroke-linecap: round;
46
+ strokeLinecap: round;
47
47
  }
48
48
  }
49
49
 
@@ -88,15 +88,15 @@ var Hint = function Hint(_ref) {
88
88
  }), /*#__PURE__*/_react.default.createElement("path", {
89
89
  d: "M6.06006 6.00001C6.21679 5.55446 6.52616 5.17875 6.93336 4.93944C7.34056 4.70012 7.81932 4.61264 8.28484 4.69249C8.75036 4.77234 9.1726 5.01436 9.47678 5.3757C9.78095 5.73703 9.94743 6.19436 9.94673 6.66668C9.94673 8.00001 7.94673 8.66668 7.94673 8.66668",
90
90
  stroke: "white",
91
- "stroke-width": "1.20265",
92
- "stroke-linecap": "round",
93
- "stroke-linejoin": "round"
91
+ strokeWidth: "1.20265",
92
+ strokeLinecap: "round",
93
+ strokeLinejoin: "round"
94
94
  }), /*#__PURE__*/_react.default.createElement("path", {
95
95
  d: "M8 11.3334H8.00643",
96
96
  stroke: "white",
97
- "stroke-width": "1.20265",
98
- "stroke-linecap": "round",
99
- "stroke-linejoin": "round"
97
+ strokeWidth: "1.20265",
98
+ strokeLinecap: "round",
99
+ strokeLinejoin: "round"
100
100
  })), variant === 'warning' && /*#__PURE__*/_react.default.createElement(_reactFeather.AlertTriangle, {
101
101
  className: "hint__icon",
102
102
  color: '#F06D8D',
@@ -62,7 +62,8 @@ var Modal = function Modal(_ref) {
62
62
  btnClassNames = _ref.btnClassNames,
63
63
  isCloseBtnIconPositionRight = _ref.isCloseBtnIconPositionRight,
64
64
  _ref$submitOnEnter = _ref.submitOnEnter,
65
- submitOnEnter = _ref$submitOnEnter === void 0 ? true : _ref$submitOnEnter;
65
+ submitOnEnter = _ref$submitOnEnter === void 0 ? true : _ref$submitOnEnter,
66
+ leftContentOfFooter = _ref.leftContentOfFooter;
66
67
  if (!isOpen) return null;
67
68
 
68
69
  var renderModalTitle = function renderModalTitle() {
@@ -114,7 +115,11 @@ var Modal = function Modal(_ref) {
114
115
  'modal__body--no-footer': noFooter
115
116
  })
116
117
  }, children), !noFooter && /*#__PURE__*/_react.default.createElement("div", {
117
- className: "modal__footer"
118
+ className: (0, _classnames.default)('modal__footer', {
119
+ 'modal__footer_with-left-content': leftContentOfFooter
120
+ })
121
+ }, leftContentOfFooter, /*#__PURE__*/_react.default.createElement("div", {
122
+ className: "modal__buttons-block"
118
123
  }, !noCloseBtn && /*#__PURE__*/_react.default.createElement(_Button.default, {
119
124
  testId: 'test-modal-closeBtn',
120
125
  className: (0, _classnames.default)(closeBtnClassName, btnClassNames),
@@ -135,7 +140,7 @@ var Modal = function Modal(_ref) {
135
140
  disabled: confirmBtnDisable,
136
141
  icon: confirmBtnIcon,
137
142
  isIconRight: isConfirmBtnIconPositionRight
138
- }))));
143
+ })))));
139
144
  };
140
145
 
141
146
  var _default = Modal;
@@ -78,6 +78,10 @@
78
78
  border-bottom-left-radius: 4px;
79
79
  border-bottom-right-radius: 4px;
80
80
 
81
+ &_with-left-content {
82
+ justify-content: space-between;
83
+ }
84
+
81
85
  &--inbody {
82
86
  position: absolute;
83
87
  bottom: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.45",
3
+ "version": "0.2.48",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [