@salutejs/plasma-new-hope 0.342.0-canary.2336.19502815560.0 → 0.342.0-canary.2342.19537901143.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/cjs/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/cjs/components/Carousel/CarouselOld/CarouselItem.js.map +1 -1
- package/cjs/components/Carousel/CarouselOld/CarouselItem_eduufx.css +1 -0
- package/cjs/components/Sheet/Sheet.js +4 -1
- package/cjs/components/Sheet/Sheet.js.map +1 -1
- package/cjs/components/Sheet/hooks/useSheetSwipe.js +2 -1
- package/cjs/components/Sheet/hooks/useSheetSwipe.js.map +1 -1
- package/cjs/components/Steps/Steps.css +9 -9
- package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/{es/components/Steps/ui/StepItem/StepItem.styles_vom1a1.css → cjs/components/Steps/ui/StepItem/StepItem.styles_b3maer.css} +1 -1
- package/cjs/components/Table/Table.css +12 -12
- package/cjs/components/Table/Table.styles.js +1 -1
- package/cjs/components/Table/Table.styles.js.map +1 -1
- package/{es/components/Table/Table.styles_sl2dfn.css → cjs/components/Table/Table.styles_1jqvkrz.css} +2 -2
- package/cjs/components/Table/ui/Cell/Cell.css +12 -12
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +12 -12
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +12 -12
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +12 -12
- package/cjs/components/Toast/Toast.css +1 -1
- package/cjs/components/Toast/variations/_size/base.js +1 -1
- package/cjs/components/Toast/variations/_size/base.js.map +1 -1
- package/cjs/components/Toast/variations/_size/base_1wa8h75.css +1 -0
- package/cjs/index.css +22 -22
- package/emotion/cjs/components/Carousel/CarouselOld/CarouselItem.js +3 -3
- package/emotion/cjs/components/Sheet/Sheet.js +3 -1
- package/emotion/cjs/components/Sheet/hooks/useSheetSwipe.js +2 -2
- package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +18 -18
- package/emotion/cjs/components/Table/Table.styles.js +25 -25
- package/emotion/cjs/components/Toast/variations/_size/base.js +1 -1
- package/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/emotion/es/components/Carousel/CarouselOld/CarouselItem.js +3 -3
- package/emotion/es/components/Sheet/Sheet.js +3 -1
- package/emotion/es/components/Sheet/hooks/useSheetSwipe.js +2 -2
- package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +18 -18
- package/emotion/es/components/Table/Table.styles.js +25 -25
- package/emotion/es/components/Toast/variations/_size/base.js +1 -1
- package/es/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/es/components/Carousel/CarouselOld/CarouselItem.js.map +1 -1
- package/es/components/Carousel/CarouselOld/CarouselItem_eduufx.css +1 -0
- package/es/components/Sheet/Sheet.js +4 -1
- package/es/components/Sheet/Sheet.js.map +1 -1
- package/es/components/Sheet/hooks/useSheetSwipe.js +2 -1
- package/es/components/Sheet/hooks/useSheetSwipe.js.map +1 -1
- package/es/components/Steps/Steps.css +9 -9
- package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
- package/es/components/Steps/ui/StepItem/StepItem.styles.js +1 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/{cjs/components/Steps/ui/StepItem/StepItem.styles_vom1a1.css → es/components/Steps/ui/StepItem/StepItem.styles_b3maer.css} +1 -1
- package/es/components/Table/Table.css +12 -12
- package/es/components/Table/Table.styles.js +1 -1
- package/es/components/Table/Table.styles.js.map +1 -1
- package/{cjs/components/Table/Table.styles_sl2dfn.css → es/components/Table/Table.styles_1jqvkrz.css} +2 -2
- package/es/components/Table/ui/Cell/Cell.css +12 -12
- package/es/components/Table/ui/EditableCell/EditableCell.css +12 -12
- package/es/components/Table/ui/HeadCell/HeadCell.css +12 -12
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +12 -12
- package/es/components/Toast/Toast.css +1 -1
- package/es/components/Toast/variations/_size/base.js +1 -1
- package/es/components/Toast/variations/_size/base.js.map +1 -1
- package/es/components/Toast/variations/_size/base_1wa8h75.css +1 -0
- package/es/index.css +22 -22
- package/package.json +4 -4
- package/styled-components/cjs/components/Carousel/CarouselOld/CarouselItem.js +2 -2
- package/styled-components/cjs/components/Sheet/Sheet.js +3 -1
- package/styled-components/cjs/components/Sheet/hooks/useSheetSwipe.js +2 -2
- package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +10 -10
- package/styled-components/cjs/components/Table/Table.styles.js +13 -13
- package/styled-components/cjs/components/Toast/variations/_size/base.js +1 -1
- package/styled-components/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/styled-components/es/components/Carousel/CarouselOld/CarouselItem.js +2 -2
- package/styled-components/es/components/Sheet/Sheet.js +3 -1
- package/styled-components/es/components/Sheet/hooks/useSheetSwipe.js +2 -2
- package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +10 -10
- package/styled-components/es/components/Table/Table.styles.js +13 -13
- package/styled-components/es/components/Toast/variations/_size/base.js +1 -1
- package/types/components/Carousel/CarouselOld/CarouselItem.d.ts.map +1 -1
- package/types/components/Sheet/Sheet.d.ts.map +1 -1
- package/types/components/Sheet/Sheet.types.d.ts +6 -0
- package/types/components/Sheet/Sheet.types.d.ts.map +1 -1
- package/types/components/Sheet/hooks/useSheetSwipe.d.ts +1 -0
- package/types/components/Sheet/hooks/useSheetSwipe.d.ts.map +1 -1
- package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
- package/types/components/Table/Table.styles.d.ts.map +1 -1
- package/types/components/Toast/variations/_size/base.d.ts.map +1 -1
- package/cjs/components/Carousel/CarouselOld/CarouselItem_uvoxfy.css +0 -1
- package/cjs/components/Toast/variations/_size/base_r51pt4.css +0 -1
- package/es/components/Carousel/CarouselOld/CarouselItem_uvoxfy.css +0 -1
- package/es/components/Toast/variations/_size/base_r51pt4.css +0 -1
|
@@ -71,15 +71,15 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
71
71
|
return target;
|
|
72
72
|
}
|
|
73
73
|
var StyledItem = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
74
|
-
target: "
|
|
74
|
+
target: "enecxb40",
|
|
75
75
|
label: "StyledItem"
|
|
76
|
-
})("scroll-snap-align:", function(param) {
|
|
76
|
+
})("box-sizing:content-box;scroll-snap-align:", function(param) {
|
|
77
77
|
var scrollSnapAlign = param.scrollSnapAlign;
|
|
78
78
|
return scrollSnapAlign || 'none';
|
|
79
79
|
}, ";scroll-snap-stop:", function(param) {
|
|
80
80
|
var scrollSnapAlign = param.scrollSnapAlign, scrollSnapStop = param.scrollSnapStop;
|
|
81
81
|
return scrollSnapAlign ? scrollSnapStop : 'normal';
|
|
82
|
-
}, ";", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9DYXJvdXNlbC9DYXJvdXNlbE9sZC9DYXJvdXNlbEl0ZW0udHN4Iiwic291cmNlcyI6WyJzcmMtZW1vdGlvbi9jb21wb25lbnRzL0Nhcm91c2VsL0Nhcm91c2VsT2xkL0Nhcm91c2VsSXRlbS50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgU25hcEFsaWduLCBTbmFwU3RvcCwgQ2Fyb3VzZWxJdGVtUHJvcHMgfSBmcm9tICcuL0Nhcm91c2VsLnR5cGVzJztcblxuY29uc3QgU3R5bGVkSXRlbSA9IHN0eWxlZC5kaXY8eyBzY3JvbGxTbmFwQWxpZ246IFNuYXBBbGlnbjsgc2Nyb2xsU25hcFN0b3A6IFNuYXBTdG9wIH0+
|
|
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JyxcbiAgICBjaGlsZHJlbixcbiAgICAuLi5yZXN0XG59KSA9PiB7XG4gICAgcmV0dXJuIChcbiAgICAgICAgPFN0eWxlZEl0ZW1cbiAgICAgICAgICAgIHNjcm9sbFNuYXBBbGlnbj17c2Nyb2xsU25hcEFsaWdufVxuICAgICAgICAgICAgc2Nyb2xsU25hcFN0b3A9e3Njcm9sbFNuYXBTdG9wfVxuICAgICAgICAgICAgcm9sZT1cImdyb3VwXCJcbiAgICAgICAgICAgIGFyaWEtcm9sZWRlc2NyaXB0aW9uPVwic2xpZGVcIlxuICAgICAgICAgICAgey4uLnJlc3R9XG4gICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRJdGVtPlxuICAgICk7XG59O1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUttQiJ9 */");
|
|
83
83
|
var CarouselItem = function(_param) {
|
|
84
84
|
var _param_scrollSnapAlign = _param.scrollSnapAlign, scrollSnapAlign = _param_scrollSnapAlign === void 0 ? 'center' : _param_scrollSnapAlign, _param_scrollSnapStop = _param.scrollSnapStop, scrollSnapStop = _param_scrollSnapStop === void 0 ? 'always' : _param_scrollSnapStop, children = _param.children, rest = _object_without_properties(_param, [
|
|
85
85
|
"scrollSnapAlign",
|
|
@@ -123,7 +123,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
123
123
|
}
|
|
124
124
|
var sheetRoot = function(Root) {
|
|
125
125
|
return /*#__PURE__*/ (0, _react.forwardRef)(function(_param, rootRef) {
|
|
126
|
-
var opened = _param.opened, children = _param.children, onClose = _param.onClose, _param_hasHandle = _param.hasHandle, hasHandle = _param_hasHandle === void 0 ? true : _param_hasHandle, handlePlacement = _param.handlePlacement, contentHeader = _param.contentHeader, _param_isHeaderFixed = _param.isHeaderFixed, isHeaderFixed = _param_isHeaderFixed === void 0 ? false : _param_isHeaderFixed, contentFooter = _param.contentFooter, _param_isFooterFixed = _param.isFooterFixed, isFooterFixed = _param_isFooterFixed === void 0 ? false : _param_isFooterFixed, _param_withOverlay = _param.withOverlay, withOverlay = _param_withOverlay === void 0 ? true : _param_withOverlay, _param_withBlur = _param.withBlur, withBlur = _param_withBlur === void 0 ? false : _param_withBlur, _param_withTransition = _param.withTransition, withTransition = _param_withTransition === void 0 ? true : _param_withTransition, throttleMs = _param.throttleMs, className = _param.className, view = _param.view, restProps = _object_without_properties(_param, [
|
|
126
|
+
var opened = _param.opened, children = _param.children, onClose = _param.onClose, _param_hasHandle = _param.hasHandle, hasHandle = _param_hasHandle === void 0 ? true : _param_hasHandle, handlePlacement = _param.handlePlacement, contentHeader = _param.contentHeader, _param_isHeaderFixed = _param.isHeaderFixed, isHeaderFixed = _param_isHeaderFixed === void 0 ? false : _param_isHeaderFixed, contentFooter = _param.contentFooter, _param_isFooterFixed = _param.isFooterFixed, isFooterFixed = _param_isFooterFixed === void 0 ? false : _param_isFooterFixed, _param_withOverlay = _param.withOverlay, withOverlay = _param_withOverlay === void 0 ? true : _param_withOverlay, _param_withBlur = _param.withBlur, withBlur = _param_withBlur === void 0 ? false : _param_withBlur, _param_withTransition = _param.withTransition, withTransition = _param_withTransition === void 0 ? true : _param_withTransition, _param_hasScrollEvents = _param.hasScrollEvents, hasScrollEvents = _param_hasScrollEvents === void 0 ? true : _param_hasScrollEvents, throttleMs = _param.throttleMs, className = _param.className, view = _param.view, restProps = _object_without_properties(_param, [
|
|
127
127
|
"opened",
|
|
128
128
|
"children",
|
|
129
129
|
"onClose",
|
|
@@ -136,6 +136,7 @@ var sheetRoot = function(Root) {
|
|
|
136
136
|
"withOverlay",
|
|
137
137
|
"withBlur",
|
|
138
138
|
"withTransition",
|
|
139
|
+
"hasScrollEvents",
|
|
139
140
|
"throttleMs",
|
|
140
141
|
"className",
|
|
141
142
|
"view"
|
|
@@ -151,6 +152,7 @@ var sheetRoot = function(Root) {
|
|
|
151
152
|
contentRef: contentRef,
|
|
152
153
|
handleRef: handleRef,
|
|
153
154
|
throttleMs: throttleMs,
|
|
155
|
+
hasScrollEvents: hasScrollEvents,
|
|
154
156
|
onClose: onClose
|
|
155
157
|
});
|
|
156
158
|
var hasHeader = Boolean(contentHeader);
|
|
@@ -71,7 +71,7 @@ var isScrollable = function(element) {
|
|
|
71
71
|
return style.overflow === 'scroll' || style.overflow === 'auto' || style.overflowY === 'scroll' || style.overflowY === 'auto';
|
|
72
72
|
};
|
|
73
73
|
var useSheetSwipe = function(args) {
|
|
74
|
-
var contentWrapperRef = args.contentWrapperRef, contentRef = args.contentRef, handleRef = args.handleRef, onClose = args.onClose, _args_throttleMs = args.throttleMs, throttleMs = _args_throttleMs === void 0 ? THROTTLE_DEFAULT_MS : _args_throttleMs;
|
|
74
|
+
var contentWrapperRef = args.contentWrapperRef, contentRef = args.contentRef, handleRef = args.handleRef, hasScrollEvents = args.hasScrollEvents, onClose = args.onClose, _args_throttleMs = args.throttleMs, throttleMs = _args_throttleMs === void 0 ? THROTTLE_DEFAULT_MS : _args_throttleMs;
|
|
75
75
|
var _useState = _sliced_to_array((0, _react.useState)(true), 2), isTopScroll = _useState[0], setIsTopScroll = _useState[1];
|
|
76
76
|
var isOverscroll = (0, _react.useRef)(false);
|
|
77
77
|
var startY = (0, _react.useRef)(0);
|
|
@@ -81,7 +81,7 @@ var useSheetSwipe = function(args) {
|
|
|
81
81
|
var handleEl = handleRef.current;
|
|
82
82
|
var contentEl = contentRef.current;
|
|
83
83
|
var triggerElement = !isTopScroll ? handleEl : contentWrapperEl;
|
|
84
|
-
if (!triggerElement || !contentEl || !contentWrapperEl) {
|
|
84
|
+
if (!triggerElement || !contentEl || !contentWrapperEl || !hasScrollEvents) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
var nodes = Array.from(contentWrapperEl.querySelectorAll('*'));
|