@salutejs/plasma-core 1.214.0-next-insol.0 → 1.214.1-canary.2462.21631235501.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 +2 -2
  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(target) {
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;
@@ -130,8 +139,8 @@ var StyledPeriodicity = _styledcomponents.default.span.withConfig({
130
139
  })([
131
140
  "padding-left:0.25rem;"
132
141
  ]);
133
- var Price = function(_param) {
134
- var children = _param.children, _param_currency = _param.currency, currency = _param_currency === void 0 ? 'rub' : _param_currency, _param_minimumFractionDigits = _param.minimumFractionDigits, minimumFractionDigits = _param_minimumFractionDigits === void 0 ? 0 : _param_minimumFractionDigits, _param_stroke = _param.stroke, stroke = _param_stroke === void 0 ? false : _param_stroke, periodicity = _param.periodicity, rest = _object_without_properties(_param, [
142
+ var Price = function Price(_0) {
143
+ var children = _0.children, _0_currency = _0.currency, currency = _0_currency === void 0 ? 'rub' : _0_currency, _0_minimumFractionDigits = _0.minimumFractionDigits, minimumFractionDigits = _0_minimumFractionDigits === void 0 ? 0 : _0_minimumFractionDigits, _0_stroke = _0.stroke, stroke = _0_stroke === void 0 ? false : _0_stroke, periodicity = _0.periodicity, rest = _object_without_properties(_0, [
135
144
  "children",
136
145
  "currency",
137
146
  "minimumFractionDigits",
@@ -9,6 +9,14 @@ Object.defineProperty(exports, "RadioGroup", {
9
9
  }
10
10
  });
11
11
  var _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
+ function _array_like_to_array(arr, len) {
13
+ if (len == null || len > arr.length) len = arr.length;
14
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15
+ return arr2;
16
+ }
17
+ function _array_with_holes(arr) {
18
+ if (Array.isArray(arr)) return arr;
19
+ }
12
20
  function _define_property(obj, key, value) {
13
21
  if (key in obj) {
14
22
  Object.defineProperty(obj, key, {
@@ -27,6 +35,36 @@ function _interop_require_default(obj) {
27
35
  default: obj
28
36
  };
29
37
  }
38
+ function _iterable_to_array(iter) {
39
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
40
+ }
41
+ function _iterable_to_array_limit(arr, i) {
42
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
43
+ if (_i == null) return;
44
+ var _arr = [];
45
+ var _n = true;
46
+ var _d = false;
47
+ var _s, _e;
48
+ try {
49
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
50
+ _arr.push(_s.value);
51
+ if (i && _arr.length === i) break;
52
+ }
53
+ } catch (err) {
54
+ _d = true;
55
+ _e = err;
56
+ } finally{
57
+ try {
58
+ if (!_n && _i["return"] != null) _i["return"]();
59
+ } finally{
60
+ if (_d) throw _e;
61
+ }
62
+ }
63
+ return _arr;
64
+ }
65
+ function _non_iterable_rest() {
66
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67
+ }
30
68
  function _object_spread(target) {
31
69
  for(var i = 1; i < arguments.length; i++){
32
70
  var source = arguments[i] != null ? arguments[i] : {};
@@ -44,12 +82,22 @@ function _object_spread(target) {
44
82
  }
45
83
  function _object_without_properties(source, excluded) {
46
84
  if (source == null) return {};
47
- var target = _object_without_properties_loose(source, excluded);
48
- var key, i;
85
+ var target = {}, sourceKeys, key, i;
86
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
87
+ sourceKeys = Reflect.ownKeys(source);
88
+ for(i = 0; i < sourceKeys.length; i++){
89
+ key = sourceKeys[i];
90
+ if (excluded.indexOf(key) >= 0) continue;
91
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
92
+ target[key] = source[key];
93
+ }
94
+ return target;
95
+ }
96
+ target = _object_without_properties_loose(source, excluded);
49
97
  if (Object.getOwnPropertySymbols) {
50
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
51
- for(i = 0; i < sourceSymbolKeys.length; i++){
52
- key = sourceSymbolKeys[i];
98
+ sourceKeys = Object.getOwnPropertySymbols(source);
99
+ for(i = 0; i < sourceKeys.length; i++){
100
+ key = sourceKeys[i];
53
101
  if (excluded.indexOf(key) >= 0) continue;
54
102
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
55
103
  target[key] = source[key];
@@ -59,20 +107,36 @@ function _object_without_properties(source, excluded) {
59
107
  }
60
108
  function _object_without_properties_loose(source, excluded) {
61
109
  if (source == null) return {};
62
- var target = {};
63
- var sourceKeys = Object.keys(source);
64
- var key, i;
110
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
65
111
  for(i = 0; i < sourceKeys.length; i++){
66
112
  key = sourceKeys[i];
67
113
  if (excluded.indexOf(key) >= 0) continue;
114
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
68
115
  target[key] = source[key];
69
116
  }
70
117
  return target;
71
118
  }
72
- var RadioGroup = /*#__PURE__*/ _react.default.forwardRef(function(_param, ref) {
73
- var children = _param.children, rest = _object_without_properties(_param, [
119
+ function _sliced_to_array(arr, i) {
120
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
121
+ }
122
+ function _to_array(arr) {
123
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
124
+ }
125
+ function _unsupported_iterable_to_array(o, minLen) {
126
+ if (!o) return;
127
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
128
+ var n = Object.prototype.toString.call(o).slice(8, -1);
129
+ if (n === "Object" && o.constructor) n = o.constructor.name;
130
+ if (n === "Map" || n === "Set") return Array.from(n);
131
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
132
+ }
133
+ var RadioGroup = /*#__PURE__*/ _react.default.forwardRef(function(_0, _1) {
134
+ var _ref = [
135
+ _0,
136
+ _1
137
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), children = _ref2.children, rest = _object_without_properties(_ref2, [
74
138
  "children"
75
- ]);
139
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
76
140
  return /*#__PURE__*/ _react.default.createElement("div", _object_spread({
77
141
  role: "radiogroup",
78
142
  ref: ref
@@ -61,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
61
61
  var SSRContext = /*#__PURE__*/ (0, _react.createContext)({
62
62
  uniqId: null
63
63
  });
64
- var SSRProvider = function(param) {
64
+ var SSRProvider = function SSRProvider(param) {
65
65
  var children = param.children;
66
66
  var value = {
67
67
  uniqId: 0
@@ -89,12 +89,22 @@ function _object_spread(target) {
89
89
  }
90
90
  function _object_without_properties(source, excluded) {
91
91
  if (source == null) return {};
92
- var target = _object_without_properties_loose(source, excluded);
93
- var key, i;
92
+ var target = {}, sourceKeys, key, i;
93
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
94
+ sourceKeys = Reflect.ownKeys(source);
95
+ for(i = 0; i < sourceKeys.length; i++){
96
+ key = sourceKeys[i];
97
+ if (excluded.indexOf(key) >= 0) continue;
98
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
99
+ target[key] = source[key];
100
+ }
101
+ return target;
102
+ }
103
+ target = _object_without_properties_loose(source, excluded);
94
104
  if (Object.getOwnPropertySymbols) {
95
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
96
- for(i = 0; i < sourceSymbolKeys.length; i++){
97
- key = sourceSymbolKeys[i];
105
+ sourceKeys = Object.getOwnPropertySymbols(source);
106
+ for(i = 0; i < sourceKeys.length; i++){
107
+ key = sourceKeys[i];
98
108
  if (excluded.indexOf(key) >= 0) continue;
99
109
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
100
110
  target[key] = source[key];
@@ -104,12 +114,11 @@ function _object_without_properties(source, excluded) {
104
114
  }
105
115
  function _object_without_properties_loose(source, excluded) {
106
116
  if (source == null) return {};
107
- var target = {};
108
- var sourceKeys = Object.keys(source);
109
- var key, i;
117
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
110
118
  for(i = 0; i < sourceKeys.length; i++){
111
119
  key = sourceKeys[i];
112
120
  if (excluded.indexOf(key) >= 0) continue;
121
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
113
122
  target[key] = source[key];
114
123
  }
115
124
  return target;
@@ -138,8 +147,8 @@ var StyledLine = _styledcomponents.default.div.withConfig({
138
147
  ";}"
139
148
  ], _typography[$size].lineHeight, StyledVisibleLine, _typography[$size].fontSize);
140
149
  }, StyledVisibleLine, _mixins.applyRoundness, _mixins.applySkeletonGradient);
141
- var LineSkeleton = function(_param) {
142
- var _param_size = _param.size, size = _param_size === void 0 ? _Skeleton.DEFAULT_TEXT_SIZE : _param_size, _param_roundness = _param.roundness, roundness = _param_roundness === void 0 ? _Skeleton.DEFAULT_ROUNDNESS : _param_roundness, rest = _object_without_properties(_param, [
150
+ var LineSkeleton = function LineSkeleton(_0) {
151
+ var _0_size = _0.size, size = _0_size === void 0 ? _Skeleton.DEFAULT_TEXT_SIZE : _0_size, _0_roundness = _0.roundness, roundness = _0_roundness === void 0 ? _Skeleton.DEFAULT_ROUNDNESS : _0_roundness, rest = _object_without_properties(_0, [
143
152
  "size",
144
153
  "roundness"
145
154
  ]);
@@ -88,12 +88,22 @@ function _object_spread(target) {
88
88
  }
89
89
  function _object_without_properties(source, excluded) {
90
90
  if (source == null) return {};
91
- var target = _object_without_properties_loose(source, excluded);
92
- var key, i;
91
+ var target = {}, sourceKeys, key, i;
92
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
93
+ sourceKeys = Reflect.ownKeys(source);
94
+ for(i = 0; i < sourceKeys.length; i++){
95
+ key = sourceKeys[i];
96
+ if (excluded.indexOf(key) >= 0) continue;
97
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
98
+ target[key] = source[key];
99
+ }
100
+ return target;
101
+ }
102
+ target = _object_without_properties_loose(source, excluded);
93
103
  if (Object.getOwnPropertySymbols) {
94
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
95
- for(i = 0; i < sourceSymbolKeys.length; i++){
96
- key = sourceSymbolKeys[i];
104
+ sourceKeys = Object.getOwnPropertySymbols(source);
105
+ for(i = 0; i < sourceKeys.length; i++){
106
+ key = sourceKeys[i];
97
107
  if (excluded.indexOf(key) >= 0) continue;
98
108
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
99
109
  target[key] = source[key];
@@ -103,12 +113,11 @@ function _object_without_properties(source, excluded) {
103
113
  }
104
114
  function _object_without_properties_loose(source, excluded) {
105
115
  if (source == null) return {};
106
- var target = {};
107
- var sourceKeys = Object.keys(source);
108
- var key, i;
116
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
109
117
  for(i = 0; i < sourceKeys.length; i++){
110
118
  key = sourceKeys[i];
111
119
  if (excluded.indexOf(key) >= 0) continue;
120
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
112
121
  target[key] = source[key];
113
122
  }
114
123
  return target;
@@ -129,8 +138,8 @@ var StyledRectSkeleton = _styledcomponents.default.div.withConfig({
129
138
  ";"
130
139
  ], $width, $height);
131
140
  });
132
- var RectSkeleton = function(_param) {
133
- var width = _param.width, height = _param.height, _param_roundness = _param.roundness, roundness = _param_roundness === void 0 ? _Skeleton.DEFAULT_ROUNDNESS : _param_roundness, rest = _object_without_properties(_param, [
141
+ var RectSkeleton = function RectSkeleton(_0) {
142
+ var width = _0.width, height = _0.height, _0_roundness = _0.roundness, roundness = _0_roundness === void 0 ? _Skeleton.DEFAULT_ROUNDNESS : _0_roundness, rest = _object_without_properties(_0, [
134
143
  "width",
135
144
  "height",
136
145
  "roundness"
@@ -19,12 +19,22 @@ function _interop_require_default(obj) {
19
19
  }
20
20
  function _object_without_properties(source, excluded) {
21
21
  if (source == null) return {};
22
- var target = _object_without_properties_loose(source, excluded);
23
- var key, i;
22
+ var target = {}, sourceKeys, key, i;
23
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
24
+ sourceKeys = Reflect.ownKeys(source);
25
+ for(i = 0; i < sourceKeys.length; i++){
26
+ key = sourceKeys[i];
27
+ if (excluded.indexOf(key) >= 0) continue;
28
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
29
+ target[key] = source[key];
30
+ }
31
+ return target;
32
+ }
33
+ target = _object_without_properties_loose(source, excluded);
24
34
  if (Object.getOwnPropertySymbols) {
25
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
26
- for(i = 0; i < sourceSymbolKeys.length; i++){
27
- key = sourceSymbolKeys[i];
35
+ sourceKeys = Object.getOwnPropertySymbols(source);
36
+ for(i = 0; i < sourceKeys.length; i++){
37
+ key = sourceKeys[i];
28
38
  if (excluded.indexOf(key) >= 0) continue;
29
39
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
30
40
  target[key] = source[key];
@@ -34,12 +44,11 @@ function _object_without_properties(source, excluded) {
34
44
  }
35
45
  function _object_without_properties_loose(source, excluded) {
36
46
  if (source == null) return {};
37
- var target = {};
38
- var sourceKeys = Object.keys(source);
39
- var key, i;
47
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
40
48
  for(i = 0; i < sourceKeys.length; i++){
41
49
  key = sourceKeys[i];
42
50
  if (excluded.indexOf(key) >= 0) continue;
51
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
43
52
  target[key] = source[key];
44
53
  }
45
54
  return target;
@@ -67,8 +76,8 @@ var StyledTextSkeleton = _styledcomponents.default.div.withConfig({
67
76
  })([
68
77
  "display:flex;flex-direction:column;width:100%;"
69
78
  ]);
70
- var TextSkeleton = function(_param) {
71
- var lines = _param.lines, width = _param.width, roundness = _param.roundness, _param_size = _param.size, size = _param_size === void 0 ? _Skeleton.DEFAULT_TEXT_SIZE : _param_size, props = _object_without_properties(_param, [
79
+ var TextSkeleton = function TextSkeleton(_0) {
80
+ var lines = _0.lines, width = _0.width, roundness = _0.roundness, _0_size = _0.size, size = _0_size === void 0 ? _Skeleton.DEFAULT_TEXT_SIZE : _0_size, props = _object_without_properties(_0, [
72
81
  "lines",
73
82
  "width",
74
83
  "roundness",
@@ -105,12 +105,22 @@ function _object_spread_props(target, source) {
105
105
  }
106
106
  function _object_without_properties(source, excluded) {
107
107
  if (source == null) return {};
108
- var target = _object_without_properties_loose(source, excluded);
109
- var key, i;
108
+ var target = {}, sourceKeys, key, i;
109
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
110
+ sourceKeys = Reflect.ownKeys(source);
111
+ for(i = 0; i < sourceKeys.length; i++){
112
+ key = sourceKeys[i];
113
+ if (excluded.indexOf(key) >= 0) continue;
114
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
115
+ target[key] = source[key];
116
+ }
117
+ return target;
118
+ }
119
+ target = _object_without_properties_loose(source, excluded);
110
120
  if (Object.getOwnPropertySymbols) {
111
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
112
- for(i = 0; i < sourceSymbolKeys.length; i++){
113
- key = sourceSymbolKeys[i];
121
+ sourceKeys = Object.getOwnPropertySymbols(source);
122
+ for(i = 0; i < sourceKeys.length; i++){
123
+ key = sourceKeys[i];
114
124
  if (excluded.indexOf(key) >= 0) continue;
115
125
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
116
126
  target[key] = source[key];
@@ -120,12 +130,11 @@ function _object_without_properties(source, excluded) {
120
130
  }
121
131
  function _object_without_properties_loose(source, excluded) {
122
132
  if (source == null) return {};
123
- var target = {};
124
- var sourceKeys = Object.keys(source);
125
- var key, i;
133
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
126
134
  for(i = 0; i < sourceKeys.length; i++){
127
135
  key = sourceKeys[i];
128
136
  if (excluded.indexOf(key) >= 0) continue;
137
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
129
138
  target[key] = source[key];
130
139
  }
131
140
  return target;
@@ -148,8 +157,8 @@ function getXCenterHandle(handle) {
148
157
  var handlePosition = handleRect.x;
149
158
  return handlePosition - containerX;
150
159
  }
151
- var Slider = function(_param) {
152
- 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, [
160
+ var Slider = function Slider(_0) {
161
+ 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, [
153
162
  "min",
154
163
  "max",
155
164
  "value",
@@ -80,6 +80,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
80
80
  }
81
81
  return newObj;
82
82
  }
83
+ function _iterable_to_array(iter) {
84
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
85
+ }
83
86
  function _iterable_to_array_limit(arr, i) {
84
87
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
85
88
  if (_i == null) return;
@@ -124,12 +127,22 @@ function _object_spread(target) {
124
127
  }
125
128
  function _object_without_properties(source, excluded) {
126
129
  if (source == null) return {};
127
- var target = _object_without_properties_loose(source, excluded);
128
- var key, i;
130
+ var target = {}, sourceKeys, key, i;
131
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
132
+ sourceKeys = Reflect.ownKeys(source);
133
+ for(i = 0; i < sourceKeys.length; i++){
134
+ key = sourceKeys[i];
135
+ if (excluded.indexOf(key) >= 0) continue;
136
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
137
+ target[key] = source[key];
138
+ }
139
+ return target;
140
+ }
141
+ target = _object_without_properties_loose(source, excluded);
129
142
  if (Object.getOwnPropertySymbols) {
130
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
131
- for(i = 0; i < sourceSymbolKeys.length; i++){
132
- key = sourceSymbolKeys[i];
143
+ sourceKeys = Object.getOwnPropertySymbols(source);
144
+ for(i = 0; i < sourceKeys.length; i++){
145
+ key = sourceKeys[i];
133
146
  if (excluded.indexOf(key) >= 0) continue;
134
147
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
135
148
  target[key] = source[key];
@@ -139,12 +152,11 @@ function _object_without_properties(source, excluded) {
139
152
  }
140
153
  function _object_without_properties_loose(source, excluded) {
141
154
  if (source == null) return {};
142
- var target = {};
143
- var sourceKeys = Object.keys(source);
144
- var key, i;
155
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
145
156
  for(i = 0; i < sourceKeys.length; i++){
146
157
  key = sourceKeys[i];
147
158
  if (excluded.indexOf(key) >= 0) continue;
159
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
148
160
  target[key] = source[key];
149
161
  }
150
162
  return target;
@@ -152,6 +164,9 @@ function _object_without_properties_loose(source, excluded) {
152
164
  function _sliced_to_array(arr, i) {
153
165
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
154
166
  }
167
+ function _to_array(arr) {
168
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
169
+ }
155
170
  function _unsupported_iterable_to_array(o, minLen) {
156
171
  if (!o) return;
157
172
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -166,8 +181,11 @@ var HandleStyled = _styledcomponents.default.div.withConfig({
166
181
  })([
167
182
  "cursor:pointer;position:absolute;z-index:1;top:0;left:0;"
168
183
  ]);
169
- var Handle = /*#__PURE__*/ (0, _react.forwardRef)(function(_param, ref) {
170
- var stepSize = _param.stepSize, onChangeCommitted = _param.onChangeCommitted, onChange = _param.onChange, xPosition = _param.xPosition, min = _param.min, max = _param.max, _param_bounds = _param.bounds, bounds = _param_bounds === void 0 ? [] : _param_bounds, zIndex = _param.zIndex, disabled = _param.disabled, side = _param.side, rest = _object_without_properties(_param, [
184
+ var Handle = /*#__PURE__*/ (0, _react.forwardRef)(function(_0, _1) {
185
+ var _ref = [
186
+ _0,
187
+ _1
188
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), stepSize = _ref2.stepSize, onChangeCommitted = _ref2.onChangeCommitted, onChange = _ref2.onChange, xPosition = _ref2.xPosition, min = _ref2.min, max = _ref2.max, _ref_bounds = _ref2.bounds, bounds = _ref_bounds === void 0 ? [] : _ref_bounds, zIndex = _ref2.zIndex, disabled = _ref2.disabled, side = _ref2.side, rest = _object_without_properties(_ref2, [
171
189
  "stepSize",
172
190
  "onChangeCommitted",
173
191
  "onChange",
@@ -178,7 +196,7 @@ var Handle = /*#__PURE__*/ (0, _react.forwardRef)(function(_param, ref) {
178
196
  "zIndex",
179
197
  "disabled",
180
198
  "side"
181
- ]);
199
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
182
200
  var lastOnChangeValue = (0, _react.useRef)();
183
201
  var currentSliderValue = (lastOnChangeValue === null || lastOnChangeValue === void 0 ? void 0 : lastOnChangeValue.current) || rest.value;
184
202
  var onDrag = (0, _react.useCallback)(function(_, data) {
@@ -105,12 +105,22 @@ function _object_spread_props(target, source) {
105
105
  }
106
106
  function _object_without_properties(source, excluded) {
107
107
  if (source == null) return {};
108
- var target = _object_without_properties_loose(source, excluded);
109
- var key, i;
108
+ var target = {}, sourceKeys, key, i;
109
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
110
+ sourceKeys = Reflect.ownKeys(source);
111
+ for(i = 0; i < sourceKeys.length; i++){
112
+ key = sourceKeys[i];
113
+ if (excluded.indexOf(key) >= 0) continue;
114
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
115
+ target[key] = source[key];
116
+ }
117
+ return target;
118
+ }
119
+ target = _object_without_properties_loose(source, excluded);
110
120
  if (Object.getOwnPropertySymbols) {
111
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
112
- for(i = 0; i < sourceSymbolKeys.length; i++){
113
- key = sourceSymbolKeys[i];
121
+ sourceKeys = Object.getOwnPropertySymbols(source);
122
+ for(i = 0; i < sourceKeys.length; i++){
123
+ key = sourceKeys[i];
114
124
  if (excluded.indexOf(key) >= 0) continue;
115
125
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
116
126
  target[key] = source[key];
@@ -120,12 +130,11 @@ function _object_without_properties(source, excluded) {
120
130
  }
121
131
  function _object_without_properties_loose(source, excluded) {
122
132
  if (source == null) return {};
123
- var target = {};
124
- var sourceKeys = Object.keys(source);
125
- var key, i;
133
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
126
134
  for(i = 0; i < sourceKeys.length; i++){
127
135
  key = sourceKeys[i];
128
136
  if (excluded.indexOf(key) >= 0) continue;
137
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
129
138
  target[key] = source[key];
130
139
  }
131
140
  return target;
@@ -141,8 +150,8 @@ function _unsupported_iterable_to_array(o, minLen) {
141
150
  if (n === "Map" || n === "Set") return Array.from(n);
142
151
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
143
152
  }
144
- var Slider = function(_param) {
145
- 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, [
153
+ var Slider = function Slider(_0) {
154
+ 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, [
146
155
  "min",
147
156
  "max",
148
157
  "value",
@@ -16,10 +16,10 @@ function _interop_require_default(obj) {
16
16
  default: obj
17
17
  };
18
18
  }
19
- var isSingleValueProps = function(props) {
19
+ var isSingleValueProps = function isSingleValueProps(props) {
20
20
  return typeof props.value === 'number';
21
21
  };
22
- var SliderCore = function(props) {
22
+ var SliderCore = function SliderCore(props) {
23
23
  if (isSingleValueProps(props)) {
24
24
  return /*#__PURE__*/ _react.default.createElement(_Single.Slider, props);
25
25
  }
@@ -91,7 +91,7 @@ var Fill = _styledcomponents.default.div.withConfig({
91
91
  })([
92
92
  "position:absolute;height:100%;top:0;left:0;background-color:var(--fill-color);width:0;"
93
93
  ]);
94
- var SliderBase = function(param) {
94
+ var SliderBase = function SliderBase(param) {
95
95
  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;
96
96
  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;
97
97
  var ref = (0, _react.useRef)(null);
@@ -115,7 +115,7 @@ var SliderBase = function(param) {
115
115
  max
116
116
  ]);
117
117
  (0, _hooks.useIsomorphicLayoutEffect)(function() {
118
- var resizeHandler = function() {
118
+ var resizeHandler = function resizeHandler() {
119
119
  if (ref.current) {
120
120
  var railSize = ref.current.offsetWidth - gap;
121
121
  var totalSteps = max - min;
@@ -95,12 +95,22 @@ function _object_spread(target) {
95
95
  }
96
96
  function _object_without_properties(source, excluded) {
97
97
  if (source == null) return {};
98
- var target = _object_without_properties_loose(source, excluded);
99
- var key, i;
98
+ var target = {}, sourceKeys, key, i;
99
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
100
+ sourceKeys = Reflect.ownKeys(source);
101
+ for(i = 0; i < sourceKeys.length; i++){
102
+ key = sourceKeys[i];
103
+ if (excluded.indexOf(key) >= 0) continue;
104
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
105
+ target[key] = source[key];
106
+ }
107
+ return target;
108
+ }
109
+ target = _object_without_properties_loose(source, excluded);
100
110
  if (Object.getOwnPropertySymbols) {
101
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
102
- for(i = 0; i < sourceSymbolKeys.length; i++){
103
- key = sourceSymbolKeys[i];
111
+ sourceKeys = Object.getOwnPropertySymbols(source);
112
+ for(i = 0; i < sourceKeys.length; i++){
113
+ key = sourceKeys[i];
104
114
  if (excluded.indexOf(key) >= 0) continue;
105
115
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
106
116
  target[key] = source[key];
@@ -110,12 +120,11 @@ function _object_without_properties(source, excluded) {
110
120
  }
111
121
  function _object_without_properties_loose(source, excluded) {
112
122
  if (source == null) return {};
113
- var target = {};
114
- var sourceKeys = Object.keys(source);
115
- var key, i;
123
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
116
124
  for(i = 0; i < sourceKeys.length; i++){
117
125
  key = sourceKeys[i];
118
126
  if (excluded.indexOf(key) >= 0) continue;
127
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
119
128
  target[key] = source[key];
120
129
  }
121
130
  return target;
@@ -136,8 +145,8 @@ var ThumbBase = _styledcomponents.default.div.withConfig({
136
145
  })([
137
146
  "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;}}"
138
147
  ]);
139
- var Thumb = function(_param) {
140
- 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, [
148
+ var Thumb = function Thumb(_0) {
149
+ 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, [
141
150
  "onChangeCommitted",
142
151
  "stepSize",
143
152
  "xPosition",