@salutejs/plasma-hope 1.372.1-next-sbcom.0 → 1.373.0-dev.0
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/collectPackageInfo.js +2 -2
- package/components/AudioPlayer/AudioPlayer.component-test.js +5 -5
- package/components/AudioPlayer/AudioPlayer.js +9 -10
- package/components/AudioPlayer/utils.js +4 -4
- package/components/Badge/Badge.js +2 -3
- package/components/Button/Button.js +3 -4
- package/components/Button/views/b2c/ButtonB2C.js +4 -4
- package/components/Button/views/web/ButtonWeb.js +7 -7
- package/components/Card/Card.js +2 -3
- package/components/Card/CardBadge.js +2 -2
- package/components/Card/CardBody.js +2 -2
- package/components/Card/CardContent.js +2 -3
- package/components/Cell/Cell.js +5 -5
- package/components/Dropdown/Dropdown.component-test.js +11 -11
- package/components/Dropdown/Dropdown.js +11 -12
- package/components/Dropdown/DropdownItem.js +6 -7
- package/components/Dropdown/DropdownList.js +2 -3
- package/components/Dropdown/DropdownMenu.js +5 -5
- package/components/Dropdown/DropdownPopup.js +9 -10
- package/components/Dropdown/DropdownUncontrolled.js +5 -6
- package/components/Dropdown/keyboardNavigation/useSearchString.js +4 -4
- package/components/Dropdown/keyboardNavigation/utils.js +5 -5
- package/components/Dropdown/withAssistiveDropdown.js +9 -10
- package/components/Editable/Editable.component-test.js +2 -2
- package/components/Editable/Editable.js +10 -11
- package/components/ElasticGrid/ElasticGrid.component-test.js +4 -4
- package/components/ElasticGrid/ElasticGrid.js +11 -12
- package/components/List/List.js +2 -2
- package/components/List/ListItem.js +2 -2
- package/components/Modal/Modal.js +13 -14
- package/components/Modal/ModalView.js +6 -6
- package/components/Modal/ModalsContext.js +6 -7
- package/components/PaginationDots/PaginationDot.js +2 -3
- package/components/PaginationDots/PaginationDots.js +2 -2
- package/components/PaginationDots/SmartPaginationDots.js +4 -4
- package/components/PreviewGallery/PreviewGallery.component-test.js +13 -13
- package/components/PreviewGallery/PreviewGallery.js +9 -10
- package/components/PreviewGallery/PreviewGalleryItemBase.js +3 -4
- package/components/PreviewGallery/PreviewGalleryItemError.js +4 -5
- package/components/PreviewGallery/PreviewGalleryItemWithTooltip.js +9 -10
- package/components/PreviewGallery/PreviewGalleryItems.js +7 -8
- package/components/PreviewGallery/utils.js +6 -6
- package/components/Price/Price.js +2 -2
- package/components/Select/Select.js +5 -6
- package/components/Select/Select.utils.js +8 -8
- package/components/Select/SelectButton.js +6 -7
- package/components/Select/SelectDropdown.js +2 -2
- package/components/Select/SelectGroup.js +2 -2
- package/components/Select/SelectView.js +3 -4
- package/components/Select/views/b2c/SelectView.js +7 -8
- package/components/Select/views/web/SelectView.js +7 -8
- package/components/Select/withMultiSelect.js +5 -6
- package/components/Select/withSingleSelect.js +5 -6
- package/components/Slider/Slider.js +2 -2
- package/components/Switch/Switch.js +2 -2
- package/components/TextField/TextField.js +5 -6
- package/components/TextField/views/b2c/Caption.js +3 -3
- package/components/TextField/views/b2c/Content.js +2 -2
- package/components/TextField/views/b2c/Field.js +2 -3
- package/components/TextField/views/b2c/Input.js +2 -2
- package/components/TextField/views/b2c/Placeholder.js +2 -2
- package/components/TextField/views/b2c/TextFieldB2C.js +5 -6
- package/components/TextField/views/web/Field.js +6 -6
- package/components/TextField/views/web/Input.js +6 -7
- package/components/TextField/views/web/TextFieldWeb.js +5 -6
- package/components/Tooltip/Tooltip.js +10 -11
- package/components/Typography/Headline/index.js +5 -5
- package/components/Typography/Subtitle/index.js +4 -4
- package/components/Upload/Upload.component-test.js +4 -4
- package/components/Upload/Upload.js +4 -4
- package/components/Upload/UploadButton.js +10 -11
- package/components/Upload/UploadMessage.js +2 -2
- package/components/Upload/UploadProgress.js +3 -3
- package/components/Upload/UploadRoot.js +2 -2
- package/components/UploadAudio/UploadAudio.component-test.js +2 -2
- package/components/UploadAudio/UploadAudio.js +5 -5
- package/components/UploadVisual/UploadVisual.component-test.js +2 -2
- package/components/UploadVisual/UploadVisual.js +7 -8
- package/es/components/AudioPlayer/AudioPlayer.component-test.js +3 -3
- package/es/components/AudioPlayer/AudioPlayer.js +6 -6
- package/es/components/AudioPlayer/utils.js +4 -4
- package/es/components/Button/Button.js +1 -1
- package/es/components/Button/views/b2c/ButtonB2C.js +2 -2
- package/es/components/Button/views/web/ButtonWeb.js +5 -5
- package/es/components/Cell/Cell.js +2 -2
- package/es/components/Dropdown/Dropdown.component-test.js +9 -9
- package/es/components/Dropdown/Dropdown.js +7 -7
- package/es/components/Dropdown/DropdownItem.js +3 -3
- package/es/components/Dropdown/DropdownMenu.js +3 -3
- package/es/components/Dropdown/DropdownPopup.js +6 -6
- package/es/components/Dropdown/DropdownUncontrolled.js +3 -3
- package/es/components/Dropdown/keyboardNavigation/useSearchString.js +4 -4
- package/es/components/Dropdown/keyboardNavigation/utils.js +5 -5
- package/es/components/Dropdown/withAssistiveDropdown.js +7 -7
- package/es/components/Editable/Editable.js +6 -6
- package/es/components/ElasticGrid/ElasticGrid.component-test.js +1 -1
- package/es/components/ElasticGrid/ElasticGrid.js +7 -7
- package/es/components/Modal/Modal.js +8 -8
- package/es/components/Modal/ModalView.js +3 -3
- package/es/components/Modal/ModalsContext.js +4 -4
- package/es/components/PaginationDots/SmartPaginationDots.js +2 -2
- package/es/components/PreviewGallery/PreviewGallery.component-test.js +11 -11
- package/es/components/PreviewGallery/PreviewGallery.js +7 -7
- package/es/components/PreviewGallery/PreviewGalleryItemWithTooltip.js +5 -5
- package/es/components/PreviewGallery/PreviewGalleryItems.js +4 -4
- package/es/components/PreviewGallery/utils.js +6 -6
- package/es/components/Select/Select.js +1 -1
- package/es/components/Select/Select.utils.js +8 -8
- package/es/components/Select/SelectButton.js +3 -3
- package/es/components/Select/SelectView.js +1 -1
- package/es/components/Select/views/b2c/SelectView.js +3 -3
- package/es/components/Select/views/web/SelectView.js +3 -3
- package/es/components/Select/withMultiSelect.js +3 -3
- package/es/components/Select/withSingleSelect.js +3 -3
- package/es/components/TextField/TextField.js +3 -3
- package/es/components/TextField/views/b2c/TextFieldB2C.js +3 -3
- package/es/components/TextField/views/web/Field.js +3 -3
- package/es/components/TextField/views/web/Input.js +3 -3
- package/es/components/TextField/views/web/TextFieldWeb.js +3 -3
- package/es/components/Tooltip/Tooltip.js +7 -7
- package/es/components/Typography/Headline/index.js +3 -3
- package/es/components/Typography/Subtitle/index.js +2 -2
- package/es/components/Upload/Upload.component-test.js +2 -2
- package/es/components/Upload/Upload.js +2 -2
- package/es/components/Upload/UploadButton.js +7 -7
- package/es/components/UploadAudio/UploadAudio.js +2 -2
- package/es/components/UploadVisual/UploadVisual.js +3 -3
- package/package.json +29 -32
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var _excluded = ["textComponent", "value", "icon", "maxLength", "spellCheck", "onChange", "onBlur", "onPaste", "placeholder"];
|
|
2
|
-
function _slicedToArray(
|
|
2
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
4
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
+
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; }
|
|
6
6
|
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; } }
|
|
7
|
-
function _arrayWithHoles(
|
|
8
|
-
function _objectWithoutProperties(
|
|
9
|
-
function _objectWithoutPropertiesLoose(
|
|
7
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
10
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
11
|
import styled from 'styled-components';
|
|
12
12
|
import { tertiary, text, background } from '@salutejs/plasma-core';
|
|
@@ -31,7 +31,7 @@ describe('ElasticGrid', function () {
|
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
it('_view', function () {
|
|
34
|
-
mount(
|
|
34
|
+
mount(/*#__PURE__*/React.createElement(CypressTestDecorator, null, /*#__PURE__*/React.createElement(ElasticGrid, {
|
|
35
35
|
minColWidth: 125,
|
|
36
36
|
gapX: 8,
|
|
37
37
|
gapY: 8
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _excluded = ["children", "minColWidth", "gapX", "gapY"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _slicedToArray(
|
|
2
|
+
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); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
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; }
|
|
7
7
|
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; } }
|
|
8
|
-
function _arrayWithHoles(
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
11
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
12
12
|
import styled from 'styled-components';
|
|
13
13
|
import { collectPackageInfo } from '../../collectPackageInfo';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var _NoScroll;
|
|
2
2
|
var _excluded = ["id", "isOpen", "opened", "onClose", "onOverlayClick", "onEscKeyDown", "closeOnEsc", "closeOnOverlayClick", "withBlur", "initialFocusRef", "focusAfterRef"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _slicedToArray(
|
|
3
|
+
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); }
|
|
4
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
function _unsupportedIterableToArray(
|
|
7
|
-
function _arrayLikeToArray(
|
|
6
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
|
+
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; }
|
|
8
8
|
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; } }
|
|
9
|
-
function _arrayWithHoles(
|
|
10
|
-
function _objectWithoutProperties(
|
|
11
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
10
|
+
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; }
|
|
11
|
+
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; }
|
|
12
12
|
import React, { useEffect, useCallback, useRef, useState, useContext } from 'react';
|
|
13
13
|
import ReactDOM from 'react-dom';
|
|
14
14
|
import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
|
|
@@ -131,7 +131,7 @@ export var Modal = function Modal(_ref6) {
|
|
|
131
131
|
} else {
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _NoScroll || (_NoScroll = /*#__PURE__*/React.createElement(NoScroll, null)), portalRef.current && /*#__PURE__*/ReactDOM.createPortal(
|
|
134
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _NoScroll || (_NoScroll = /*#__PURE__*/React.createElement(NoScroll, null)), portalRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React.createElement(StyledWrapper, {
|
|
135
135
|
ref: wrapperRef
|
|
136
136
|
}, /*#__PURE__*/React.createElement(StyledOverlay, {
|
|
137
137
|
transparent: controller.items.indexOf(innerId) !== 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _IconClose;
|
|
2
2
|
var _excluded = ["role", "closeButtonAriaLabel", "children", "onClose", "showCloseButton"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { IconClose } from '@salutejs/plasma-icons';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _defineProperty(
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
import React, { useEffect } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["items", "index", "visibleItems", "onIndexChange"];
|
|
2
|
-
function _objectWithoutProperties(
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { usePaginationDots } from '@salutejs/plasma-core';
|
|
6
6
|
import { PaginationDots } from './PaginationDots';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var _IconTrashFilled, _IconTrashFilled2, _IconTrashFilled3, _IconTrashFilled4, _PadMe, _IconTrashFilled5, _IconTrashFilled6, _PadMe2, _IconTrashFilled7, _IconTrashFilled8, _PadMe3, _IconTrashFilled9,
|
|
2
|
-
function _slicedToArray(
|
|
1
|
+
var _IconTrashFilled, _IconTrashFilled2, _IconTrashFilled3, _IconTrashFilled4, _PadMe, _IconTrashFilled5, _IconTrashFilled6, _PadMe2, _IconTrashFilled7, _IconTrashFilled8, _PadMe3, _IconTrashFilled9, _IconTrashFilled0;
|
|
2
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
4
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
+
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; }
|
|
6
6
|
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; } }
|
|
7
|
-
function _arrayWithHoles(
|
|
7
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { CypressTestDecorator, getComponent, mount, PadMe } from '@salutejs/plasma-cy-utils';
|
|
10
10
|
import { IconTrashFilled } from '@salutejs/plasma-icons';
|
|
@@ -87,7 +87,7 @@ describe('plasma-hope: PreviewGallery', function () {
|
|
|
87
87
|
cy.matchImageSnapshot();
|
|
88
88
|
});
|
|
89
89
|
it('custom item', function () {
|
|
90
|
-
mount(
|
|
90
|
+
mount(/*#__PURE__*/React.createElement(CypressTestDecorator, null, /*#__PURE__*/React.createElement(PreviewGallery, {
|
|
91
91
|
items: [itemCustom],
|
|
92
92
|
actionIcon: _IconTrashFilled3 || (_IconTrashFilled3 = /*#__PURE__*/React.createElement(IconTrashFilled, {
|
|
93
93
|
size: "xs",
|
|
@@ -103,7 +103,7 @@ describe('plasma-hope: PreviewGallery', function () {
|
|
|
103
103
|
image: "".concat(base64, "+N/Q8B8AB4AC/xY2aM8AAAAASUVORK5CYII="),
|
|
104
104
|
isSelected: true
|
|
105
105
|
};
|
|
106
|
-
mount(
|
|
106
|
+
mount(/*#__PURE__*/React.createElement(CypressTestDecorator, null, /*#__PURE__*/React.createElement(PreviewGallery, {
|
|
107
107
|
items: [itemSelected],
|
|
108
108
|
actionIcon: _IconTrashFilled4 || (_IconTrashFilled4 = /*#__PURE__*/React.createElement(IconTrashFilled, {
|
|
109
109
|
size: "xs",
|
|
@@ -124,7 +124,7 @@ describe('plasma-hope: PreviewGallery', function () {
|
|
|
124
124
|
image: "".concat(base64, "+N/Q8B8AB4AC/xY2aM8AAAAASUVORK5CYII="),
|
|
125
125
|
caption: '42:42'
|
|
126
126
|
};
|
|
127
|
-
mount(
|
|
127
|
+
mount(/*#__PURE__*/React.createElement(CypressTestDecorator, null, /*#__PURE__*/React.createElement(PreviewGallery, {
|
|
128
128
|
items: [itemCaption],
|
|
129
129
|
actionIcon: _IconTrashFilled6 || (_IconTrashFilled6 = /*#__PURE__*/React.createElement(IconTrashFilled, {
|
|
130
130
|
size: "xs",
|
|
@@ -145,7 +145,7 @@ describe('plasma-hope: PreviewGallery', function () {
|
|
|
145
145
|
status: 'error',
|
|
146
146
|
image: "".concat(base64, "+N/Q8B8AB4AC/xY2aM8AAAAASUVORK5CYII=")
|
|
147
147
|
};
|
|
148
|
-
mount(
|
|
148
|
+
mount(/*#__PURE__*/React.createElement(CypressTestDecorator, null, /*#__PURE__*/React.createElement(PreviewGallery, {
|
|
149
149
|
items: [itemError],
|
|
150
150
|
actionIcon: _IconTrashFilled8 || (_IconTrashFilled8 = /*#__PURE__*/React.createElement(IconTrashFilled, {
|
|
151
151
|
size: "xs",
|
|
@@ -198,7 +198,7 @@ describe('plasma-hope: PreviewGallery utils', function () {
|
|
|
198
198
|
onItemAction: onItemRemove,
|
|
199
199
|
onItemsSortEnd: onItemsSortEnd,
|
|
200
200
|
onItemClick: onItemSelect,
|
|
201
|
-
actionIcon:
|
|
201
|
+
actionIcon: _IconTrashFilled0 || (_IconTrashFilled0 = /*#__PURE__*/React.createElement(IconTrashFilled, {
|
|
202
202
|
size: "xs",
|
|
203
203
|
color: "inherit"
|
|
204
204
|
}))
|
|
@@ -210,7 +210,7 @@ describe('plasma-hope: PreviewGallery utils', function () {
|
|
|
210
210
|
}, "helper"));
|
|
211
211
|
}
|
|
212
212
|
it('empty items list and incorrect id', function () {
|
|
213
|
-
mount(
|
|
213
|
+
mount(/*#__PURE__*/React.createElement(CypressTestDecorator, null, /*#__PURE__*/React.createElement(React.Fragment, null, _Demo || (_Demo = /*#__PURE__*/React.createElement(Demo, {
|
|
214
214
|
interactionType: "selectable"
|
|
215
215
|
})), /*#__PURE__*/React.createElement(Demo, {
|
|
216
216
|
itemsExternal: [],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _excluded = ["interactionType", "items", "maxHeight", "onItemClick", "onItemAction", "onItemsSortEnd"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _slicedToArray(
|
|
2
|
+
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); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
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; }
|
|
7
7
|
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; } }
|
|
8
|
-
function _arrayWithHoles(
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
11
|
import React, { useCallback, useState } from 'react';
|
|
12
12
|
import { noop } from './utils';
|
|
13
13
|
import { PreviewGalleryListItems } from './PreviewGalleryItems';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
2
|
-
function _slicedToArray(
|
|
1
|
+
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); }
|
|
2
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
4
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
+
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; }
|
|
6
6
|
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; } }
|
|
7
|
-
function _arrayWithHoles(
|
|
7
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
8
|
import React, { useCallback, useState } from 'react';
|
|
9
9
|
import styled from 'styled-components';
|
|
10
10
|
import { Tooltip } from '../Tooltip';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["status"],
|
|
2
2
|
_excluded2 = ["items", "interactionType", "actionIcon", "itemSize", "isGrabbing", "maxHeight", "onItemAction", "onItemClick"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
6
|
import React, { memo, useMemo } from 'react';
|
|
7
7
|
import { SortableContainer, SortableElement } from 'react-sortable-hoc';
|
|
8
8
|
import styled, { css } from 'styled-components';
|
|
@@ -20,7 +20,7 @@ export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
|
|
|
20
20
|
var maxHeight = _ref2.maxHeight;
|
|
21
21
|
return maxHeight && css(["max-height:", "px;overflow:auto;"], maxHeight);
|
|
22
22
|
});
|
|
23
|
-
var PreviewGalleryItem = /*#__PURE__*/memo(
|
|
23
|
+
var PreviewGalleryItem = /*#__PURE__*/memo(/*#__PURE__*/SortableElement(function (_ref3) {
|
|
24
24
|
var status = _ref3.status,
|
|
25
25
|
itemRest = _objectWithoutProperties(_ref3, _excluded);
|
|
26
26
|
return status === 'error' ? /*#__PURE__*/React.createElement(PreviewGalleryItemError, itemRest) : /*#__PURE__*/React.createElement(PreviewGalleryItemBase, itemRest);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _toConsumableArray(
|
|
7
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
8
8
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _iterableToArray(
|
|
11
|
-
function _arrayWithoutHoles(
|
|
12
|
-
function _arrayLikeToArray(
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
11
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
12
|
+
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; }
|
|
13
13
|
/**
|
|
14
14
|
* Метод-заглушка
|
|
15
15
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
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); }
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { applyDropdownListCssProperties } from '../Dropdown';
|
|
@@ -2,17 +2,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
var _excluded = ["items"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
function _defineProperty(
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
function _toConsumableArray(
|
|
8
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
9
9
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
-
function _unsupportedIterableToArray(
|
|
11
|
-
function _iterableToArray(
|
|
12
|
-
function _arrayWithoutHoles(
|
|
13
|
-
function _arrayLikeToArray(
|
|
14
|
-
function _objectWithoutProperties(
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
10
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
12
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
16
|
/**
|
|
17
17
|
* Пройдется по списку рекурсивно, вернув новый список с подсписками, поднятыми на верхний уровень.
|
|
18
18
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _StyledArrow;
|
|
2
2
|
var _excluded = ["design"],
|
|
3
3
|
_excluded2 = ["value", "placeholder", "hasItems"];
|
|
4
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
5
|
-
function _objectWithoutProperties(
|
|
6
|
-
function _objectWithoutPropertiesLoose(
|
|
4
|
+
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); }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
7
|
import React, { forwardRef } from 'react';
|
|
8
8
|
import styled, { css } from 'styled-components';
|
|
9
9
|
import { body1, accent, primary, secondary, tertiary, success, warning, critical, applyEllipsis } from '@salutejs/plasma-core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
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); }
|
|
2
2
|
import React, { useMemo, forwardRef } from 'react';
|
|
3
3
|
import { SelectView as SelectViewWeb } from './views/web/SelectView';
|
|
4
4
|
import { SelectView as SelectViewB2C } from './views/b2c/SelectView';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["id", "placeholder", "value", "helperText", "disabled", "status", "className", "style", "items", "multiselect", "onItemSelect"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { TextFieldRoot, TextFieldHelper } from '@salutejs/plasma-core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["id", "placeholder", "value", "helperText", "disabled", "status", "className", "style", "items", "multiselect", "onItemSelect"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import { TextFieldRoot, TextFieldHelper } from '@salutejs/plasma-core';
|
|
7
7
|
import styled from 'styled-components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["value", "items", "separator", "onChange"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
6
6
|
import { flattenItemsRecursive, setActiveRecursive } from './Select.utils';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["value", "items", "onChange", "design"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
6
6
|
import { flattenItemsRecursive, setActiveRecursive } from './Select.utils';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["onSearch", "onChange"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef, useCallback } from 'react';
|
|
6
6
|
import { TextFieldWeb } from './views/web/TextFieldWeb';
|
|
7
7
|
import { TextFieldB2C } from './views/b2c/TextFieldB2C';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["id", "disabled", "status", "label", "placeholder", "contentLeft", "contentRight", "caption", "helperText", "style", "className", "size", "view", "onChange", "onKeyUp"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import { FieldHelper } from '@salutejs/plasma-core';
|
|
7
7
|
import { TextFieldView } from '../../types';
|