@pronto-tools-and-more/components 6.23.0 → 6.24.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -4,20 +4,6 @@ var JsonComponent = ({ json }) => {
4
4
  return node;
5
5
  };
6
6
 
7
- // src/parts/Link/Link.tsx
8
- var Link = () => {
9
- const json = {};
10
- return /* @__PURE__ */ React.createElement(JsonComponent, { json });
11
- };
12
-
13
- // src/parts/Login/Login.tsx
14
- var Login = () => {
15
- const json = {
16
- type: "login"
17
- };
18
- return /* @__PURE__ */ React.createElement(JsonComponent, { json });
19
- };
20
-
21
7
  // src/parts/MenuItems/MenuItems.tsx
22
8
  var MenuItems = ({ menuName }) => {
23
9
  const json = {
@@ -35,6 +21,29 @@ var MenuItems = ({ menuName }) => {
35
21
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
36
22
  };
37
23
 
24
+ // src/parts/FooterItemsList/FooterItemsList.tsx
25
+ var FooterItemsList = ({
26
+ className,
27
+ menuName = ""
28
+ } = {}) => {
29
+ const fullClassName = `FooterItemsList ${className}`;
30
+ return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
31
+ };
32
+
33
+ // src/parts/Link/Link.tsx
34
+ var Link = () => {
35
+ const json = {};
36
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
37
+ };
38
+
39
+ // src/parts/Login/Login.tsx
40
+ var Login = () => {
41
+ const json = {
42
+ type: "login"
43
+ };
44
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
45
+ };
46
+
38
47
  // src/parts/PostContentBody/PostContentBody.tsx
39
48
  var PostContentBody = () => {
40
49
  const json = {
@@ -67,17 +76,18 @@ var SearchField = () => {
67
76
  };
68
77
 
69
78
  // src/parts/SearchLink/SearchLink.tsx
70
- var SearchLink = () => {
79
+ var SearchLink = ({ message } = {}) => {
71
80
  const json = {
72
81
  type: "button",
73
82
  tap: {
74
83
  type: "navigate",
75
84
  path: "suche"
76
85
  },
86
+ message,
77
87
  buttonClass: "search",
78
88
  id: "button-search"
79
89
  };
80
- return /* @__PURE__ */ React.createElement(JsonComponent, { json });
90
+ return /* @__PURE__ */ React.createElement("div", { className: "SearchLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
81
91
  };
82
92
 
83
93
  // src/parts/SearchResults/SearchResults.tsx
@@ -187,9 +197,10 @@ var SearchResults = () => {
187
197
  type: "openContent"
188
198
  }
189
199
  };
190
- return /* @__PURE__ */ React.createElement(JsonComponent, { json });
200
+ return /* @__PURE__ */ React.createElement("div", { className: "SearchResults" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
191
201
  };
192
202
  export {
203
+ FooterItemsList,
193
204
  JsonComponent,
194
205
  Link,
195
206
  Login,
@@ -1,3 +1,4 @@
1
+ export * from "../FooterItemsList/FooterItemsList.tsx";
1
2
  export * from "../JsonComponent/JsonComponent.tsx";
2
3
  export * from "../Link/Link.tsx";
3
4
  export * from "../Login/Login.tsx";
@@ -0,0 +1,4 @@
1
+ export declare const FooterItemsList: ({ className, menuName, }?: {
2
+ className?: string;
3
+ menuName?: string;
4
+ }) => import("react").JSX.Element;
@@ -1 +1,3 @@
1
- export declare const SearchLink: () => import("react").JSX.Element;
1
+ export declare const SearchLink: ({ message }?: {
2
+ message?: string;
3
+ }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.23.0",
3
+ "version": "6.24.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,3 +1,4 @@
1
+ export * from "../FooterItemsList/FooterItemsList.tsx";
1
2
  export * from "../JsonComponent/JsonComponent.tsx";
2
3
  export * from "../Link/Link.tsx";
3
4
  export * from "../Login/Login.tsx";
@@ -0,0 +1,13 @@
1
+ import { MenuItems } from "../MenuItems/MenuItems.tsx";
2
+
3
+ export const FooterItemsList = ({
4
+ className,
5
+ menuName = "",
6
+ }: { className?: string; menuName?: string } = {}) => {
7
+ const fullClassName = `FooterItemsList ${className}`;
8
+ return (
9
+ <div className={fullClassName}>
10
+ <MenuItems menuName={menuName} />
11
+ </div>
12
+ );
13
+ };
@@ -1,14 +1,19 @@
1
1
  import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
2
 
3
- export const SearchLink = () => {
3
+ export const SearchLink = ({ message }: { message?: string } = {}) => {
4
4
  const json = {
5
5
  type: "button",
6
6
  tap: {
7
7
  type: "navigate",
8
8
  path: "suche",
9
9
  },
10
+ message,
10
11
  buttonClass: "search",
11
12
  id: "button-search",
12
13
  };
13
- return <JsonComponent json={json} />;
14
+ return (
15
+ <div className="SearchLink">
16
+ <JsonComponent json={json} />
17
+ </div>
18
+ );
14
19
  };
@@ -106,5 +106,9 @@ export const SearchResults = () => {
106
106
  type: "openContent",
107
107
  },
108
108
  };
109
- return <JsonComponent json={json} />;
109
+ return (
110
+ <div className="SearchResults">
111
+ <JsonComponent json={json} />
112
+ </div>
113
+ );
110
114
  };