@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.
- package/.swc/plugins/{v7_linux_x86_64_14.0.0/cce279a62b5dde357ee7b421711ef357c3f0a29cd3cb6e86336f7345fd604d8e → linux_x86_64_24.0.0/202f6e4cef5244f7c5860be71bf49ba7448c1085420582e8bfccb5598d99b9c4.wasmer-v7} +0 -0
- package/.swc/plugins/{v7_linux_x86_64_14.0.0/358fecaab1701de64a7bceee21e5f3a204d1107aa33eb372d1dab77a43118622 → linux_x86_64_24.0.0/671036687e3bc3a68b2957b14f0890c0b5825f19e8049d9af5daf3537b9160fd.wasmer-v7} +0 -0
- package/collectPackageInfo.js +1 -1
- package/components/Badge/Badge.js +19 -10
- package/components/Button/Button.mixins.js +1 -1
- package/components/Button/createButton.js +76 -12
- package/components/Card/Card.js +75 -11
- package/components/Card/CardMedia.js +19 -10
- package/components/Card/CardPrice.js +19 -10
- package/components/Card/CardTypography.js +2 -2
- package/components/Carousel/CarouselItem.js +21 -12
- package/components/Carousel/hooks.js +2 -2
- package/components/Carousel/utils.js +14 -14
- package/components/Image/Image.js +19 -10
- package/components/Input/Input.mixins.js +1 -1
- package/components/ModalBase/ModalBase.js +19 -10
- package/components/ModalBase/ModalBaseContext.js +3 -3
- package/components/ModalBase/ModalOverlay.js +19 -10
- package/components/ModalBase/hooks.js +1 -1
- package/components/PaginationDots/usePaginationDots.js +1 -1
- package/components/Popup/Popup.js +77 -13
- package/components/PopupBase/PopupBase.js +31 -13
- package/components/PopupBase/PopupBaseContext.js +4 -4
- package/components/PopupBase/PopupBaseRoot.js +75 -11
- package/components/PopupBase/hooks.js +2 -2
- package/components/PopupBase/utils.js +1 -1
- package/components/Price/Price.js +19 -10
- package/components/RadioGroup/RadioGroup.js +75 -11
- package/components/SSRProvider/SSRProvider.js +1 -1
- package/components/Skeleton/LineSkeleton.js +19 -10
- package/components/Skeleton/RectSkeleton.js +19 -10
- package/components/Skeleton/TextSkeleton.js +19 -10
- package/components/Slider/Double.js +19 -10
- package/components/Slider/Handle.js +29 -11
- package/components/Slider/Single.js +19 -10
- package/components/Slider/Slider.js +2 -2
- package/components/Slider/SliderBase.js +2 -2
- package/components/Slider/ThumbBase.js +19 -10
- package/components/Spinner/Spinner.js +19 -10
- package/components/Spinner/SpinnerSvg.js +19 -10
- package/components/Switch/Switch.js +76 -12
- package/components/Tabs/TabItem.js +75 -11
- package/components/Tabs/Tabs.js +75 -11
- package/components/Tabs/createTabsController.js +75 -11
- package/components/TextArea/TextArea.js +1 -1
- package/components/Toast/Toast.js +1 -1
- package/components/Toast/ToastContext.js +2 -2
- package/components/Toast/ToastController.js +3 -3
- package/components/Toast/ToastProvider.js +3 -3
- package/components/Toast/useToast.js +1 -1
- package/es/collectPackageInfo.js +1 -1
- package/es/components/Badge/Badge.js +19 -10
- package/es/components/Button/Button.mixins.js +1 -1
- package/es/components/Button/createButton.js +76 -12
- package/es/components/Card/Card.js +75 -11
- package/es/components/Card/CardMedia.js +19 -10
- package/es/components/Card/CardPrice.js +19 -10
- package/es/components/Card/CardTypography.js +2 -2
- package/es/components/Carousel/CarouselItem.js +21 -12
- package/es/components/Carousel/hooks.js +4 -4
- package/es/components/Carousel/utils.js +14 -14
- package/es/components/Image/Image.js +19 -10
- package/es/components/Input/Input.mixins.js +1 -1
- package/es/components/ModalBase/ModalBase.js +19 -10
- package/es/components/ModalBase/ModalBaseContext.js +3 -3
- package/es/components/ModalBase/ModalOverlay.js +19 -10
- package/es/components/ModalBase/hooks.js +1 -1
- package/es/components/PaginationDots/usePaginationDots.js +1 -1
- package/es/components/Popup/Popup.js +77 -13
- package/es/components/PopupBase/PopupBase.js +31 -13
- package/es/components/PopupBase/PopupBaseContext.js +4 -4
- package/es/components/PopupBase/PopupBaseRoot.js +75 -11
- package/es/components/PopupBase/hooks.js +2 -2
- package/es/components/PopupBase/utils.js +1 -1
- package/es/components/Price/Price.js +19 -10
- package/es/components/RadioGroup/RadioGroup.js +75 -11
- package/es/components/SSRProvider/SSRProvider.js +1 -1
- package/es/components/Skeleton/LineSkeleton.js +19 -10
- package/es/components/Skeleton/RectSkeleton.js +19 -10
- package/es/components/Skeleton/TextSkeleton.js +19 -10
- package/es/components/Slider/Double.js +19 -10
- package/es/components/Slider/Handle.js +29 -11
- package/es/components/Slider/Single.js +19 -10
- package/es/components/Slider/Slider.js +2 -2
- package/es/components/Slider/SliderBase.js +2 -2
- package/es/components/Slider/ThumbBase.js +19 -10
- package/es/components/Spinner/Spinner.js +19 -10
- package/es/components/Spinner/SpinnerSvg.js +19 -10
- package/es/components/Switch/Switch.js +76 -12
- package/es/components/Tabs/TabItem.js +75 -11
- package/es/components/Tabs/Tabs.js +75 -11
- package/es/components/Tabs/createTabsController.js +75 -11
- package/es/components/TextArea/TextArea.js +1 -1
- package/es/components/Toast/Toast.js +1 -1
- package/es/components/Toast/ToastContext.js +2 -2
- package/es/components/Toast/ToastController.js +3 -3
- package/es/components/Toast/ToastProvider.js +3 -3
- package/es/components/Toast/useToast.js +1 -1
- package/es/hocs/withAutoFocus.js +20 -11
- package/es/hocs/withSkeleton.js +1 -1
- package/es/hooks/useFocusTrap.js +4 -4
- package/es/hooks/useForkRef.js +1 -1
- package/es/hooks/useResizeObserver.js +1 -1
- package/es/mixins/addFocus.js +2 -2
- package/es/mixins/applyDisabled.js +1 -1
- package/es/mixins/applyEllipsis.js +1 -1
- package/es/mixins/applyMaxLines.js +1 -1
- package/es/mixins/applyNoSelect.js +1 -1
- package/es/mixins/applyOutline.js +1 -1
- package/es/mixins/applyRoundness.js +1 -1
- package/es/mixins/applyScrollSnap.js +1 -1
- package/es/mixins/applySkeletonGradient.js +1 -1
- package/es/mixins/applyView.js +1 -1
- package/es/mixins/blur.js +1 -1
- package/es/utils/animatedScrollTo.js +8 -8
- package/es/utils/extractTextFrom.js +1 -1
- package/es/utils/formatCurrency.js +1 -1
- package/es/utils/formatters.js +5 -5
- package/es/utils/roundness.js +1 -1
- package/es/utils/scopeTab.js +1 -1
- package/es/utils/setRef.js +1 -1
- package/es/utils/tabbable.js +6 -6
- package/es/utils/toCssSize.js +1 -1
- package/es/utils/transformStyles.js +3 -3
- package/hocs/withAutoFocus.js +20 -11
- package/hocs/withSkeleton.js +1 -1
- package/hooks/useFocusTrap.js +4 -4
- package/hooks/useForkRef.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/mixins/addFocus.js +2 -2
- package/mixins/applyDisabled.js +1 -1
- package/mixins/applyEllipsis.js +1 -1
- package/mixins/applyMaxLines.js +1 -1
- package/mixins/applyNoSelect.js +1 -1
- package/mixins/applyOutline.js +1 -1
- package/mixins/applyRoundness.js +1 -1
- package/mixins/applyScrollSnap.js +1 -1
- package/mixins/applySkeletonGradient.js +1 -1
- package/mixins/applyView.js +1 -1
- package/mixins/blur.js +1 -1
- package/package.json +2 -2
- package/utils/animatedScrollTo.js +8 -8
- package/utils/extractTextFrom.js +1 -1
- package/utils/formatCurrency.js +1 -1
- package/utils/formatters.js +5 -5
- package/utils/roundness.js +1 -1
- package/utils/scopeTab.js +1 -1
- package/utils/setRef.js +1 -1
- package/utils/tabbable.js +6 -6
- package/utils/toCssSize.js +1 -1
- package/utils/transformStyles.js +3 -3
|
@@ -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 =
|
|
93
|
-
|
|
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
|
-
|
|
96
|
-
for(i = 0; i <
|
|
97
|
-
key =
|
|
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;
|
|
@@ -133,14 +142,14 @@ var StyledRoot = _styledcomponents.default.div.withConfig({
|
|
|
133
142
|
], $size, $size);
|
|
134
143
|
}, rotateAnimation);
|
|
135
144
|
var scalingPixelBasis = 16;
|
|
136
|
-
var sizeFormatting = function(size) {
|
|
145
|
+
var sizeFormatting = function sizeFormatting(size) {
|
|
137
146
|
var deviceScale = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
138
147
|
if (typeof size === 'number' || !size.endsWith('rem') && !size.endsWith('px')) {
|
|
139
148
|
return "".concat(Number(size) / (scalingPixelBasis * deviceScale), "rem");
|
|
140
149
|
}
|
|
141
150
|
return size;
|
|
142
151
|
};
|
|
143
|
-
var Spinner = function(props) {
|
|
152
|
+
var Spinner = function Spinner(props) {
|
|
144
153
|
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 ? _tokens.accent : _props_color, deviceScale = props.deviceScale, rest = _object_without_properties(props, [
|
|
145
154
|
"id",
|
|
146
155
|
"size",
|
|
@@ -44,12 +44,22 @@ function _object_spread(target) {
|
|
|
44
44
|
}
|
|
45
45
|
function _object_without_properties(source, excluded) {
|
|
46
46
|
if (source == null) return {};
|
|
47
|
-
var target =
|
|
48
|
-
|
|
47
|
+
var target = {}, sourceKeys, key, i;
|
|
48
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
49
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
50
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
51
|
+
key = sourceKeys[i];
|
|
52
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
53
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
54
|
+
target[key] = source[key];
|
|
55
|
+
}
|
|
56
|
+
return target;
|
|
57
|
+
}
|
|
58
|
+
target = _object_without_properties_loose(source, excluded);
|
|
49
59
|
if (Object.getOwnPropertySymbols) {
|
|
50
|
-
|
|
51
|
-
for(i = 0; i <
|
|
52
|
-
key =
|
|
60
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
61
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
62
|
+
key = sourceKeys[i];
|
|
53
63
|
if (excluded.indexOf(key) >= 0) continue;
|
|
54
64
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
55
65
|
target[key] = source[key];
|
|
@@ -59,18 +69,17 @@ function _object_without_properties(source, excluded) {
|
|
|
59
69
|
}
|
|
60
70
|
function _object_without_properties_loose(source, excluded) {
|
|
61
71
|
if (source == null) return {};
|
|
62
|
-
var target = {};
|
|
63
|
-
var sourceKeys = Object.keys(source);
|
|
64
|
-
var key, i;
|
|
72
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
65
73
|
for(i = 0; i < sourceKeys.length; i++){
|
|
66
74
|
key = sourceKeys[i];
|
|
67
75
|
if (excluded.indexOf(key) >= 0) continue;
|
|
76
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
68
77
|
target[key] = source[key];
|
|
69
78
|
}
|
|
70
79
|
return target;
|
|
71
80
|
}
|
|
72
|
-
var SpinnerSvg = function(
|
|
73
|
-
var id =
|
|
81
|
+
var SpinnerSvg = function SpinnerSvg(_0) {
|
|
82
|
+
var id = _0.id, color = _0.color, props = _object_without_properties(_0, [
|
|
74
83
|
"id",
|
|
75
84
|
"color"
|
|
76
85
|
]);
|
|
@@ -12,6 +12,14 @@ var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
|
12
12
|
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
|
|
13
13
|
var _tokens = require("../../tokens");
|
|
14
14
|
var _mixins = require("../../mixins");
|
|
15
|
+
function _array_like_to_array(arr, len) {
|
|
16
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
17
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18
|
+
return arr2;
|
|
19
|
+
}
|
|
20
|
+
function _array_with_holes(arr) {
|
|
21
|
+
if (Array.isArray(arr)) return arr;
|
|
22
|
+
}
|
|
15
23
|
function _define_property(obj, key, value) {
|
|
16
24
|
if (key in obj) {
|
|
17
25
|
Object.defineProperty(obj, key, {
|
|
@@ -71,6 +79,36 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
71
79
|
}
|
|
72
80
|
return newObj;
|
|
73
81
|
}
|
|
82
|
+
function _iterable_to_array(iter) {
|
|
83
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
84
|
+
}
|
|
85
|
+
function _iterable_to_array_limit(arr, i) {
|
|
86
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
87
|
+
if (_i == null) return;
|
|
88
|
+
var _arr = [];
|
|
89
|
+
var _n = true;
|
|
90
|
+
var _d = false;
|
|
91
|
+
var _s, _e;
|
|
92
|
+
try {
|
|
93
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
94
|
+
_arr.push(_s.value);
|
|
95
|
+
if (i && _arr.length === i) break;
|
|
96
|
+
}
|
|
97
|
+
} catch (err) {
|
|
98
|
+
_d = true;
|
|
99
|
+
_e = err;
|
|
100
|
+
} finally{
|
|
101
|
+
try {
|
|
102
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
103
|
+
} finally{
|
|
104
|
+
if (_d) throw _e;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return _arr;
|
|
108
|
+
}
|
|
109
|
+
function _non_iterable_rest() {
|
|
110
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
111
|
+
}
|
|
74
112
|
function _object_spread(target) {
|
|
75
113
|
for(var i = 1; i < arguments.length; i++){
|
|
76
114
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -112,12 +150,22 @@ function _object_spread_props(target, source) {
|
|
|
112
150
|
}
|
|
113
151
|
function _object_without_properties(source, excluded) {
|
|
114
152
|
if (source == null) return {};
|
|
115
|
-
var target =
|
|
116
|
-
|
|
153
|
+
var target = {}, sourceKeys, key, i;
|
|
154
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
155
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
156
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
157
|
+
key = sourceKeys[i];
|
|
158
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
159
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
160
|
+
target[key] = source[key];
|
|
161
|
+
}
|
|
162
|
+
return target;
|
|
163
|
+
}
|
|
164
|
+
target = _object_without_properties_loose(source, excluded);
|
|
117
165
|
if (Object.getOwnPropertySymbols) {
|
|
118
|
-
|
|
119
|
-
for(i = 0; i <
|
|
120
|
-
key =
|
|
166
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
167
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
168
|
+
key = sourceKeys[i];
|
|
121
169
|
if (excluded.indexOf(key) >= 0) continue;
|
|
122
170
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
123
171
|
target[key] = source[key];
|
|
@@ -127,16 +175,29 @@ function _object_without_properties(source, excluded) {
|
|
|
127
175
|
}
|
|
128
176
|
function _object_without_properties_loose(source, excluded) {
|
|
129
177
|
if (source == null) return {};
|
|
130
|
-
var target = {};
|
|
131
|
-
var sourceKeys = Object.keys(source);
|
|
132
|
-
var key, i;
|
|
178
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
133
179
|
for(i = 0; i < sourceKeys.length; i++){
|
|
134
180
|
key = sourceKeys[i];
|
|
135
181
|
if (excluded.indexOf(key) >= 0) continue;
|
|
182
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
136
183
|
target[key] = source[key];
|
|
137
184
|
}
|
|
138
185
|
return target;
|
|
139
186
|
}
|
|
187
|
+
function _sliced_to_array(arr, i) {
|
|
188
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
189
|
+
}
|
|
190
|
+
function _to_array(arr) {
|
|
191
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
192
|
+
}
|
|
193
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
194
|
+
if (!o) return;
|
|
195
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
196
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
197
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
198
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
199
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
200
|
+
}
|
|
140
201
|
var triggerWidth = 'var(--plasma-switch-trigger-width, 2.75rem)';
|
|
141
202
|
var triggerHeight = 'var(--plasma-switch-trigger-height, 1.75rem)';
|
|
142
203
|
var StyledRoot = _styledcomponents.default.label.withConfig({
|
|
@@ -154,7 +215,7 @@ var StyledInput = _styledcomponents.default.input.withConfig({
|
|
|
154
215
|
";height:",
|
|
155
216
|
";&:focus{outline:0 none;}"
|
|
156
217
|
], triggerWidth, triggerHeight);
|
|
157
|
-
var synthesizeFocus = function(ruleset, focused) {
|
|
218
|
+
var synthesizeFocus = function synthesizeFocus(ruleset, focused) {
|
|
158
219
|
return (0, _styledcomponents.css)([
|
|
159
220
|
".focus-visible:focus > &,",
|
|
160
221
|
".focus-visible:focus ~ &{",
|
|
@@ -208,8 +269,11 @@ var StyledLabel = _styledcomponents.default.span.withConfig({
|
|
|
208
269
|
";margin-right:0.75rem;user-select:none;",
|
|
209
270
|
""
|
|
210
271
|
], _tokens.body1, _mixins.applyEllipsis);
|
|
211
|
-
var Switch = /*#__PURE__*/ _react.default.forwardRef(function Switch(
|
|
212
|
-
var
|
|
272
|
+
var Switch = /*#__PURE__*/ _react.default.forwardRef(function Switch(_0, _1) {
|
|
273
|
+
var _ref = [
|
|
274
|
+
_0,
|
|
275
|
+
_1
|
|
276
|
+
], _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, [
|
|
213
277
|
"name",
|
|
214
278
|
"value",
|
|
215
279
|
"label",
|
|
@@ -224,7 +288,7 @@ var Switch = /*#__PURE__*/ _react.default.forwardRef(function Switch(_param, ref
|
|
|
224
288
|
"onChange",
|
|
225
289
|
"onFocus",
|
|
226
290
|
"onBlur"
|
|
227
|
-
]);
|
|
291
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
228
292
|
var exactChecked = Boolean(checked !== undefined ? checked : defaultChecked);
|
|
229
293
|
return /*#__PURE__*/ _react.default.createElement(StyledRoot, _object_spread({
|
|
230
294
|
$disabled: disabled
|
|
@@ -21,6 +21,14 @@ var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-
|
|
|
21
21
|
var _hooks = require("../../hooks");
|
|
22
22
|
var _mixins = require("../../mixins");
|
|
23
23
|
var _TabsContext = require("./TabsContext");
|
|
24
|
+
function _array_like_to_array(arr, len) {
|
|
25
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
26
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
27
|
+
return arr2;
|
|
28
|
+
}
|
|
29
|
+
function _array_with_holes(arr) {
|
|
30
|
+
if (Array.isArray(arr)) return arr;
|
|
31
|
+
}
|
|
24
32
|
function _define_property(obj, key, value) {
|
|
25
33
|
if (key in obj) {
|
|
26
34
|
Object.defineProperty(obj, key, {
|
|
@@ -75,6 +83,36 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
75
83
|
}
|
|
76
84
|
return newObj;
|
|
77
85
|
}
|
|
86
|
+
function _iterable_to_array(iter) {
|
|
87
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
88
|
+
}
|
|
89
|
+
function _iterable_to_array_limit(arr, i) {
|
|
90
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
91
|
+
if (_i == null) return;
|
|
92
|
+
var _arr = [];
|
|
93
|
+
var _n = true;
|
|
94
|
+
var _d = false;
|
|
95
|
+
var _s, _e;
|
|
96
|
+
try {
|
|
97
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
98
|
+
_arr.push(_s.value);
|
|
99
|
+
if (i && _arr.length === i) break;
|
|
100
|
+
}
|
|
101
|
+
} catch (err) {
|
|
102
|
+
_d = true;
|
|
103
|
+
_e = err;
|
|
104
|
+
} finally{
|
|
105
|
+
try {
|
|
106
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
107
|
+
} finally{
|
|
108
|
+
if (_d) throw _e;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return _arr;
|
|
112
|
+
}
|
|
113
|
+
function _non_iterable_rest() {
|
|
114
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
115
|
+
}
|
|
78
116
|
function _object_spread(target) {
|
|
79
117
|
for(var i = 1; i < arguments.length; i++){
|
|
80
118
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -92,12 +130,22 @@ function _object_spread(target) {
|
|
|
92
130
|
}
|
|
93
131
|
function _object_without_properties(source, excluded) {
|
|
94
132
|
if (source == null) return {};
|
|
95
|
-
var target =
|
|
96
|
-
|
|
133
|
+
var target = {}, sourceKeys, key, i;
|
|
134
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
135
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
136
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
137
|
+
key = sourceKeys[i];
|
|
138
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
139
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
140
|
+
target[key] = source[key];
|
|
141
|
+
}
|
|
142
|
+
return target;
|
|
143
|
+
}
|
|
144
|
+
target = _object_without_properties_loose(source, excluded);
|
|
97
145
|
if (Object.getOwnPropertySymbols) {
|
|
98
|
-
|
|
99
|
-
for(i = 0; i <
|
|
100
|
-
key =
|
|
146
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
147
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
148
|
+
key = sourceKeys[i];
|
|
101
149
|
if (excluded.indexOf(key) >= 0) continue;
|
|
102
150
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
103
151
|
target[key] = source[key];
|
|
@@ -107,16 +155,29 @@ function _object_without_properties(source, excluded) {
|
|
|
107
155
|
}
|
|
108
156
|
function _object_without_properties_loose(source, excluded) {
|
|
109
157
|
if (source == null) return {};
|
|
110
|
-
var target = {};
|
|
111
|
-
var sourceKeys = Object.keys(source);
|
|
112
|
-
var key, i;
|
|
158
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
113
159
|
for(i = 0; i < sourceKeys.length; i++){
|
|
114
160
|
key = sourceKeys[i];
|
|
115
161
|
if (excluded.indexOf(key) >= 0) continue;
|
|
162
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
116
163
|
target[key] = source[key];
|
|
117
164
|
}
|
|
118
165
|
return target;
|
|
119
166
|
}
|
|
167
|
+
function _sliced_to_array(arr, i) {
|
|
168
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
169
|
+
}
|
|
170
|
+
function _to_array(arr) {
|
|
171
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
172
|
+
}
|
|
173
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
174
|
+
if (!o) return;
|
|
175
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
176
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
177
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
178
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
179
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
180
|
+
}
|
|
120
181
|
/**
|
|
121
182
|
* Без этого спана баг - контент (например, иконка)
|
|
122
183
|
* сжимался в угоду текстового контента,
|
|
@@ -162,13 +223,16 @@ var StyledTabItem = _styledcomponents.default.div.withConfig({
|
|
|
162
223
|
"padding-top:var(--tab-item-padding-y-reduced);padding-bottom:var(--tab-item-padding-y-reduced);"
|
|
163
224
|
]);
|
|
164
225
|
});
|
|
165
|
-
var TabItem = /*#__PURE__*/ (0, _react.forwardRef)(function TabItem(
|
|
166
|
-
var
|
|
226
|
+
var TabItem = /*#__PURE__*/ (0, _react.forwardRef)(function TabItem(_0, _1) {
|
|
227
|
+
var _ref = [
|
|
228
|
+
_0,
|
|
229
|
+
_1
|
|
230
|
+
], _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, [
|
|
167
231
|
"children",
|
|
168
232
|
"contentLeft",
|
|
169
233
|
"isActive",
|
|
170
234
|
"role"
|
|
171
|
-
]);
|
|
235
|
+
]), _rest1 = _sliced_to_array(_rest, 1), outerRef = _rest1[0];
|
|
172
236
|
var innerRef = (0, _react.useRef)(null);
|
|
173
237
|
var ref = (0, _hooks.useForkRef)(outerRef, innerRef);
|
|
174
238
|
var refs = (0, _react.useContext)(_TabsContext.TabsContext);
|
package/components/Tabs/Tabs.js
CHANGED
|
@@ -23,6 +23,14 @@ var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
|
23
23
|
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
|
|
24
24
|
var _mixins = require("../../mixins");
|
|
25
25
|
var _TabItem = require("./TabItem");
|
|
26
|
+
function _array_like_to_array(arr, len) {
|
|
27
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
28
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
29
|
+
return arr2;
|
|
30
|
+
}
|
|
31
|
+
function _array_with_holes(arr) {
|
|
32
|
+
if (Array.isArray(arr)) return arr;
|
|
33
|
+
}
|
|
26
34
|
function _define_property(obj, key, value) {
|
|
27
35
|
if (key in obj) {
|
|
28
36
|
Object.defineProperty(obj, key, {
|
|
@@ -82,6 +90,36 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
82
90
|
}
|
|
83
91
|
return newObj;
|
|
84
92
|
}
|
|
93
|
+
function _iterable_to_array(iter) {
|
|
94
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
95
|
+
}
|
|
96
|
+
function _iterable_to_array_limit(arr, i) {
|
|
97
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
98
|
+
if (_i == null) return;
|
|
99
|
+
var _arr = [];
|
|
100
|
+
var _n = true;
|
|
101
|
+
var _d = false;
|
|
102
|
+
var _s, _e;
|
|
103
|
+
try {
|
|
104
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
105
|
+
_arr.push(_s.value);
|
|
106
|
+
if (i && _arr.length === i) break;
|
|
107
|
+
}
|
|
108
|
+
} catch (err) {
|
|
109
|
+
_d = true;
|
|
110
|
+
_e = err;
|
|
111
|
+
} finally{
|
|
112
|
+
try {
|
|
113
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
114
|
+
} finally{
|
|
115
|
+
if (_d) throw _e;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return _arr;
|
|
119
|
+
}
|
|
120
|
+
function _non_iterable_rest() {
|
|
121
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
122
|
+
}
|
|
85
123
|
function _object_spread(target) {
|
|
86
124
|
for(var i = 1; i < arguments.length; i++){
|
|
87
125
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -99,12 +137,22 @@ function _object_spread(target) {
|
|
|
99
137
|
}
|
|
100
138
|
function _object_without_properties(source, excluded) {
|
|
101
139
|
if (source == null) return {};
|
|
102
|
-
var target =
|
|
103
|
-
|
|
140
|
+
var target = {}, sourceKeys, key, i;
|
|
141
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
142
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
143
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
144
|
+
key = sourceKeys[i];
|
|
145
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
146
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
147
|
+
target[key] = source[key];
|
|
148
|
+
}
|
|
149
|
+
return target;
|
|
150
|
+
}
|
|
151
|
+
target = _object_without_properties_loose(source, excluded);
|
|
104
152
|
if (Object.getOwnPropertySymbols) {
|
|
105
|
-
|
|
106
|
-
for(i = 0; i <
|
|
107
|
-
key =
|
|
153
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
154
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
155
|
+
key = sourceKeys[i];
|
|
108
156
|
if (excluded.indexOf(key) >= 0) continue;
|
|
109
157
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
110
158
|
target[key] = source[key];
|
|
@@ -114,16 +162,29 @@ function _object_without_properties(source, excluded) {
|
|
|
114
162
|
}
|
|
115
163
|
function _object_without_properties_loose(source, excluded) {
|
|
116
164
|
if (source == null) return {};
|
|
117
|
-
var target = {};
|
|
118
|
-
var sourceKeys = Object.keys(source);
|
|
119
|
-
var key, i;
|
|
165
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
120
166
|
for(i = 0; i < sourceKeys.length; i++){
|
|
121
167
|
key = sourceKeys[i];
|
|
122
168
|
if (excluded.indexOf(key) >= 0) continue;
|
|
169
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
123
170
|
target[key] = source[key];
|
|
124
171
|
}
|
|
125
172
|
return target;
|
|
126
173
|
}
|
|
174
|
+
function _sliced_to_array(arr, i) {
|
|
175
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
176
|
+
}
|
|
177
|
+
function _to_array(arr) {
|
|
178
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
179
|
+
}
|
|
180
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
181
|
+
if (!o) return;
|
|
182
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
183
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
184
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
185
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
186
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
187
|
+
}
|
|
127
188
|
var StyledTabs = _styledcomponents.default.div.withConfig({
|
|
128
189
|
displayName: "Tabs__StyledTabs",
|
|
129
190
|
componentId: "sc-c62b2a-0"
|
|
@@ -165,13 +226,16 @@ var StyledWrapper = _styledcomponents.default.div.withConfig({
|
|
|
165
226
|
"cursor:not-allowed;"
|
|
166
227
|
]);
|
|
167
228
|
});
|
|
168
|
-
var Tabs = /*#__PURE__*/ _react.default.forwardRef(function(
|
|
169
|
-
var
|
|
229
|
+
var Tabs = /*#__PURE__*/ _react.default.forwardRef(function(_0, _1) {
|
|
230
|
+
var _ref = [
|
|
231
|
+
_0,
|
|
232
|
+
_1
|
|
233
|
+
], _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, [
|
|
170
234
|
"role",
|
|
171
235
|
"as",
|
|
172
236
|
"children",
|
|
173
237
|
"stretch"
|
|
174
|
-
]);
|
|
238
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
175
239
|
return /*#__PURE__*/ _react.default.createElement(StyledWrapper, _object_spread({
|
|
176
240
|
stretch: stretch
|
|
177
241
|
}, rest), /*#__PURE__*/ _react.default.createElement(StyledTabs, {
|
|
@@ -13,6 +13,14 @@ var _hooks = require("../../hooks");
|
|
|
13
13
|
var _TabsContext = require("./TabsContext");
|
|
14
14
|
var _Tabs = require("./Tabs");
|
|
15
15
|
var _TabItem = require("./TabItem");
|
|
16
|
+
function _array_like_to_array(arr, len) {
|
|
17
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
18
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
19
|
+
return arr2;
|
|
20
|
+
}
|
|
21
|
+
function _array_with_holes(arr) {
|
|
22
|
+
if (Array.isArray(arr)) return arr;
|
|
23
|
+
}
|
|
16
24
|
function _define_property(obj, key, value) {
|
|
17
25
|
if (key in obj) {
|
|
18
26
|
Object.defineProperty(obj, key, {
|
|
@@ -67,6 +75,36 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
67
75
|
}
|
|
68
76
|
return newObj;
|
|
69
77
|
}
|
|
78
|
+
function _iterable_to_array(iter) {
|
|
79
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
80
|
+
}
|
|
81
|
+
function _iterable_to_array_limit(arr, i) {
|
|
82
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
83
|
+
if (_i == null) return;
|
|
84
|
+
var _arr = [];
|
|
85
|
+
var _n = true;
|
|
86
|
+
var _d = false;
|
|
87
|
+
var _s, _e;
|
|
88
|
+
try {
|
|
89
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
90
|
+
_arr.push(_s.value);
|
|
91
|
+
if (i && _arr.length === i) break;
|
|
92
|
+
}
|
|
93
|
+
} catch (err) {
|
|
94
|
+
_d = true;
|
|
95
|
+
_e = err;
|
|
96
|
+
} finally{
|
|
97
|
+
try {
|
|
98
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
99
|
+
} finally{
|
|
100
|
+
if (_d) throw _e;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return _arr;
|
|
104
|
+
}
|
|
105
|
+
function _non_iterable_rest() {
|
|
106
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
107
|
+
}
|
|
70
108
|
function _object_spread(target) {
|
|
71
109
|
for(var i = 1; i < arguments.length; i++){
|
|
72
110
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -84,12 +122,22 @@ function _object_spread(target) {
|
|
|
84
122
|
}
|
|
85
123
|
function _object_without_properties(source, excluded) {
|
|
86
124
|
if (source == null) return {};
|
|
87
|
-
var target =
|
|
88
|
-
|
|
125
|
+
var target = {}, sourceKeys, key, i;
|
|
126
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
127
|
+
sourceKeys = Reflect.ownKeys(source);
|
|
128
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
129
|
+
key = sourceKeys[i];
|
|
130
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
131
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
132
|
+
target[key] = source[key];
|
|
133
|
+
}
|
|
134
|
+
return target;
|
|
135
|
+
}
|
|
136
|
+
target = _object_without_properties_loose(source, excluded);
|
|
89
137
|
if (Object.getOwnPropertySymbols) {
|
|
90
|
-
|
|
91
|
-
for(i = 0; i <
|
|
92
|
-
key =
|
|
138
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
139
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
140
|
+
key = sourceKeys[i];
|
|
93
141
|
if (excluded.indexOf(key) >= 0) continue;
|
|
94
142
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
95
143
|
target[key] = source[key];
|
|
@@ -99,16 +147,29 @@ function _object_without_properties(source, excluded) {
|
|
|
99
147
|
}
|
|
100
148
|
function _object_without_properties_loose(source, excluded) {
|
|
101
149
|
if (source == null) return {};
|
|
102
|
-
var target = {};
|
|
103
|
-
var sourceKeys = Object.keys(source);
|
|
104
|
-
var key, i;
|
|
150
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
105
151
|
for(i = 0; i < sourceKeys.length; i++){
|
|
106
152
|
key = sourceKeys[i];
|
|
107
153
|
if (excluded.indexOf(key) >= 0) continue;
|
|
154
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
108
155
|
target[key] = source[key];
|
|
109
156
|
}
|
|
110
157
|
return target;
|
|
111
158
|
}
|
|
159
|
+
function _sliced_to_array(arr, i) {
|
|
160
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
161
|
+
}
|
|
162
|
+
function _to_array(arr) {
|
|
163
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
164
|
+
}
|
|
165
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
166
|
+
if (!o) return;
|
|
167
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
168
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
169
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
170
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
171
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
172
|
+
}
|
|
112
173
|
var Keys = /*#__PURE__*/ function(Keys) {
|
|
113
174
|
Keys[Keys["end"] = 35] = "end";
|
|
114
175
|
Keys[Keys["home"] = 36] = "home";
|
|
@@ -119,13 +180,16 @@ var Keys = /*#__PURE__*/ function(Keys) {
|
|
|
119
180
|
function createTabsController() {
|
|
120
181
|
var ListComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _Tabs.Tabs, ItemComponent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _TabItem.TabItem;
|
|
121
182
|
// eslint-disable-next-line prefer-arrow-callback
|
|
122
|
-
return /*#__PURE__*/ (0, _react.forwardRef)(function TabsController(
|
|
123
|
-
var
|
|
183
|
+
return /*#__PURE__*/ (0, _react.forwardRef)(function TabsController(_0, _1) {
|
|
184
|
+
var _ref = [
|
|
185
|
+
_0,
|
|
186
|
+
_1
|
|
187
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), items = _ref2.items, index = _ref2.index, autoscroll = _ref2.autoscroll, onIndexChange = _ref2.onIndexChange, rest = _object_without_properties(_ref2, [
|
|
124
188
|
"items",
|
|
125
189
|
"index",
|
|
126
190
|
"autoscroll",
|
|
127
191
|
"onIndexChange"
|
|
128
|
-
]);
|
|
192
|
+
]), _rest1 = _sliced_to_array(_rest, 1), outerRef = _rest1[0];
|
|
129
193
|
var disabled = rest.disabled;
|
|
130
194
|
var refs = (0, _react.useMemo)(function() {
|
|
131
195
|
return new _TabsContext.TabItemRefs();
|
|
@@ -59,7 +59,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
59
59
|
}
|
|
60
60
|
return newObj;
|
|
61
61
|
}
|
|
62
|
-
var applyTextAreaCssProperties = function(param) {
|
|
62
|
+
var applyTextAreaCssProperties = function applyTextAreaCssProperties(param) {
|
|
63
63
|
var height = param.height, width = param.width;
|
|
64
64
|
var computedHeight = !Number.isNaN(Number(height)) ? "".concat(height, "rem") : height;
|
|
65
65
|
var computedWidth = !Number.isNaN(Number(width)) ? "".concat(width, "rem") : width;
|
|
@@ -41,7 +41,7 @@ var StyledContent = _styledcomponents.default.div.withConfig({
|
|
|
41
41
|
})([
|
|
42
42
|
"display:flex;align-items:center;margin-right:0.5rem;"
|
|
43
43
|
]);
|
|
44
|
-
var Toast = function(param) {
|
|
44
|
+
var Toast = function Toast(param) {
|
|
45
45
|
var _param_role = param.role, role = _param_role === void 0 ? 'status' : _param_role, text = param.text, contentLeft = param.contentLeft;
|
|
46
46
|
var ariaLive = 'polite';
|
|
47
47
|
var ariaAtomic = false;
|