@salutejs/plasma-core 1.214.0-canary.2452.21584026956.0 → 1.214.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.
Files changed (151) hide show
  1. package/.swc/plugins/{v7_linux_x86_64_14.0.0/cce279a62b5dde357ee7b421711ef357c3f0a29cd3cb6e86336f7345fd604d8e → linux_x86_64_24.0.0/202f6e4cef5244f7c5860be71bf49ba7448c1085420582e8bfccb5598d99b9c4.wasmer-v7} +0 -0
  2. package/.swc/plugins/{v7_linux_x86_64_14.0.0/358fecaab1701de64a7bceee21e5f3a204d1107aa33eb372d1dab77a43118622 → linux_x86_64_24.0.0/671036687e3bc3a68b2957b14f0890c0b5825f19e8049d9af5daf3537b9160fd.wasmer-v7} +0 -0
  3. package/collectPackageInfo.js +1 -1
  4. package/components/Badge/Badge.js +19 -10
  5. package/components/Button/Button.mixins.js +1 -1
  6. package/components/Button/createButton.js +76 -12
  7. package/components/Card/Card.js +75 -11
  8. package/components/Card/CardMedia.js +19 -10
  9. package/components/Card/CardPrice.js +19 -10
  10. package/components/Card/CardTypography.js +2 -2
  11. package/components/Carousel/CarouselItem.js +21 -12
  12. package/components/Carousel/hooks.js +2 -2
  13. package/components/Carousel/utils.js +14 -14
  14. package/components/Image/Image.js +19 -10
  15. package/components/Input/Input.mixins.js +1 -1
  16. package/components/ModalBase/ModalBase.js +19 -10
  17. package/components/ModalBase/ModalBaseContext.js +3 -3
  18. package/components/ModalBase/ModalOverlay.js +19 -10
  19. package/components/ModalBase/hooks.js +1 -1
  20. package/components/PaginationDots/usePaginationDots.js +1 -1
  21. package/components/Popup/Popup.js +77 -13
  22. package/components/PopupBase/PopupBase.js +31 -13
  23. package/components/PopupBase/PopupBaseContext.js +4 -4
  24. package/components/PopupBase/PopupBaseRoot.js +75 -11
  25. package/components/PopupBase/hooks.js +2 -2
  26. package/components/PopupBase/utils.js +1 -1
  27. package/components/Price/Price.js +19 -10
  28. package/components/RadioGroup/RadioGroup.js +75 -11
  29. package/components/SSRProvider/SSRProvider.js +1 -1
  30. package/components/Skeleton/LineSkeleton.js +19 -10
  31. package/components/Skeleton/RectSkeleton.js +19 -10
  32. package/components/Skeleton/TextSkeleton.js +19 -10
  33. package/components/Slider/Double.js +19 -10
  34. package/components/Slider/Handle.js +29 -11
  35. package/components/Slider/Single.js +19 -10
  36. package/components/Slider/Slider.js +2 -2
  37. package/components/Slider/SliderBase.js +2 -2
  38. package/components/Slider/ThumbBase.js +19 -10
  39. package/components/Spinner/Spinner.js +19 -10
  40. package/components/Spinner/SpinnerSvg.js +19 -10
  41. package/components/Switch/Switch.js +76 -12
  42. package/components/Tabs/TabItem.js +75 -11
  43. package/components/Tabs/Tabs.js +75 -11
  44. package/components/Tabs/createTabsController.js +75 -11
  45. package/components/TextArea/TextArea.js +1 -1
  46. package/components/Toast/Toast.js +1 -1
  47. package/components/Toast/ToastContext.js +2 -2
  48. package/components/Toast/ToastController.js +3 -3
  49. package/components/Toast/ToastProvider.js +3 -3
  50. package/components/Toast/useToast.js +1 -1
  51. package/es/collectPackageInfo.js +1 -1
  52. package/es/components/Badge/Badge.js +19 -10
  53. package/es/components/Button/Button.mixins.js +1 -1
  54. package/es/components/Button/createButton.js +76 -12
  55. package/es/components/Card/Card.js +75 -11
  56. package/es/components/Card/CardMedia.js +19 -10
  57. package/es/components/Card/CardPrice.js +19 -10
  58. package/es/components/Card/CardTypography.js +2 -2
  59. package/es/components/Carousel/CarouselItem.js +21 -12
  60. package/es/components/Carousel/hooks.js +4 -4
  61. package/es/components/Carousel/utils.js +14 -14
  62. package/es/components/Image/Image.js +19 -10
  63. package/es/components/Input/Input.mixins.js +1 -1
  64. package/es/components/ModalBase/ModalBase.js +19 -10
  65. package/es/components/ModalBase/ModalBaseContext.js +3 -3
  66. package/es/components/ModalBase/ModalOverlay.js +19 -10
  67. package/es/components/ModalBase/hooks.js +1 -1
  68. package/es/components/PaginationDots/usePaginationDots.js +1 -1
  69. package/es/components/Popup/Popup.js +77 -13
  70. package/es/components/PopupBase/PopupBase.js +31 -13
  71. package/es/components/PopupBase/PopupBaseContext.js +4 -4
  72. package/es/components/PopupBase/PopupBaseRoot.js +75 -11
  73. package/es/components/PopupBase/hooks.js +2 -2
  74. package/es/components/PopupBase/utils.js +1 -1
  75. package/es/components/Price/Price.js +19 -10
  76. package/es/components/RadioGroup/RadioGroup.js +75 -11
  77. package/es/components/SSRProvider/SSRProvider.js +1 -1
  78. package/es/components/Skeleton/LineSkeleton.js +19 -10
  79. package/es/components/Skeleton/RectSkeleton.js +19 -10
  80. package/es/components/Skeleton/TextSkeleton.js +19 -10
  81. package/es/components/Slider/Double.js +19 -10
  82. package/es/components/Slider/Handle.js +29 -11
  83. package/es/components/Slider/Single.js +19 -10
  84. package/es/components/Slider/Slider.js +2 -2
  85. package/es/components/Slider/SliderBase.js +2 -2
  86. package/es/components/Slider/ThumbBase.js +19 -10
  87. package/es/components/Spinner/Spinner.js +19 -10
  88. package/es/components/Spinner/SpinnerSvg.js +19 -10
  89. package/es/components/Switch/Switch.js +76 -12
  90. package/es/components/Tabs/TabItem.js +75 -11
  91. package/es/components/Tabs/Tabs.js +75 -11
  92. package/es/components/Tabs/createTabsController.js +75 -11
  93. package/es/components/TextArea/TextArea.js +1 -1
  94. package/es/components/Toast/Toast.js +1 -1
  95. package/es/components/Toast/ToastContext.js +2 -2
  96. package/es/components/Toast/ToastController.js +3 -3
  97. package/es/components/Toast/ToastProvider.js +3 -3
  98. package/es/components/Toast/useToast.js +1 -1
  99. package/es/hocs/withAutoFocus.js +20 -11
  100. package/es/hocs/withSkeleton.js +1 -1
  101. package/es/hooks/useFocusTrap.js +4 -4
  102. package/es/hooks/useForkRef.js +1 -1
  103. package/es/hooks/useResizeObserver.js +1 -1
  104. package/es/mixins/addFocus.js +2 -2
  105. package/es/mixins/applyDisabled.js +1 -1
  106. package/es/mixins/applyEllipsis.js +1 -1
  107. package/es/mixins/applyMaxLines.js +1 -1
  108. package/es/mixins/applyNoSelect.js +1 -1
  109. package/es/mixins/applyOutline.js +1 -1
  110. package/es/mixins/applyRoundness.js +1 -1
  111. package/es/mixins/applyScrollSnap.js +1 -1
  112. package/es/mixins/applySkeletonGradient.js +1 -1
  113. package/es/mixins/applyView.js +1 -1
  114. package/es/mixins/blur.js +1 -1
  115. package/es/utils/animatedScrollTo.js +8 -8
  116. package/es/utils/extractTextFrom.js +1 -1
  117. package/es/utils/formatCurrency.js +1 -1
  118. package/es/utils/formatters.js +5 -5
  119. package/es/utils/roundness.js +1 -1
  120. package/es/utils/scopeTab.js +1 -1
  121. package/es/utils/setRef.js +1 -1
  122. package/es/utils/tabbable.js +6 -6
  123. package/es/utils/toCssSize.js +1 -1
  124. package/es/utils/transformStyles.js +3 -3
  125. package/hocs/withAutoFocus.js +20 -11
  126. package/hocs/withSkeleton.js +1 -1
  127. package/hooks/useFocusTrap.js +4 -4
  128. package/hooks/useForkRef.js +1 -1
  129. package/hooks/useResizeObserver.js +1 -1
  130. package/mixins/addFocus.js +2 -2
  131. package/mixins/applyDisabled.js +1 -1
  132. package/mixins/applyEllipsis.js +1 -1
  133. package/mixins/applyMaxLines.js +1 -1
  134. package/mixins/applyNoSelect.js +1 -1
  135. package/mixins/applyOutline.js +1 -1
  136. package/mixins/applyRoundness.js +1 -1
  137. package/mixins/applyScrollSnap.js +1 -1
  138. package/mixins/applySkeletonGradient.js +1 -1
  139. package/mixins/applyView.js +1 -1
  140. package/mixins/blur.js +1 -1
  141. package/package.json +3 -3
  142. package/utils/animatedScrollTo.js +8 -8
  143. package/utils/extractTextFrom.js +1 -1
  144. package/utils/formatCurrency.js +1 -1
  145. package/utils/formatters.js +5 -5
  146. package/utils/roundness.js +1 -1
  147. package/utils/scopeTab.js +1 -1
  148. package/utils/setRef.js +1 -1
  149. package/utils/tabbable.js +6 -6
  150. package/utils/toCssSize.js +1 -1
  151. package/utils/transformStyles.js +3 -3
@@ -87,12 +87,22 @@ function _object_spread_props(target, source) {
87
87
  }
88
88
  function _object_without_properties(source, excluded) {
89
89
  if (source == null) return {};
90
- var target = _object_without_properties_loose(source, excluded);
91
- var key, i;
90
+ var target = {}, sourceKeys, key, i;
91
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
92
+ sourceKeys = Reflect.ownKeys(source);
93
+ for(i = 0; i < sourceKeys.length; i++){
94
+ key = sourceKeys[i];
95
+ if (excluded.indexOf(key) >= 0) continue;
96
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
97
+ target[key] = source[key];
98
+ }
99
+ return target;
100
+ }
101
+ target = _object_without_properties_loose(source, excluded);
92
102
  if (Object.getOwnPropertySymbols) {
93
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
94
- for(i = 0; i < sourceSymbolKeys.length; i++){
95
- key = sourceSymbolKeys[i];
103
+ sourceKeys = Object.getOwnPropertySymbols(source);
104
+ for(i = 0; i < sourceKeys.length; i++){
105
+ key = sourceKeys[i];
96
106
  if (excluded.indexOf(key) >= 0) continue;
97
107
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
98
108
  target[key] = source[key];
@@ -102,12 +112,11 @@ function _object_without_properties(source, excluded) {
102
112
  }
103
113
  function _object_without_properties_loose(source, excluded) {
104
114
  if (source == null) return {};
105
- var target = {};
106
- var sourceKeys = Object.keys(source);
107
- var key, i;
115
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
108
116
  for(i = 0; i < sourceKeys.length; i++){
109
117
  key = sourceKeys[i];
110
118
  if (excluded.indexOf(key) >= 0) continue;
119
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
111
120
  target[key] = source[key];
112
121
  }
113
122
  return target;
@@ -126,8 +135,8 @@ function _unsupported_iterable_to_array(o, minLen) {
126
135
  import React from 'react';
127
136
  import { SliderBase } from './SliderBase';
128
137
  import { Handle } from './Handle';
129
- export var Slider = function(_param) {
130
- var min = _param.min, max = _param.max, value = _param.value, disabled = _param.disabled, onChangeCommitted = _param.onChangeCommitted, onChange = _param.onChange, ariaLabel = _param.ariaLabel, _param_multipleStepSize = _param.multipleStepSize, multipleStepSize = _param_multipleStepSize === void 0 ? 10 : _param_multipleStepSize, thumb = _param.thumb, rest = _object_without_properties(_param, [
138
+ export var Slider = function Slider(_0) {
139
+ var min = _0.min, max = _0.max, value = _0.value, disabled = _0.disabled, onChangeCommitted = _0.onChangeCommitted, onChange = _0.onChange, ariaLabel = _0.ariaLabel, _0_multipleStepSize = _0.multipleStepSize, multipleStepSize = _0_multipleStepSize === void 0 ? 10 : _0_multipleStepSize, thumb = _0.thumb, rest = _object_without_properties(_0, [
131
140
  "min",
132
141
  "max",
133
142
  "value",
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
2
  import { Slider as SliderSingleValue } from './Single';
3
3
  import { Slider as SliderDoubleValues } from './Double';
4
- var isSingleValueProps = function(props) {
4
+ var isSingleValueProps = function isSingleValueProps(props) {
5
5
  return typeof props.value === 'number';
6
6
  };
7
7
  /**
8
8
  * Слайдер позволяет определить числовое значение в пределах указанного промежутка.
9
9
  * Можно указать два значения.
10
10
  * Только для приложения Салют.
11
- */ export var SliderCore = function(props) {
11
+ */ export var SliderCore = function SliderCore(props) {
12
12
  if (isSingleValueProps(props)) {
13
13
  return /*#__PURE__*/ React.createElement(SliderSingleValue, props);
14
14
  }
@@ -40,7 +40,7 @@ var Fill = styled.div.withConfig({
40
40
  })([
41
41
  "position:absolute;height:100%;top:0;left:0;background-color:var(--fill-color);width:0;"
42
42
  ]);
43
- export var SliderBase = function(param) {
43
+ export var SliderBase = function SliderBase(param) {
44
44
  var max = param.max, min = param.min, setStepSize = param.setStepSize, railFillWidth = param.railFillWidth, children = param.children, _param_railFillXPosition = param.railFillXPosition, railFillXPosition = _param_railFillXPosition === void 0 ? 0 : _param_railFillXPosition, disabled = param.disabled, onChange = param.onChange, _param_settings = param.settings, settings = _param_settings === void 0 ? {} : _param_settings;
45
45
  var _settings_indent = settings.indent, indent = _settings_indent === void 0 ? 0.75 : _settings_indent, _settings_fontSizeMultiplier = settings.fontSizeMultiplier, fontSizeMultiplier = _settings_fontSizeMultiplier === void 0 ? 16 : _settings_fontSizeMultiplier;
46
46
  var ref = useRef(null);
@@ -64,7 +64,7 @@ export var SliderBase = function(param) {
64
64
  max
65
65
  ]);
66
66
  useIsomorphicLayoutEffect(function() {
67
- var resizeHandler = function() {
67
+ var resizeHandler = function resizeHandler() {
68
68
  if (ref.current) {
69
69
  var railSize = ref.current.offsetWidth - gap;
70
70
  var totalSteps = max - min;
@@ -28,12 +28,22 @@ function _object_spread(target) {
28
28
  }
29
29
  function _object_without_properties(source, excluded) {
30
30
  if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
31
+ var target = {}, sourceKeys, key, i;
32
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
33
+ sourceKeys = Reflect.ownKeys(source);
34
+ for(i = 0; i < sourceKeys.length; i++){
35
+ key = sourceKeys[i];
36
+ if (excluded.indexOf(key) >= 0) continue;
37
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
38
+ target[key] = source[key];
39
+ }
40
+ return target;
41
+ }
42
+ target = _object_without_properties_loose(source, excluded);
33
43
  if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
44
+ sourceKeys = Object.getOwnPropertySymbols(source);
45
+ for(i = 0; i < sourceKeys.length; i++){
46
+ key = sourceKeys[i];
37
47
  if (excluded.indexOf(key) >= 0) continue;
38
48
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
49
  target[key] = source[key];
@@ -43,12 +53,11 @@ function _object_without_properties(source, excluded) {
43
53
  }
44
54
  function _object_without_properties_loose(source, excluded) {
45
55
  if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
56
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
49
57
  for(i = 0; i < sourceKeys.length; i++){
50
58
  key = sourceKeys[i];
51
59
  if (excluded.indexOf(key) >= 0) continue;
60
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
52
61
  target[key] = source[key];
53
62
  }
54
63
  return target;
@@ -72,8 +81,8 @@ export var ThumbBase = styled.div.withConfig({
72
81
  })([
73
82
  "border-radius:50%;background-clip:content-box;box-sizing:content-box;transition:transform 0.1s ease-in-out;&:focus{outline:none;}&:not([disabled]){&.focus-visible,&[data-focus-visible-added]{border-color:currentColor;}}"
74
83
  ]);
75
- export var Thumb = function(_param) {
76
- var onChangeCommitted = _param.onChangeCommitted, stepSize = _param.stepSize, _param_xPosition = _param.xPosition, xPosition = _param_xPosition === void 0 ? 0 : _param_xPosition, min = _param.min, max = _param.max, value = _param.value, bounds = _param.bounds, _param_ariaValueMin = _param.ariaValueMin, ariaValueMin = _param_ariaValueMin === void 0 ? min : _param_ariaValueMin, ariaLabel = _param.ariaLabel, multipleStepSize = _param.multipleStepSize, ThumbAbstract = _param.thumb, rest = _object_without_properties(_param, [
84
+ export var Thumb = function Thumb(_0) {
85
+ var onChangeCommitted = _0.onChangeCommitted, stepSize = _0.stepSize, _0_xPosition = _0.xPosition, xPosition = _0_xPosition === void 0 ? 0 : _0_xPosition, min = _0.min, max = _0.max, value = _0.value, bounds = _0.bounds, _0_ariaValueMin = _0.ariaValueMin, ariaValueMin = _0_ariaValueMin === void 0 ? min : _0_ariaValueMin, ariaLabel = _0.ariaLabel, multipleStepSize = _0.multipleStepSize, ThumbAbstract = _0.thumb, rest = _object_without_properties(_0, [
77
86
  "onChangeCommitted",
78
87
  "stepSize",
79
88
  "xPosition",
@@ -28,12 +28,22 @@ function _object_spread(target) {
28
28
  }
29
29
  function _object_without_properties(source, excluded) {
30
30
  if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
31
+ var target = {}, sourceKeys, key, i;
32
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
33
+ sourceKeys = Reflect.ownKeys(source);
34
+ for(i = 0; i < sourceKeys.length; i++){
35
+ key = sourceKeys[i];
36
+ if (excluded.indexOf(key) >= 0) continue;
37
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
38
+ target[key] = source[key];
39
+ }
40
+ return target;
41
+ }
42
+ target = _object_without_properties_loose(source, excluded);
33
43
  if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
44
+ sourceKeys = Object.getOwnPropertySymbols(source);
45
+ for(i = 0; i < sourceKeys.length; i++){
46
+ key = sourceKeys[i];
37
47
  if (excluded.indexOf(key) >= 0) continue;
38
48
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
49
  target[key] = source[key];
@@ -43,12 +53,11 @@ function _object_without_properties(source, excluded) {
43
53
  }
44
54
  function _object_without_properties_loose(source, excluded) {
45
55
  if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
56
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
49
57
  for(i = 0; i < sourceKeys.length; i++){
50
58
  key = sourceKeys[i];
51
59
  if (excluded.indexOf(key) >= 0) continue;
60
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
52
61
  target[key] = source[key];
53
62
  }
54
63
  return target;
@@ -77,7 +86,7 @@ var StyledRoot = styled.div.withConfig({
77
86
  ], $size, $size);
78
87
  }, rotateAnimation);
79
88
  var scalingPixelBasis = 16;
80
- var sizeFormatting = function(size) {
89
+ var sizeFormatting = function sizeFormatting(size) {
81
90
  var deviceScale = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
82
91
  if (typeof size === 'number' || !size.endsWith('rem') && !size.endsWith('px')) {
83
92
  return "".concat(Number(size) / (scalingPixelBasis * deviceScale), "rem");
@@ -86,7 +95,7 @@ var sizeFormatting = function(size) {
86
95
  };
87
96
  /**
88
97
  * Компонент для отображения индикатора загрузки.
89
- */ export var Spinner = function(props) {
98
+ */ export var Spinner = function Spinner(props) {
90
99
  var id = props.id, _props_size = props.size, size = _props_size === void 0 ? 56 : _props_size, _props_color = props.color, color = _props_color === void 0 ? accent : _props_color, deviceScale = props.deviceScale, rest = _object_without_properties(props, [
91
100
  "id",
92
101
  "size",
@@ -28,12 +28,22 @@ function _object_spread(target) {
28
28
  }
29
29
  function _object_without_properties(source, excluded) {
30
30
  if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
31
+ var target = {}, sourceKeys, key, i;
32
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
33
+ sourceKeys = Reflect.ownKeys(source);
34
+ for(i = 0; i < sourceKeys.length; i++){
35
+ key = sourceKeys[i];
36
+ if (excluded.indexOf(key) >= 0) continue;
37
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
38
+ target[key] = source[key];
39
+ }
40
+ return target;
41
+ }
42
+ target = _object_without_properties_loose(source, excluded);
33
43
  if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
44
+ sourceKeys = Object.getOwnPropertySymbols(source);
45
+ for(i = 0; i < sourceKeys.length; i++){
46
+ key = sourceKeys[i];
37
47
  if (excluded.indexOf(key) >= 0) continue;
38
48
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
49
  target[key] = source[key];
@@ -43,19 +53,18 @@ function _object_without_properties(source, excluded) {
43
53
  }
44
54
  function _object_without_properties_loose(source, excluded) {
45
55
  if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
56
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
49
57
  for(i = 0; i < sourceKeys.length; i++){
50
58
  key = sourceKeys[i];
51
59
  if (excluded.indexOf(key) >= 0) continue;
60
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
52
61
  target[key] = source[key];
53
62
  }
54
63
  return target;
55
64
  }
56
65
  import React from 'react';
57
- export var SpinnerSvg = function(_param) {
58
- var id = _param.id, color = _param.color, props = _object_without_properties(_param, [
66
+ export var SpinnerSvg = function SpinnerSvg(_0) {
67
+ var id = _0.id, color = _0.color, props = _object_without_properties(_0, [
59
68
  "id",
60
69
  "color"
61
70
  ]);
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
1
9
  function _define_property(obj, key, value) {
2
10
  if (key in obj) {
3
11
  Object.defineProperty(obj, key, {
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
11
19
  }
12
20
  return obj;
13
21
  }
22
+ function _iterable_to_array(iter) {
23
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
24
+ }
25
+ function _iterable_to_array_limit(arr, i) {
26
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (_i == null) return;
28
+ var _arr = [];
29
+ var _n = true;
30
+ var _d = false;
31
+ var _s, _e;
32
+ try {
33
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
34
+ _arr.push(_s.value);
35
+ if (i && _arr.length === i) break;
36
+ }
37
+ } catch (err) {
38
+ _d = true;
39
+ _e = err;
40
+ } finally{
41
+ try {
42
+ if (!_n && _i["return"] != null) _i["return"]();
43
+ } finally{
44
+ if (_d) throw _e;
45
+ }
46
+ }
47
+ return _arr;
48
+ }
49
+ function _non_iterable_rest() {
50
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51
+ }
14
52
  function _object_spread(target) {
15
53
  for(var i = 1; i < arguments.length; i++){
16
54
  var source = arguments[i] != null ? arguments[i] : {};
@@ -52,12 +90,22 @@ function _object_spread_props(target, source) {
52
90
  }
53
91
  function _object_without_properties(source, excluded) {
54
92
  if (source == null) return {};
55
- var target = _object_without_properties_loose(source, excluded);
56
- var key, i;
93
+ var target = {}, sourceKeys, key, i;
94
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
95
+ sourceKeys = Reflect.ownKeys(source);
96
+ for(i = 0; i < sourceKeys.length; i++){
97
+ key = sourceKeys[i];
98
+ if (excluded.indexOf(key) >= 0) continue;
99
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
100
+ target[key] = source[key];
101
+ }
102
+ return target;
103
+ }
104
+ target = _object_without_properties_loose(source, excluded);
57
105
  if (Object.getOwnPropertySymbols) {
58
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
- for(i = 0; i < sourceSymbolKeys.length; i++){
60
- key = sourceSymbolKeys[i];
106
+ sourceKeys = Object.getOwnPropertySymbols(source);
107
+ for(i = 0; i < sourceKeys.length; i++){
108
+ key = sourceKeys[i];
61
109
  if (excluded.indexOf(key) >= 0) continue;
62
110
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
111
  target[key] = source[key];
@@ -67,16 +115,29 @@ function _object_without_properties(source, excluded) {
67
115
  }
68
116
  function _object_without_properties_loose(source, excluded) {
69
117
  if (source == null) return {};
70
- var target = {};
71
- var sourceKeys = Object.keys(source);
72
- var key, i;
118
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
73
119
  for(i = 0; i < sourceKeys.length; i++){
74
120
  key = sourceKeys[i];
75
121
  if (excluded.indexOf(key) >= 0) continue;
122
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
76
123
  target[key] = source[key];
77
124
  }
78
125
  return target;
79
126
  }
127
+ function _sliced_to_array(arr, i) {
128
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
129
+ }
130
+ function _to_array(arr) {
131
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
132
+ }
133
+ function _unsupported_iterable_to_array(o, minLen) {
134
+ if (!o) return;
135
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
136
+ var n = Object.prototype.toString.call(o).slice(8, -1);
137
+ if (n === "Object" && o.constructor) n = o.constructor.name;
138
+ if (n === "Map" || n === "Set") return Array.from(n);
139
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
140
+ }
80
141
  import React from 'react';
81
142
  import styled, { css } from 'styled-components';
82
143
  import { body1 } from '../../tokens';
@@ -98,7 +159,7 @@ var StyledInput = styled.input.withConfig({
98
159
  ";height:",
99
160
  ";&:focus{outline:0 none;}"
100
161
  ], triggerWidth, triggerHeight);
101
- var synthesizeFocus = function(ruleset, focused) {
162
+ var synthesizeFocus = function synthesizeFocus(ruleset, focused) {
102
163
  return css([
103
164
  ".focus-visible:focus > &,",
104
165
  ".focus-visible:focus ~ &{",
@@ -155,8 +216,11 @@ var StyledLabel = styled.span.withConfig({
155
216
  /**
156
217
  * Визуальный переключатель между двумя взаимоисключающими состояниями — вкл. и выкл.
157
218
  */ // eslint-disable-next-line prefer-arrow-callback
158
- export var Switch = /*#__PURE__*/ React.forwardRef(function Switch(_param, ref) {
159
- var name = _param.name, value = _param.value, label = _param.label, checked = _param.checked, defaultChecked = _param.defaultChecked, disabled = _param.disabled, readOnly = _param.readOnly, pressed = _param.pressed, focused = _param.focused, outlined = _param.outlined, tabIndex = _param.tabIndex, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, rest = _object_without_properties(_param, [
219
+ export var Switch = /*#__PURE__*/ React.forwardRef(function Switch(_0, _1) {
220
+ var _ref = [
221
+ _0,
222
+ _1
223
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), name = _ref2.name, value = _ref2.value, label = _ref2.label, checked = _ref2.checked, defaultChecked = _ref2.defaultChecked, disabled = _ref2.disabled, readOnly = _ref2.readOnly, pressed = _ref2.pressed, focused = _ref2.focused, outlined = _ref2.outlined, tabIndex = _ref2.tabIndex, onChange = _ref2.onChange, onFocus = _ref2.onFocus, onBlur = _ref2.onBlur, rest = _object_without_properties(_ref2, [
160
224
  "name",
161
225
  "value",
162
226
  "label",
@@ -171,7 +235,7 @@ export var Switch = /*#__PURE__*/ React.forwardRef(function Switch(_param, ref)
171
235
  "onChange",
172
236
  "onFocus",
173
237
  "onBlur"
174
- ]);
238
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
175
239
  var exactChecked = Boolean(checked !== undefined ? checked : defaultChecked);
176
240
  return /*#__PURE__*/ React.createElement(StyledRoot, _object_spread({
177
241
  $disabled: disabled
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
1
9
  function _define_property(obj, key, value) {
2
10
  if (key in obj) {
3
11
  Object.defineProperty(obj, key, {
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
11
19
  }
12
20
  return obj;
13
21
  }
22
+ function _iterable_to_array(iter) {
23
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
24
+ }
25
+ function _iterable_to_array_limit(arr, i) {
26
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (_i == null) return;
28
+ var _arr = [];
29
+ var _n = true;
30
+ var _d = false;
31
+ var _s, _e;
32
+ try {
33
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
34
+ _arr.push(_s.value);
35
+ if (i && _arr.length === i) break;
36
+ }
37
+ } catch (err) {
38
+ _d = true;
39
+ _e = err;
40
+ } finally{
41
+ try {
42
+ if (!_n && _i["return"] != null) _i["return"]();
43
+ } finally{
44
+ if (_d) throw _e;
45
+ }
46
+ }
47
+ return _arr;
48
+ }
49
+ function _non_iterable_rest() {
50
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51
+ }
14
52
  function _object_spread(target) {
15
53
  for(var i = 1; i < arguments.length; i++){
16
54
  var source = arguments[i] != null ? arguments[i] : {};
@@ -28,12 +66,22 @@ function _object_spread(target) {
28
66
  }
29
67
  function _object_without_properties(source, excluded) {
30
68
  if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
69
+ var target = {}, sourceKeys, key, i;
70
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
71
+ sourceKeys = Reflect.ownKeys(source);
72
+ for(i = 0; i < sourceKeys.length; i++){
73
+ key = sourceKeys[i];
74
+ if (excluded.indexOf(key) >= 0) continue;
75
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
76
+ target[key] = source[key];
77
+ }
78
+ return target;
79
+ }
80
+ target = _object_without_properties_loose(source, excluded);
33
81
  if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
82
+ sourceKeys = Object.getOwnPropertySymbols(source);
83
+ for(i = 0; i < sourceKeys.length; i++){
84
+ key = sourceKeys[i];
37
85
  if (excluded.indexOf(key) >= 0) continue;
38
86
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
87
  target[key] = source[key];
@@ -43,16 +91,29 @@ function _object_without_properties(source, excluded) {
43
91
  }
44
92
  function _object_without_properties_loose(source, excluded) {
45
93
  if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
94
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
49
95
  for(i = 0; i < sourceKeys.length; i++){
50
96
  key = sourceKeys[i];
51
97
  if (excluded.indexOf(key) >= 0) continue;
98
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
52
99
  target[key] = source[key];
53
100
  }
54
101
  return target;
55
102
  }
103
+ function _sliced_to_array(arr, i) {
104
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
105
+ }
106
+ function _to_array(arr) {
107
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
108
+ }
109
+ function _unsupported_iterable_to_array(o, minLen) {
110
+ if (!o) return;
111
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
112
+ var n = Object.prototype.toString.call(o).slice(8, -1);
113
+ if (n === "Object" && o.constructor) n = o.constructor.name;
114
+ if (n === "Map" || n === "Set") return Array.from(n);
115
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
116
+ }
56
117
  import React, { forwardRef, useRef, useContext, useEffect } from 'react';
57
118
  import styled, { css } from 'styled-components';
58
119
  import { useForkRef } from '../../hooks';
@@ -106,13 +167,16 @@ export var StyledTabItem = styled.div.withConfig({
106
167
  /**
107
168
  * Элемент списка, недопустимо использовать вне компонента Tabs.
108
169
  */ // eslint-disable-next-line prefer-arrow-callback
109
- export var TabItem = /*#__PURE__*/ forwardRef(function TabItem(_param, outerRef) {
110
- var children = _param.children, contentLeft = _param.contentLeft, isActive = _param.isActive, _param_role = _param.role, role = _param_role === void 0 ? 'tab' : _param_role, rest = _object_without_properties(_param, [
170
+ export var TabItem = /*#__PURE__*/ forwardRef(function TabItem(_0, _1) {
171
+ var _ref = [
172
+ _0,
173
+ _1
174
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), children = _ref2.children, contentLeft = _ref2.contentLeft, isActive = _ref2.isActive, _ref_role = _ref2.role, role = _ref_role === void 0 ? 'tab' : _ref_role, rest = _object_without_properties(_ref2, [
111
175
  "children",
112
176
  "contentLeft",
113
177
  "isActive",
114
178
  "role"
115
- ]);
179
+ ]), _rest1 = _sliced_to_array(_rest, 1), outerRef = _rest1[0];
116
180
  var innerRef = useRef(null);
117
181
  var ref = useForkRef(outerRef, innerRef);
118
182
  var refs = useContext(TabsContext);
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
1
9
  function _define_property(obj, key, value) {
2
10
  if (key in obj) {
3
11
  Object.defineProperty(obj, key, {
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
11
19
  }
12
20
  return obj;
13
21
  }
22
+ function _iterable_to_array(iter) {
23
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
24
+ }
25
+ function _iterable_to_array_limit(arr, i) {
26
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (_i == null) return;
28
+ var _arr = [];
29
+ var _n = true;
30
+ var _d = false;
31
+ var _s, _e;
32
+ try {
33
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
34
+ _arr.push(_s.value);
35
+ if (i && _arr.length === i) break;
36
+ }
37
+ } catch (err) {
38
+ _d = true;
39
+ _e = err;
40
+ } finally{
41
+ try {
42
+ if (!_n && _i["return"] != null) _i["return"]();
43
+ } finally{
44
+ if (_d) throw _e;
45
+ }
46
+ }
47
+ return _arr;
48
+ }
49
+ function _non_iterable_rest() {
50
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51
+ }
14
52
  function _object_spread(target) {
15
53
  for(var i = 1; i < arguments.length; i++){
16
54
  var source = arguments[i] != null ? arguments[i] : {};
@@ -28,12 +66,22 @@ function _object_spread(target) {
28
66
  }
29
67
  function _object_without_properties(source, excluded) {
30
68
  if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
69
+ var target = {}, sourceKeys, key, i;
70
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
71
+ sourceKeys = Reflect.ownKeys(source);
72
+ for(i = 0; i < sourceKeys.length; i++){
73
+ key = sourceKeys[i];
74
+ if (excluded.indexOf(key) >= 0) continue;
75
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
76
+ target[key] = source[key];
77
+ }
78
+ return target;
79
+ }
80
+ target = _object_without_properties_loose(source, excluded);
33
81
  if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
82
+ sourceKeys = Object.getOwnPropertySymbols(source);
83
+ for(i = 0; i < sourceKeys.length; i++){
84
+ key = sourceKeys[i];
37
85
  if (excluded.indexOf(key) >= 0) continue;
38
86
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
87
  target[key] = source[key];
@@ -43,16 +91,29 @@ function _object_without_properties(source, excluded) {
43
91
  }
44
92
  function _object_without_properties_loose(source, excluded) {
45
93
  if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
94
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
49
95
  for(i = 0; i < sourceKeys.length; i++){
50
96
  key = sourceKeys[i];
51
97
  if (excluded.indexOf(key) >= 0) continue;
98
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
52
99
  target[key] = source[key];
53
100
  }
54
101
  return target;
55
102
  }
103
+ function _sliced_to_array(arr, i) {
104
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
105
+ }
106
+ function _to_array(arr) {
107
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
108
+ }
109
+ function _unsupported_iterable_to_array(o, minLen) {
110
+ if (!o) return;
111
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
112
+ var n = Object.prototype.toString.call(o).slice(8, -1);
113
+ if (n === "Object" && o.constructor) n = o.constructor.name;
114
+ if (n === "Map" || n === "Set") return Array.from(n);
115
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
116
+ }
56
117
  import React from 'react';
57
118
  import styled, { css } from 'styled-components';
58
119
  import { applyDisabled } from '../../mixins';
@@ -100,13 +161,16 @@ export var StyledWrapper = styled.div.withConfig({
100
161
  });
101
162
  /**
102
163
  * Контейнер вкладок.
103
- */ export var Tabs = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
104
- var _param_role = _param.role, role = _param_role === void 0 ? 'tablist' : _param_role, as = _param.as, children = _param.children, stretch = _param.stretch, rest = _object_without_properties(_param, [
164
+ */ export var Tabs = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
165
+ var _ref = [
166
+ _0,
167
+ _1
168
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), _ref_role = _ref2.role, role = _ref_role === void 0 ? 'tablist' : _ref_role, as = _ref2.as, children = _ref2.children, stretch = _ref2.stretch, rest = _object_without_properties(_ref2, [
105
169
  "role",
106
170
  "as",
107
171
  "children",
108
172
  "stretch"
109
- ]);
173
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
110
174
  return /*#__PURE__*/ React.createElement(StyledWrapper, _object_spread({
111
175
  stretch: stretch
112
176
  }, rest), /*#__PURE__*/ React.createElement(StyledTabs, {