jclib-ui 1.0.44 → 1.0.45
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.
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
declare function ButtonTop({ smooth }: {
|
|
1
|
+
declare function ButtonTop({ smooth, center }: {
|
|
2
2
|
smooth: any;
|
|
3
|
+
center: any;
|
|
3
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare namespace ButtonTop {
|
|
5
6
|
namespace defaultProps {
|
|
6
7
|
const smooth: boolean;
|
|
8
|
+
const center: boolean;
|
|
7
9
|
}
|
|
8
10
|
}
|
|
9
11
|
export default ButtonTop;
|
package/dist/jclib-ui.es.js
CHANGED
|
@@ -6113,7 +6113,7 @@ const Container$5 = styled.div`
|
|
|
6113
6113
|
|
|
6114
6114
|
position: fixed;
|
|
6115
6115
|
bottom: 8px;
|
|
6116
|
-
right: 16px;
|
|
6116
|
+
right: ${({ center }) => center ? "calc(50vw - 24px)" : "16px"};
|
|
6117
6117
|
|
|
6118
6118
|
transition: all ease 0.5s;
|
|
6119
6119
|
cursor: pointer;
|
|
@@ -6139,9 +6139,10 @@ const Container$5 = styled.div`
|
|
|
6139
6139
|
}
|
|
6140
6140
|
`;
|
|
6141
6141
|
ButtonTop.defaultProps = {
|
|
6142
|
-
smooth: false
|
|
6142
|
+
smooth: false,
|
|
6143
|
+
center: false
|
|
6143
6144
|
};
|
|
6144
|
-
function ButtonTop({ smooth }) {
|
|
6145
|
+
function ButtonTop({ smooth, center }) {
|
|
6145
6146
|
const [visible, setVisible] = useState(false);
|
|
6146
6147
|
function handleClick() {
|
|
6147
6148
|
var _a;
|
|
@@ -6171,6 +6172,7 @@ function ButtonTop({ smooth }) {
|
|
|
6171
6172
|
visible: showBtnTop,
|
|
6172
6173
|
onClick: handleClick,
|
|
6173
6174
|
className: "pulsate-bck",
|
|
6175
|
+
center,
|
|
6174
6176
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fa-solid fa-arrow-up" })
|
|
6175
6177
|
}
|
|
6176
6178
|
) });
|