@salutejs/plasma-core 1.227.0-next-sbcom.0 → 1.227.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/__helpers/IconPlaceholder.js +6 -9
- package/__helpers/index.js +1 -1
- package/collectPackageInfo.js +4 -4
- package/components/Badge/Badge.js +30 -103
- package/components/Badge/index.js +1 -1
- package/components/Basebox/Basebox.js +33 -42
- package/components/Basebox/index.js +1 -1
- package/components/Button/Button.js +28 -67
- package/components/Button/Button.mixins.js +22 -76
- package/components/Button/Button.props.js +5 -5
- package/components/Button/createButton.js +14 -145
- package/components/Button/index.js +4 -4
- package/components/Card/Card.js +34 -162
- package/components/Card/CardBody.js +4 -4
- package/components/Card/CardContent.js +14 -23
- package/components/Card/CardMedia.js +20 -91
- package/components/Card/CardPrice.js +18 -60
- package/components/Card/CardTypography.js +43 -52
- package/components/Card/index.js +5 -5
- package/components/Carousel/Carousel.js +46 -64
- package/components/Carousel/CarouselItem.js +21 -93
- package/components/Carousel/hooks.js +62 -121
- package/components/Carousel/index.js +3 -3
- package/components/Carousel/utils.js +59 -73
- package/components/Fade/Fade.js +6 -9
- package/components/Fade/index.js +1 -1
- package/components/Field/Field.js +48 -63
- package/components/Field/Field.statuses.js +3 -3
- package/components/Field/index.js +2 -2
- package/components/Image/Image.js +34 -115
- package/components/Image/index.js +1 -1
- package/components/Input/Input.js +7 -7
- package/components/Input/Input.mixins.js +9 -12
- package/components/Input/index.js +1 -1
- package/components/ModalBase/ModalBase.js +22 -100
- package/components/ModalBase/ModalBaseContext.js +6 -9
- package/components/ModalBase/ModalOverlay.js +28 -111
- package/components/ModalBase/hooks.js +15 -43
- package/components/ModalBase/index.js +2 -2
- package/components/PaginationDots/PaginationDot.js +11 -17
- package/components/PaginationDots/PaginationDots.js +4 -7
- package/components/PaginationDots/index.js +3 -3
- package/components/PaginationDots/usePaginationDots.js +10 -11
- package/components/Popup/Popup.js +52 -205
- package/components/Popup/index.js +1 -1
- package/components/PopupBase/PopupBase.js +35 -169
- package/components/PopupBase/PopupBaseContext.js +26 -86
- package/components/PopupBase/PopupBaseRoot.js +31 -169
- package/components/PopupBase/hooks.js +23 -97
- package/components/PopupBase/index.js +3 -3
- package/components/PopupBase/utils.js +32 -78
- package/components/Price/Price.js +15 -90
- package/components/Price/index.js +1 -1
- package/components/RadioGroup/RadioGroup.js +6 -127
- package/components/RadioGroup/index.js +1 -1
- package/components/SSRProvider/SSRProvider.js +4 -5
- package/components/SSRProvider/index.js +1 -1
- package/components/Skeleton/LineSkeleton.js +23 -95
- package/components/Skeleton/RectSkeleton.js +20 -93
- package/components/Skeleton/Skeleton.js +2 -2
- package/components/Skeleton/TextSkeleton.js +11 -55
- package/components/Skeleton/index.js +3 -3
- package/components/Slider/Double.js +52 -203
- package/components/Slider/Handle.js +28 -158
- package/components/Slider/Single.js +29 -177
- package/components/Slider/Slider.js +5 -7
- package/components/Slider/SliderBase.js +39 -48
- package/components/Slider/ThumbBase.js +19 -95
- package/components/Slider/index.js +3 -3
- package/components/Slider/utils.js +2 -2
- package/components/Spinner/Spinner.js +28 -100
- package/components/Spinner/SpinnerSvg.js +9 -78
- package/components/Spinner/index.js +1 -1
- package/components/Switch/Switch.js +49 -220
- package/components/Switch/index.js +1 -1
- package/components/Tabs/TabItem.js +33 -168
- package/components/Tabs/Tabs.js +32 -170
- package/components/Tabs/TabsContext.js +12 -42
- package/components/Tabs/createTabsController.js +33 -168
- package/components/Tabs/index.js +4 -4
- package/components/TextArea/TextArea.js +20 -30
- package/components/TextArea/index.js +1 -1
- package/components/TextField/index.js +3 -3
- package/components/Toast/Toast.js +15 -16
- package/components/Toast/ToastContext.js +4 -8
- package/components/Toast/ToastController.js +44 -101
- package/components/Toast/ToastProvider.js +37 -142
- package/components/Toast/index.js +3 -3
- package/components/Toast/useToast.js +6 -6
- package/components/Typography/Body.js +18 -18
- package/components/Typography/Button.js +13 -13
- package/components/Typography/Caption.js +8 -8
- package/components/Typography/Display.js +18 -18
- package/components/Typography/Footnote.js +13 -13
- package/components/Typography/Headline.js +43 -43
- package/components/Typography/Paragraph.js +24 -24
- package/components/Typography/Underline.js +8 -8
- package/es/__helpers/IconPlaceholder.js +5 -8
- package/es/collectPackageInfo.js +3 -3
- package/es/components/Badge/Badge.js +27 -100
- package/es/components/Basebox/Basebox.js +28 -37
- package/es/components/Button/Button.js +24 -63
- package/es/components/Button/Button.mixins.js +19 -73
- package/es/components/Button/Button.props.js +3 -3
- package/es/components/Button/createButton.js +12 -143
- package/es/components/Card/Card.js +29 -157
- package/es/components/Card/CardBody.js +2 -2
- package/es/components/Card/CardContent.js +12 -21
- package/es/components/Card/CardMedia.js +17 -88
- package/es/components/Card/CardPrice.js +13 -55
- package/es/components/Card/CardTypography.js +43 -52
- package/es/components/Carousel/Carousel.js +45 -63
- package/es/components/Carousel/CarouselItem.js +18 -90
- package/es/components/Carousel/hooks.js +58 -117
- package/es/components/Carousel/utils.js +58 -72
- package/es/components/Fade/Fade.js +5 -8
- package/es/components/Field/Field.js +44 -59
- package/es/components/Field/Field.statuses.js +4 -4
- package/es/components/Image/Image.js +31 -112
- package/es/components/Input/Input.js +4 -4
- package/es/components/Input/Input.mixins.js +6 -9
- package/es/components/ModalBase/ModalBase.js +16 -94
- package/es/components/ModalBase/ModalBaseContext.js +6 -9
- package/es/components/ModalBase/ModalOverlay.js +23 -106
- package/es/components/ModalBase/hooks.js +12 -40
- package/es/components/PaginationDots/PaginationDot.js +9 -15
- package/es/components/PaginationDots/PaginationDots.js +3 -6
- package/es/components/PaginationDots/usePaginationDots.js +9 -10
- package/es/components/Popup/Popup.js +48 -201
- package/es/components/PopupBase/PopupBase.js +27 -161
- package/es/components/PopupBase/PopupBaseContext.js +25 -85
- package/es/components/PopupBase/PopupBaseRoot.js +26 -164
- package/es/components/PopupBase/hooks.js +21 -95
- package/es/components/PopupBase/utils.js +31 -77
- package/es/components/Price/Price.js +12 -87
- package/es/components/RadioGroup/RadioGroup.js +5 -126
- package/es/components/SSRProvider/SSRProvider.js +3 -4
- package/es/components/Skeleton/LineSkeleton.js +18 -90
- package/es/components/Skeleton/RectSkeleton.js +16 -89
- package/es/components/Skeleton/Skeleton.js +2 -2
- package/es/components/Skeleton/TextSkeleton.js +7 -51
- package/es/components/Slider/Double.js +49 -200
- package/es/components/Slider/Handle.js +23 -153
- package/es/components/Slider/Single.js +26 -174
- package/es/components/Slider/Slider.js +2 -4
- package/es/components/Slider/SliderBase.js +36 -45
- package/es/components/Slider/ThumbBase.js +16 -92
- package/es/components/Slider/index.js +1 -1
- package/es/components/Slider/utils.js +2 -2
- package/es/components/Spinner/Spinner.js +23 -95
- package/es/components/Spinner/SpinnerSvg.js +8 -77
- package/es/components/Switch/Switch.js +45 -216
- package/es/components/Tabs/TabItem.js +28 -163
- package/es/components/Tabs/Tabs.js +28 -166
- package/es/components/Tabs/TabsContext.js +11 -41
- package/es/components/Tabs/createTabsController.js +28 -163
- package/es/components/TextArea/TextArea.js +18 -28
- package/es/components/Toast/Toast.js +10 -11
- package/es/components/Toast/ToastContext.js +3 -7
- package/es/components/Toast/ToastController.js +38 -95
- package/es/components/Toast/ToastProvider.js +34 -139
- package/es/components/Toast/useToast.js +4 -4
- package/es/components/Typography/Body.js +15 -15
- package/es/components/Typography/Button.js +10 -10
- package/es/components/Typography/Caption.js +5 -5
- package/es/components/Typography/Display.js +15 -15
- package/es/components/Typography/Footnote.js +10 -10
- package/es/components/Typography/Headline.js +40 -40
- package/es/components/Typography/Paragraph.js +21 -21
- package/es/components/Typography/Underline.js +5 -5
- package/es/hocs/withAutoFocus.js +8 -78
- package/es/hocs/withSkeleton.js +5 -10
- package/es/hooks/useDebouncedFunction.js +4 -36
- package/es/hooks/useFocusTrap.js +18 -21
- package/es/hooks/useForkRef.js +3 -3
- package/es/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/es/hooks/useResizeObserver.js +8 -8
- package/es/hooks/useUniqId.js +6 -52
- package/es/mixins/addFocus.js +17 -22
- package/es/mixins/applyDisabled.js +6 -9
- package/es/mixins/applyEllipsis.js +2 -4
- package/es/mixins/applyMaxLines.js +3 -6
- package/es/mixins/applyNoSelect.js +2 -4
- package/es/mixins/applyOutline.js +2 -4
- package/es/mixins/applyRoundness.js +4 -7
- package/es/mixins/applyScrollSnap.js +4 -7
- package/es/mixins/applySkeletonGradient.js +6 -9
- package/es/mixins/applyView.js +2 -5
- package/es/mixins/blur.js +2 -5
- package/es/mixins/shadows.js +1 -1
- package/es/tokens/colors.js +48 -48
- package/es/tokens/typography.js +18 -18
- package/es/utils/__tests__/formatters.test.js +2 -2
- package/es/utils/animatedScrollTo.js +24 -34
- package/es/utils/canUseDOM.js +1 -1
- package/es/utils/extractTextFrom.js +3 -7
- package/es/utils/focusManager.js +40 -47
- package/es/utils/formatCurrency.js +4 -4
- package/es/utils/formatters.js +6 -14
- package/es/utils/react.js +4 -4
- package/es/utils/roundness.js +2 -4
- package/es/utils/scopeTab.js +5 -5
- package/es/utils/setRef.js +1 -1
- package/es/utils/tabbable.js +16 -25
- package/es/utils/toCssSize.js +1 -3
- package/es/utils/transformStyles.js +5 -60
- package/hocs/index.js +2 -2
- package/hocs/withAutoFocus.js +9 -79
- package/hocs/withSkeleton.js +8 -13
- package/hooks/index.js +6 -6
- package/hooks/useDebouncedFunction.js +5 -37
- package/hooks/useFocusTrap.js +22 -25
- package/hooks/useForkRef.js +5 -5
- package/hooks/useIsomorphicLayoutEffect.js +3 -3
- package/hooks/useResizeObserver.js +9 -9
- package/hooks/useUniqId.js +8 -54
- package/mixins/addFocus.js +19 -24
- package/mixins/applyDisabled.js +7 -10
- package/mixins/applyEllipsis.js +3 -5
- package/mixins/applyMaxLines.js +4 -7
- package/mixins/applyNoSelect.js +3 -5
- package/mixins/applyOutline.js +3 -5
- package/mixins/applyRoundness.js +5 -8
- package/mixins/applyScrollSnap.js +5 -8
- package/mixins/applySkeletonGradient.js +8 -11
- package/mixins/applyView.js +3 -6
- package/mixins/blur.js +2 -5
- package/mixins/index.js +11 -11
- package/mixins/shadows.js +1 -1
- package/package.json +13 -18
- package/tokens/colors.js +48 -48
- package/tokens/typography.js +18 -18
- package/utils/__tests__/formatters.test.js +3 -3
- package/utils/animatedScrollTo.js +24 -34
- package/utils/canUseDOM.js +1 -1
- package/utils/extractTextFrom.js +4 -8
- package/utils/focusManager.js +41 -48
- package/utils/formatCurrency.js +4 -4
- package/utils/formatters.js +6 -14
- package/utils/index.js +10 -10
- package/utils/react.js +7 -7
- package/utils/roundness.js +2 -4
- package/utils/scopeTab.js +6 -6
- package/utils/setRef.js +1 -1
- package/utils/tabbable.js +16 -25
- package/utils/toCssSize.js +1 -3
- package/utils/transformStyles.js +5 -60
|
@@ -19,18 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return usePopupBaseContext;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
function _array_like_to_array(arr, len) {
|
|
24
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
25
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
26
|
-
return arr2;
|
|
27
|
-
}
|
|
28
|
-
function _array_with_holes(arr) {
|
|
29
|
-
if (Array.isArray(arr)) return arr;
|
|
30
|
-
}
|
|
31
|
-
function _array_without_holes(arr) {
|
|
32
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
33
|
-
}
|
|
22
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
34
23
|
function _getRequireWildcardCache(nodeInterop) {
|
|
35
24
|
if (typeof WeakMap !== "function") return null;
|
|
36
25
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -72,93 +61,44 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
72
61
|
}
|
|
73
62
|
return newObj;
|
|
74
63
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (_i == null) return;
|
|
81
|
-
var _arr = [];
|
|
82
|
-
var _n = true;
|
|
83
|
-
var _d = false;
|
|
84
|
-
var _s, _e;
|
|
85
|
-
try {
|
|
86
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
87
|
-
_arr.push(_s.value);
|
|
88
|
-
if (i && _arr.length === i) break;
|
|
89
|
-
}
|
|
90
|
-
} catch (err) {
|
|
91
|
-
_d = true;
|
|
92
|
-
_e = err;
|
|
93
|
-
} finally{
|
|
94
|
-
try {
|
|
95
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
96
|
-
} finally{
|
|
97
|
-
if (_d) throw _e;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return _arr;
|
|
101
|
-
}
|
|
102
|
-
function _non_iterable_rest() {
|
|
103
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
104
|
-
}
|
|
105
|
-
function _non_iterable_spread() {
|
|
106
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
107
|
-
}
|
|
108
|
-
function _sliced_to_array(arr, i) {
|
|
109
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
110
|
-
}
|
|
111
|
-
function _to_consumable_array(arr) {
|
|
112
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
113
|
-
}
|
|
114
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
115
|
-
if (!o) return;
|
|
116
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
117
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
118
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
119
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
120
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
121
|
-
}
|
|
122
|
-
var POPOVER_PORTAL_ID = 'plasma-popup-root';
|
|
123
|
-
var items = [];
|
|
124
|
-
var PopupBaseContext = /*#__PURE__*/ (0, _react.createContext)({
|
|
125
|
-
items: items,
|
|
126
|
-
register: function register(_info) {
|
|
64
|
+
const POPOVER_PORTAL_ID = 'plasma-popup-root';
|
|
65
|
+
const items = [];
|
|
66
|
+
const PopupBaseContext = /*#__PURE__*/ (0, _react.createContext)({
|
|
67
|
+
items,
|
|
68
|
+
register (_info) {
|
|
127
69
|
throw new Error('Function not implemented. Add PopupBaseProvider');
|
|
128
70
|
},
|
|
129
|
-
unregister
|
|
71
|
+
unregister (_id) {
|
|
130
72
|
throw new Error('Function not implemented. Add PopupBaseProvider');
|
|
131
73
|
}
|
|
132
74
|
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
var register = function register(info) {
|
|
140
|
-
setItems(_to_consumable_array(items).concat([
|
|
75
|
+
const usePopupBaseContext = ()=>(0, _react.useContext)(PopupBaseContext);
|
|
76
|
+
const PopupBaseProvider = ({ children })=>{
|
|
77
|
+
const [items, setItems] = (0, _react.useState)([]);
|
|
78
|
+
const register = (info)=>{
|
|
79
|
+
setItems([
|
|
80
|
+
...items,
|
|
141
81
|
info
|
|
142
|
-
])
|
|
82
|
+
]);
|
|
143
83
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return id === item.id;
|
|
147
|
-
});
|
|
84
|
+
const unregister = (id)=>{
|
|
85
|
+
const index = items.findIndex((item)=>id === item.id);
|
|
148
86
|
if (index === -1) {
|
|
149
87
|
return;
|
|
150
88
|
}
|
|
151
89
|
items.splice(index, 1);
|
|
152
|
-
setItems(
|
|
90
|
+
setItems([
|
|
91
|
+
...items
|
|
92
|
+
]);
|
|
153
93
|
};
|
|
154
|
-
|
|
155
|
-
items
|
|
156
|
-
register
|
|
157
|
-
unregister
|
|
94
|
+
const context = {
|
|
95
|
+
items,
|
|
96
|
+
register,
|
|
97
|
+
unregister
|
|
158
98
|
};
|
|
159
|
-
(0, _react.useEffect)(
|
|
160
|
-
return
|
|
161
|
-
|
|
99
|
+
(0, _react.useEffect)(()=>{
|
|
100
|
+
return ()=>{
|
|
101
|
+
const portal = document.createElement('div');
|
|
162
102
|
if (portal && document.body.contains(portal)) {
|
|
163
103
|
document.body.removeChild(portal);
|
|
164
104
|
}
|
|
@@ -16,32 +16,11 @@ _export(exports, {
|
|
|
16
16
|
return PopupBaseRoot;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
}
|
|
32
|
-
function _define_property(obj, key, value) {
|
|
33
|
-
if (key in obj) {
|
|
34
|
-
Object.defineProperty(obj, key, {
|
|
35
|
-
value: value,
|
|
36
|
-
enumerable: true,
|
|
37
|
-
configurable: true,
|
|
38
|
-
writable: true
|
|
39
|
-
});
|
|
40
|
-
} else {
|
|
41
|
-
obj[key] = value;
|
|
42
|
-
}
|
|
43
|
-
return obj;
|
|
44
|
-
}
|
|
19
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
|
+
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
|
|
21
|
+
const _hooks = require("../../hooks");
|
|
22
|
+
const _PopupBaseContext = require("./PopupBaseContext");
|
|
23
|
+
const _utils = require("./utils");
|
|
45
24
|
function _getRequireWildcardCache(nodeInterop) {
|
|
46
25
|
if (typeof WeakMap !== "function") return null;
|
|
47
26
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -83,166 +62,48 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
83
62
|
}
|
|
84
63
|
return newObj;
|
|
85
64
|
}
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
}
|
|
116
|
-
function _object_spread(target) {
|
|
117
|
-
for(var i = 1; i < arguments.length; i++){
|
|
118
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
119
|
-
var ownKeys = Object.keys(source);
|
|
120
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
121
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
122
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
123
|
-
}));
|
|
124
|
-
}
|
|
125
|
-
ownKeys.forEach(function(key) {
|
|
126
|
-
_define_property(target, key, source[key]);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
return target;
|
|
130
|
-
}
|
|
131
|
-
function _object_without_properties(source, excluded) {
|
|
132
|
-
if (source == null) return {};
|
|
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);
|
|
145
|
-
if (Object.getOwnPropertySymbols) {
|
|
146
|
-
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
147
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
148
|
-
key = sourceKeys[i];
|
|
149
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
150
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
151
|
-
target[key] = source[key];
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return target;
|
|
155
|
-
}
|
|
156
|
-
function _object_without_properties_loose(source, excluded) {
|
|
157
|
-
if (source == null) return {};
|
|
158
|
-
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
159
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
160
|
-
key = sourceKeys[i];
|
|
161
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
162
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
163
|
-
target[key] = source[key];
|
|
164
|
-
}
|
|
165
|
-
return target;
|
|
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
|
-
}
|
|
181
|
-
var DEFAULT_Z_INDEX = 9000;
|
|
182
|
-
var PopupBaseView = _styledcomponents.default.div.withConfig({
|
|
65
|
+
const DEFAULT_Z_INDEX = 9000;
|
|
66
|
+
const PopupBaseView = _styledcomponents.default.div.withConfig({
|
|
183
67
|
displayName: "PopupBaseRoot__PopupBaseView",
|
|
184
68
|
componentId: "sc-84dbfbb5-0"
|
|
185
69
|
})([
|
|
186
|
-
|
|
70
|
+
`position:relative;max-width:100%;pointer-events:all;`
|
|
187
71
|
]);
|
|
188
|
-
|
|
72
|
+
const PopupRootContainer = _styledcomponents.default.div.withConfig({
|
|
189
73
|
displayName: "PopupBaseRoot__PopupRootContainer",
|
|
190
74
|
componentId: "sc-84dbfbb5-1"
|
|
191
75
|
})([
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
],
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}, function(param) {
|
|
209
|
-
var placement = param.placement, offset = param.offset;
|
|
210
|
-
return (0, _utils.handlePosition)(placement, offset);
|
|
211
|
-
});
|
|
212
|
-
var PopupBaseRoot = /*#__PURE__*/ _react.default.forwardRef(function(_0, _1) {
|
|
213
|
-
var _ref = [
|
|
214
|
-
_0,
|
|
215
|
-
_1
|
|
216
|
-
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), id = _ref2.id, placement = _ref2.placement, offset = _ref2.offset, frame = _ref2.frame, setVisible = _ref2.setVisible, children = _ref2.children, role = _ref2.role, zIndex = _ref2.zIndex, animationInfo = _ref2.animationInfo, rest = _object_without_properties(_ref2, [
|
|
217
|
-
"id",
|
|
218
|
-
"placement",
|
|
219
|
-
"offset",
|
|
220
|
-
"frame",
|
|
221
|
-
"setVisible",
|
|
222
|
-
"children",
|
|
223
|
-
"role",
|
|
224
|
-
"zIndex",
|
|
225
|
-
"animationInfo"
|
|
226
|
-
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
227
|
-
var contentRef = (0, _react.useRef)(null);
|
|
228
|
-
var innerRef = (0, _hooks.useForkRef)(contentRef, ref);
|
|
229
|
-
var popupController = (0, _PopupBaseContext.usePopupBaseContext)();
|
|
230
|
-
var handleAnimationEnd = (0, _react.useCallback)(function(e) {
|
|
76
|
+
``,
|
|
77
|
+
` `,
|
|
78
|
+
` `,
|
|
79
|
+
`;`
|
|
80
|
+
], ({ frame })=>(0, _styledcomponents.css)([
|
|
81
|
+
`position:`,
|
|
82
|
+
`;`
|
|
83
|
+
], frame === 'document' ? 'fixed' : 'absolute'), ({ zIndex })=>(0, _styledcomponents.css)([
|
|
84
|
+
`z-index:`,
|
|
85
|
+
`;`
|
|
86
|
+
], zIndex || DEFAULT_Z_INDEX), ({ placement, offset })=>(0, _utils.handlePosition)(placement, offset));
|
|
87
|
+
const PopupBaseRoot = /*#__PURE__*/ _react.default.forwardRef(({ id, placement, offset, frame, setVisible, children, role, zIndex, animationInfo, ...rest }, ref)=>{
|
|
88
|
+
const contentRef = (0, _react.useRef)(null);
|
|
89
|
+
const innerRef = (0, _hooks.useForkRef)(contentRef, ref);
|
|
90
|
+
const popupController = (0, _PopupBaseContext.usePopupBaseContext)();
|
|
91
|
+
const handleAnimationEnd = (0, _react.useCallback)((e)=>{
|
|
231
92
|
if (!contentRef || e.target !== contentRef.current) {
|
|
232
93
|
return;
|
|
233
94
|
}
|
|
234
95
|
e.stopPropagation();
|
|
235
|
-
if (animationInfo
|
|
96
|
+
if (animationInfo?.endAnimation) {
|
|
236
97
|
popupController.unregister(id);
|
|
237
98
|
setVisible(false);
|
|
238
99
|
animationInfo.setEndAnimation(false);
|
|
239
100
|
}
|
|
240
101
|
}, [
|
|
241
102
|
popupController.unregister,
|
|
242
|
-
animationInfo
|
|
103
|
+
animationInfo?.endAnimation,
|
|
243
104
|
setVisible
|
|
244
105
|
]);
|
|
245
|
-
return /*#__PURE__*/ _react.default.createElement(PopupRootContainer,
|
|
106
|
+
return /*#__PURE__*/ _react.default.createElement(PopupRootContainer, {
|
|
246
107
|
className: _utils.popupBaseRootClass,
|
|
247
108
|
ref: innerRef,
|
|
248
109
|
placement: placement,
|
|
@@ -250,8 +111,9 @@ var PopupBaseRoot = /*#__PURE__*/ _react.default.forwardRef(function(_0, _1) {
|
|
|
250
111
|
offset: offset,
|
|
251
112
|
zIndex: zIndex,
|
|
252
113
|
onAnimationEnd: handleAnimationEnd,
|
|
253
|
-
onTransitionEnd: handleAnimationEnd
|
|
254
|
-
|
|
114
|
+
onTransitionEnd: handleAnimationEnd,
|
|
115
|
+
...rest
|
|
116
|
+
}, /*#__PURE__*/ _react.default.createElement(PopupBaseView, {
|
|
255
117
|
role: role
|
|
256
118
|
}, children));
|
|
257
119
|
});
|
|
@@ -16,101 +16,26 @@ _export(exports, {
|
|
|
16
16
|
return usePopupAnimation;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return arr2;
|
|
25
|
-
}
|
|
26
|
-
function _array_with_holes(arr) {
|
|
27
|
-
if (Array.isArray(arr)) return arr;
|
|
28
|
-
}
|
|
29
|
-
function _define_property(obj, key, value) {
|
|
30
|
-
if (key in obj) {
|
|
31
|
-
Object.defineProperty(obj, key, {
|
|
32
|
-
value: value,
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
obj[key] = value;
|
|
39
|
-
}
|
|
40
|
-
return obj;
|
|
41
|
-
}
|
|
42
|
-
function _iterable_to_array_limit(arr, i) {
|
|
43
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44
|
-
if (_i == null) return;
|
|
45
|
-
var _arr = [];
|
|
46
|
-
var _n = true;
|
|
47
|
-
var _d = false;
|
|
48
|
-
var _s, _e;
|
|
49
|
-
try {
|
|
50
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
51
|
-
_arr.push(_s.value);
|
|
52
|
-
if (i && _arr.length === i) break;
|
|
53
|
-
}
|
|
54
|
-
} catch (err) {
|
|
55
|
-
_d = true;
|
|
56
|
-
_e = err;
|
|
57
|
-
} finally{
|
|
58
|
-
try {
|
|
59
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
60
|
-
} finally{
|
|
61
|
-
if (_d) throw _e;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return _arr;
|
|
65
|
-
}
|
|
66
|
-
function _non_iterable_rest() {
|
|
67
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
|
-
}
|
|
69
|
-
function _object_spread(target) {
|
|
70
|
-
for(var i = 1; i < arguments.length; i++){
|
|
71
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
72
|
-
var ownKeys = Object.keys(source);
|
|
73
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
74
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
75
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
76
|
-
}));
|
|
77
|
-
}
|
|
78
|
-
ownKeys.forEach(function(key) {
|
|
79
|
-
_define_property(target, key, source[key]);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return target;
|
|
83
|
-
}
|
|
84
|
-
function _sliced_to_array(arr, i) {
|
|
85
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
86
|
-
}
|
|
87
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
88
|
-
if (!o) return;
|
|
89
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
90
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
91
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
92
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
93
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
94
|
-
}
|
|
95
|
-
var usePopupAnimation = function usePopupAnimation() {
|
|
96
|
-
var _useState = _sliced_to_array((0, _react.useState)(false), 2), endAnimation = _useState[0], setEndAnimation = _useState[1];
|
|
97
|
-
var _useState1 = _sliced_to_array((0, _react.useState)(false), 2), endTransition = _useState1[0], setEndTransition = _useState1[1];
|
|
19
|
+
const _react = require("react");
|
|
20
|
+
const _PopupBaseContext = require("./PopupBaseContext");
|
|
21
|
+
const usePopupAnimation = ()=>{
|
|
22
|
+
const [endAnimation, setEndAnimation] = (0, _react.useState)(false);
|
|
23
|
+
const [endTransition, setEndTransition] = (0, _react.useState)(false);
|
|
98
24
|
return {
|
|
99
|
-
endAnimation
|
|
100
|
-
endTransition
|
|
101
|
-
setEndTransition
|
|
102
|
-
setEndAnimation
|
|
25
|
+
endAnimation,
|
|
26
|
+
endTransition,
|
|
27
|
+
setEndTransition,
|
|
28
|
+
setEndAnimation
|
|
103
29
|
};
|
|
104
30
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var animationInfo = usePopupAnimation();
|
|
31
|
+
const usePopup = ({ isOpen, id, popupInfo, withAnimation })=>{
|
|
32
|
+
const [isVisible, setVisible] = (0, _react.useState)(false);
|
|
33
|
+
const popupController = (0, _PopupBaseContext.usePopupBaseContext)();
|
|
34
|
+
const animationInfo = usePopupAnimation();
|
|
110
35
|
// для использования transition в качестве анимации
|
|
111
|
-
(0, _react.useEffect)(
|
|
36
|
+
(0, _react.useEffect)(()=>{
|
|
112
37
|
if (withAnimation && animationInfo) {
|
|
113
|
-
animationInfo.setEndTransition(!isVisible ||
|
|
38
|
+
animationInfo.setEndTransition(!isVisible || animationInfo?.endAnimation);
|
|
114
39
|
}
|
|
115
40
|
}, [
|
|
116
41
|
animationInfo,
|
|
@@ -118,12 +43,13 @@ var usePopup = function usePopup(param) {
|
|
|
118
43
|
isVisible
|
|
119
44
|
]);
|
|
120
45
|
// сначала добавление/удаление из контекста, и только после этого отображение/скрытие
|
|
121
|
-
(0, _react.useEffect)(
|
|
46
|
+
(0, _react.useEffect)(()=>{
|
|
122
47
|
// при первом открытии
|
|
123
48
|
if (isOpen && !isVisible) {
|
|
124
|
-
popupController.register(
|
|
125
|
-
id
|
|
126
|
-
|
|
49
|
+
popupController.register({
|
|
50
|
+
id,
|
|
51
|
+
...popupInfo
|
|
52
|
+
});
|
|
127
53
|
setVisible(true);
|
|
128
54
|
animationInfo.setEndAnimation(false);
|
|
129
55
|
return;
|
|
@@ -146,8 +72,8 @@ var usePopup = function usePopup(param) {
|
|
|
146
72
|
withAnimation
|
|
147
73
|
]);
|
|
148
74
|
return {
|
|
149
|
-
isVisible
|
|
150
|
-
setVisible
|
|
151
|
-
animationInfo
|
|
75
|
+
isVisible,
|
|
76
|
+
setVisible,
|
|
77
|
+
animationInfo
|
|
152
78
|
};
|
|
153
79
|
};
|
|
@@ -28,6 +28,6 @@ _export(exports, {
|
|
|
28
28
|
return _PopupBaseContext.usePopupBaseContext;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const _PopupBaseContext = require("./PopupBaseContext");
|
|
32
|
+
const _PopupBase = require("./PopupBase");
|
|
33
|
+
const _utils = require("./utils");
|
|
@@ -22,77 +22,31 @@ _export(exports, {
|
|
|
22
22
|
return popupBaseRootClass;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (Array.isArray(arr)) return arr;
|
|
33
|
-
}
|
|
34
|
-
function _iterable_to_array_limit(arr, i) {
|
|
35
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
36
|
-
if (_i == null) return;
|
|
37
|
-
var _arr = [];
|
|
38
|
-
var _n = true;
|
|
39
|
-
var _d = false;
|
|
40
|
-
var _s, _e;
|
|
41
|
-
try {
|
|
42
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
43
|
-
_arr.push(_s.value);
|
|
44
|
-
if (i && _arr.length === i) break;
|
|
45
|
-
}
|
|
46
|
-
} catch (err) {
|
|
47
|
-
_d = true;
|
|
48
|
-
_e = err;
|
|
49
|
-
} finally{
|
|
50
|
-
try {
|
|
51
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
52
|
-
} finally{
|
|
53
|
-
if (_d) throw _e;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return _arr;
|
|
57
|
-
}
|
|
58
|
-
function _non_iterable_rest() {
|
|
59
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
60
|
-
}
|
|
61
|
-
function _sliced_to_array(arr, i) {
|
|
62
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
63
|
-
}
|
|
64
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
65
|
-
if (!o) return;
|
|
66
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
67
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
68
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
69
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
70
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
71
|
-
}
|
|
72
|
-
var popupBaseRootClass = 'popup-base-root';
|
|
73
|
-
var endAnimationClass = 'popup-base-end-animation';
|
|
74
|
-
var endTransitionClass = 'popup-base-end-transition';
|
|
75
|
-
var handlePosition = function handlePosition(placement, offset) {
|
|
76
|
-
var x = '0rem';
|
|
77
|
-
var y = '0rem';
|
|
25
|
+
const _styledcomponents = require("styled-components");
|
|
26
|
+
const popupBaseRootClass = 'popup-base-root';
|
|
27
|
+
const endAnimationClass = 'popup-base-end-animation';
|
|
28
|
+
const endTransitionClass = 'popup-base-end-transition';
|
|
29
|
+
const handlePosition = (placement, offset)=>{
|
|
30
|
+
let x = '0rem';
|
|
31
|
+
let y = '0rem';
|
|
78
32
|
if (offset) {
|
|
79
|
-
|
|
80
|
-
x = typeof _x === 'number' ?
|
|
81
|
-
y = typeof _y === 'number' ?
|
|
33
|
+
const [_x, _y] = offset;
|
|
34
|
+
x = typeof _x === 'number' ? `${_x}rem` : _x;
|
|
35
|
+
y = typeof _y === 'number' ? `${_y}rem` : _y;
|
|
82
36
|
}
|
|
83
37
|
if (!placement || placement === 'center') {
|
|
84
38
|
return (0, _styledcomponents.css)([
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
39
|
+
`left:calc(50% + `,
|
|
40
|
+
`);top:calc(50% - `,
|
|
41
|
+
`);transform:translate(-50%,-50%);`
|
|
88
42
|
], x, y);
|
|
89
43
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
placements.forEach(
|
|
44
|
+
let left;
|
|
45
|
+
let right;
|
|
46
|
+
let top;
|
|
47
|
+
let bottom;
|
|
48
|
+
const placements = placement.split('-');
|
|
49
|
+
placements.forEach((placement)=>{
|
|
96
50
|
switch(placement){
|
|
97
51
|
case 'left':
|
|
98
52
|
left = x;
|
|
@@ -110,22 +64,22 @@ var handlePosition = function handlePosition(placement, offset) {
|
|
|
110
64
|
break;
|
|
111
65
|
}
|
|
112
66
|
});
|
|
113
|
-
|
|
114
|
-
|
|
67
|
+
const isCenteredX = left === undefined && right === undefined;
|
|
68
|
+
const isCenteredY = top === undefined && bottom === undefined;
|
|
115
69
|
// информация для переезда в new-hope: не забыть, что styled-component выпилит undefined свойства, а линария нет
|
|
116
70
|
return (0, _styledcomponents.css)([
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
71
|
+
`left:`,
|
|
72
|
+
`;right:`,
|
|
73
|
+
`;top:`,
|
|
74
|
+
`;bottom:`,
|
|
75
|
+
`;`,
|
|
76
|
+
` `,
|
|
77
|
+
``
|
|
124
78
|
], left, right, top, bottom, isCenteredX && (0, _styledcomponents.css)([
|
|
125
|
-
|
|
126
|
-
|
|
79
|
+
`left:calc(50% + `,
|
|
80
|
+
`);transform:translateX(-50%);`
|
|
127
81
|
], x), isCenteredY && (0, _styledcomponents.css)([
|
|
128
|
-
|
|
129
|
-
|
|
82
|
+
`top:calc(50% - `,
|
|
83
|
+
`);transform:translateY(-50%);`
|
|
130
84
|
], y));
|
|
131
85
|
};
|