ecomlab-components-next 0.1.56 → 0.1.57

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.
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
@@ -18,8 +17,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
18
17
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19
18
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
19
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
20
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
23
22
  var Checkbox = function Checkbox(_ref) {
24
23
  var id = _ref.id,
25
24
  value = _ref.value,
@@ -57,12 +57,16 @@ var getArticleBoxData = exports.getArticleBoxData = function getArticleBoxData(a
57
57
  };
58
58
  var articleTableHeaders = articleTableHeadersObj === null || articleTableHeadersObj === void 0 ? void 0 : articleTableHeadersObj[lang];
59
59
  return articlesData === null || articlesData === void 0 || (_articlesData$data = articlesData.data) === null || _articlesData$data === void 0 ? void 0 : _articlesData$data.map(function (el) {
60
+ var _el$articlesData$labe;
60
61
  var id = el[articlesData.labels.header.findIndex(function (e) {
61
62
  return e === articleTableHeaders.id;
62
63
  })];
63
64
  var name = el[articlesData.labels.header.findIndex(function (e) {
64
65
  return e === articleTableHeaders.name;
65
66
  })];
67
+ var cpu = (_el$articlesData$labe = el[articlesData.labels.header.findIndex(function (e) {
68
+ return e === articleTableHeaders.name;
69
+ })]) === null || _el$articlesData$labe === void 0 ? void 0 : _el$articlesData$labe[1];
66
70
  var annotation = el[articlesData.labels.header.findIndex(function (e) {
67
71
  return e === articleTableHeaders.annotation;
68
72
  })];
@@ -81,9 +85,9 @@ var getArticleBoxData = exports.getArticleBoxData = function getArticleBoxData(a
81
85
  var tags = el[articlesData.labels.header.findIndex(function (e) {
82
86
  return e === articleTableHeaders.tags;
83
87
  })];
84
- var date = new Date(el[articlesData.labels.header.findIndex(function (e) {
88
+ var date = el[articlesData.labels.header.findIndex(function (e) {
85
89
  return e === articleTableHeaders.publicationDate;
86
- })]);
90
+ })];
87
91
  var statusArray = el[articlesData.labels.header.findIndex(function (e) {
88
92
  return e === articleTableHeaders.status;
89
93
  })];
@@ -98,7 +102,8 @@ var getArticleBoxData = exports.getArticleBoxData = function getArticleBoxData(a
98
102
  views: views,
99
103
  tags: tags,
100
104
  date: date,
101
- statusArray: statusArray
105
+ statusArray: statusArray,
106
+ cpu: cpu
102
107
  };
103
108
  return data;
104
109
  });
@@ -74,11 +74,28 @@ var BlocksInfo = function BlocksInfo(_ref) {
74
74
  var _window2;
75
75
  return (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.open("https://lk.ecomru.ru/auth".concat(refPage), '_blunk');
76
76
  },
77
- size: "50px",
77
+ size: "60px",
78
78
  style: {
79
+ fontSize: '24px',
79
80
  marginTop: '16px'
80
81
  }
81
- }))));
82
+ }))), ind == 1 && child && child, /*#__PURE__*/_react["default"].createElement("div", {
83
+ className: 'landing-blocks-info-2__btn-box'
84
+ }, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
85
+ className: 'landing-blocks-info-2__btn-2',
86
+ green: true,
87
+ width: "100%",
88
+ maxWidth: "382px",
89
+ text: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C",
90
+ size: "50px",
91
+ onClick: function onClick() {
92
+ var _window3;
93
+ return (_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.open("https://lk.ecomru.ru/auth".concat(refPage), '_blunk');
94
+ },
95
+ style: {
96
+ fontSize: '16px'
97
+ }
98
+ })));
82
99
  })));
83
100
  };
84
101
  var _default = exports["default"] = BlocksInfo;
@@ -149,7 +149,6 @@
149
149
  &__info-box {
150
150
  gap: 10px;
151
151
  width: 100%;
152
- max-width: 100%;
153
152
  }
154
153
 
155
154
  &__info-block {}
@@ -220,7 +219,6 @@
220
219
 
221
220
  &__img-box {
222
221
  width: 100%;
223
- max-width: 100%;
224
222
  aspect-ratio: none;
225
223
  }
226
224
  }
@@ -34,7 +34,7 @@ var MarqueImgs = function MarqueImgs(_ref) {
34
34
  scrollWhen: 'always'
35
35
  }, marquee.map(function (el) {
36
36
  return /*#__PURE__*/_react["default"].createElement(_image["default"], {
37
- key: JSON.stringify(el),
37
+ key: el,
38
38
  src: el
39
39
  });
40
40
  })));
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
@@ -14,7 +13,6 @@ var _Checkbox = _interopRequireDefault(require("../../Checkbox/Checkbox/Checkbox
14
13
  require("./DropdownSelector.scss");
15
14
  var _excluded = ["taskOptions", "err", "options_prop", "setState", "placeholder", "className", "style", "multi", "name", "isClearable", "isSearchable", "disabled", "defaultValue", "state", "loadOptions", "showIndicator", "icon", "iconPlaceholder", "id", "fetchCallback", "setInputChange", "queryValue", "range", "noUpwardPaging", "resetPageOnChange", "tooltip", "color", "size", "width", "required", "lang", "refPosition", "minMenuHeight", "positionMenu", "onBlur", "all", "onClickSingle"],
16
15
  _excluded2 = ["index", "getValue"];
17
- var _localStorage;
18
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -34,10 +32,10 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
34
32
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
35
33
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
36
34
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
37
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
38
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
35
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
36
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
39
37
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
40
- var activeLang = (_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('lang');
38
+ var activeLang = localStorage.getItem('lang');
41
39
  var translateNotFound = function translateNotFound() {
42
40
  if (activeLang == 'en') return 'not found';
43
41
  if (activeLang == 'tr') return 'bulunmamış';
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
@@ -19,8 +18,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
19
18
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
19
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
20
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
23
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
21
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
24
23
  var InputDinamycPlaceholder = function InputDinamycPlaceholder(_ref) {
25
24
  var tooltip = _ref.tooltip,
26
25
  tooltipStatic = _ref.tooltipStatic,
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- 'use client';
3
2
 
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
@@ -18,8 +18,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
18
18
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19
19
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
20
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
21
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
23
23
  var CheckboxToggle = function CheckboxToggle(_ref) {
24
24
  var id = _ref.id,
25
25
  value = _ref.value,
@@ -245,8 +245,7 @@ var usePagination = exports.usePagination = function usePagination(fetchCallback
245
245
  setSettings = _useState12[1];
246
246
  (0, _react.useEffect)(function () {
247
247
  if (typeof localStorage !== 'undefined') {
248
- var _localStorage;
249
- setSettings((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem("lang"));
248
+ setSettings(localStorage.getItem("lang"));
250
249
  }
251
250
  }, []);
252
251
  var PaginatorComponent = /*#__PURE__*/_react["default"].createElement(Paginator, {
@@ -10,8 +10,8 @@ require("./button.css");
10
10
  var _excluded = ["primary", "backgroundColor", "size", "label"];
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
12
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
15
15
  /** Primary UI component for user interaction */
16
16
  var Button = exports.Button = function Button(_ref) {
17
17
  var primary = _ref.primary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [