@pronto-tools-and-more/components 10.23.0 → 10.25.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -668,6 +668,29 @@ var PublicationToggle = () => {
668
668
  return /* @__PURE__ */ React.createElement("div", { className: "PublicationToggle" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
669
669
  };
670
670
 
671
+ // src/parts/ScrollToTop/ScrollToTop.tsx
672
+ function ScrollToTop() {
673
+ return /* @__PURE__ */ React.createElement("div", { className: "ScrollToTop" }, /* @__PURE__ */ React.createElement(
674
+ JsonComponent,
675
+ {
676
+ json: {
677
+ content: [
678
+ {
679
+ tag: "button",
680
+ type: "html",
681
+ class: "scroll-top",
682
+ attributes: {
683
+ onclick: "window.scroll({ top: 0, left: 0, behavior: 'smooth' });"
684
+ },
685
+ content: "<div class='MaskIcon MaskIconCaretUp' />"
686
+ }
687
+ ],
688
+ type: "section"
689
+ }
690
+ }
691
+ ));
692
+ }
693
+
671
694
  // src/parts/SearchField/SearchField.tsx
672
695
  var SearchField = ({
673
696
  placeholder
@@ -971,6 +994,7 @@ export {
971
994
  MenuItems,
972
995
  PostContentBody,
973
996
  PublicationToggle,
997
+ ScrollToTop,
974
998
  SearchField,
975
999
  SearchHeaderSelect,
976
1000
  SearchHeaderToggle,
@@ -32,6 +32,7 @@ export * from "../MaskIcon/MaskIcon.tsx";
32
32
  export * from "../MenuItems/MenuItems.tsx";
33
33
  export * from "../PostContentBody/PostContentBody.tsx";
34
34
  export * from "../PublicationToggle/PublicationToggle.tsx";
35
+ export * from "../ScrollToTop/ScrollToTop.tsx";
35
36
  export * from "../SearchField/SearchField.tsx";
36
37
  export * from "../SearchHeaderSelect/SearchHeaderSelect.tsx";
37
38
  export * from "../SearchHeaderToggle/SearchHeaderToggle.tsx";
@@ -0,0 +1 @@
1
+ export declare function ScrollToTop(): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.23.0",
3
+ "version": "10.25.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -16,7 +16,7 @@
16
16
  "author": "",
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
- "@types/node": "^22.9.1",
19
+ "@types/node": "^22.10.0",
20
20
  "@types/react": "^18.3.12",
21
21
  "esbuild": "^0.24.0",
22
22
  "react": "^18.3.1",