@smart-react-components/ui 2.0.6 → 2.0.8
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/FixedBox/index.js +1 -5
- package/package.json +7 -7
package/FixedBox/index.js
CHANGED
|
@@ -27,11 +27,7 @@ const FixedBox = ({ afterHide, afterShow, beforeHide, beforeShow, breakpoint = '
|
|
|
27
27
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
28
28
|
react_1.default.cloneElement(children[0], { ref: (_a = children[0].ref) !== null && _a !== void 0 ? _a : triggerEl }),
|
|
29
29
|
react_1.default.createElement(CSSTransition_1.default, { afterHide: afterHide, afterShow: afterShow, beforeHide: beforeHide, beforeShow: handleBeforeShow, className: transitionClassName !== null && transitionClassName !== void 0 ? transitionClassName : 'src-fixed-box', duration: transitionDuration !== null && transitionDuration !== void 0 ? transitionDuration : theme.$.transition.fixedBoxDuration, hasHideAnimation: hasHideAnimation, hasShowAnimation: hasShowAnimation, status: getStatus() },
|
|
30
|
-
react_1.default.createElement(Overlay_1.default, { breakpoint: triggerInteraction & types_1.TriggerInteraction.RIGHT_CLICK ? null : breakpoint,
|
|
31
|
-
as: OverlayElement_1.default,
|
|
32
|
-
duration: transitionDuration !== null && transitionDuration !== void 0 ? transitionDuration : theme.$.transition.fixedBoxDuration,
|
|
33
|
-
isDisplayedWhenBreakpointNull: triggerInteraction & types_1.TriggerInteraction.RIGHT_CLICK,
|
|
34
|
-
}, hasBackground: !(triggerInteraction & types_1.TriggerInteraction.RIGHT_CLICK) },
|
|
30
|
+
react_1.default.createElement(Overlay_1.default, { breakpoint: triggerInteraction & types_1.TriggerInteraction.RIGHT_CLICK ? null : breakpoint, hasBackground: !(triggerInteraction & types_1.TriggerInteraction.RIGHT_CLICK), template: react_1.default.createElement(OverlayElement_1.default, { duration: transitionDuration !== null && transitionDuration !== void 0 ? transitionDuration : theme.$.transition.fixedBoxDuration, isDisplayedWhenBreakpointNull: !!(triggerInteraction & types_1.TriggerInteraction.RIGHT_CLICK) }) },
|
|
35
31
|
react_1.default.createElement(FixedBoxElement_1.default, Object.assign({}, elementProps, { breakpoint: breakpoint, ref: boxEl }), children[1])))));
|
|
36
32
|
};
|
|
37
33
|
exports.default = FixedBox;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-react-components/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"description": "SRC UI includes React and Styled components.",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"test": "jest"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@smart-react-components/core": "2.0.
|
|
68
|
-
"@smart-react-components/router": "2.0.
|
|
69
|
-
"@smart-react-components/transition": "2.0.
|
|
67
|
+
"@smart-react-components/core": "2.0.7",
|
|
68
|
+
"@smart-react-components/router": "2.0.6",
|
|
69
|
+
"@smart-react-components/transition": "2.0.7",
|
|
70
70
|
"@testing-library/react": "13.4.0",
|
|
71
71
|
"@types/jest": "29.0.1",
|
|
72
72
|
"@types/react": "18.0.19",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"typescript": "4.8.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@smart-react-components/core": "^2.0.
|
|
87
|
-
"@smart-react-components/router": "^2.0.
|
|
88
|
-
"@smart-react-components/transition": "^2.0.
|
|
86
|
+
"@smart-react-components/core": "^2.0.7",
|
|
87
|
+
"@smart-react-components/router": "^2.0.6",
|
|
88
|
+
"@smart-react-components/transition": "^2.0.7",
|
|
89
89
|
"react": "^18.2.0",
|
|
90
90
|
"react-dom": "^18.2.0",
|
|
91
91
|
"styled-components": "^5.3.5"
|