intelicoreact 0.1.37 → 0.1.38

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.
@@ -48,7 +48,9 @@ var RangeInputs = function RangeInputs(_ref) {
48
48
  onChange = _ref.onChange,
49
49
  _ref$type = _ref.type,
50
50
  type = _ref$type === void 0 ? 'int' : _ref$type,
51
- setInnerError = _ref.setError;
51
+ setInnerError = _ref.setError,
52
+ _ref$label = _ref.label,
53
+ label = _ref$label === void 0 ? "" : _ref$label;
52
54
 
53
55
  var _useState = (0, _react.useState)({
54
56
  from: '',
@@ -98,7 +100,9 @@ var RangeInputs = function RangeInputs(_ref) {
98
100
 
99
101
  return /*#__PURE__*/_react.default.createElement("div", {
100
102
  className: (0, _classnames.default)(RC, className, (0, _defineProperty2.default)({}, "".concat(RC, "_column"), isColumnPosition))
101
- }, /*#__PURE__*/_react.default.createElement("div", {
103
+ }, label && label !== " " && /*#__PURE__*/_react.default.createElement("div", {
104
+ className: "".concat(RC, "__label")
105
+ }, label), /*#__PURE__*/_react.default.createElement("div", {
102
106
  className: "".concat(RC, "__wrapper")
103
107
  }, /*#__PURE__*/_react.default.createElement("div", {
104
108
  className: "".concat(RC, "__input-from")
@@ -2,7 +2,8 @@
2
2
  display: flex;
3
3
  flex-flow: row nowrap;
4
4
  justify-content: flex-start;
5
- align-items: center;
5
+ align-items: flex-start;
6
+ flex-direction: column;
6
7
 
7
8
  &__wrapper {
8
9
  width: 100%;
@@ -47,4 +48,13 @@
47
48
  margin-bottom: 15px;
48
49
  }
49
50
  }
51
+
52
+ .range-inputs__label{
53
+ font-family: 'Roboto';
54
+ font-style: normal;
55
+ font-weight: 500;
56
+ font-size: 12px;
57
+ line-height: 24px;
58
+ margin-bottom: 8px;
59
+ }
50
60
  }
@@ -51,5 +51,6 @@ exports.RangeInputsTemplate = RangeInputsTemplate;
51
51
  RangeInputsTemplate.args = {
52
52
  isColumnPosition: true,
53
53
  className: '',
54
- type: 'int'
54
+ type: 'int',
55
+ label: 'Range Inputs'
55
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "fixes",
5
5
  "main": "dist/index.js",
6
6
  "files": ["dist/*", "node_modules/anme/*", "node_modules/moment/*", "node_modules/moment-timezone/*"],