@pronto-tools-and-more/components 6.24.0 → 6.26.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/dist/main.js +54 -7
- package/dist/parts/Components/Components.d.ts +3 -0
- package/dist/parts/EPaperLink/EPaperLink.d.ts +3 -0
- package/dist/parts/HeaderMenuItems/HeaderMenuItems.d.ts +3 -0
- package/dist/parts/Link/Link.d.ts +4 -1
- package/dist/parts/SubscriptionLink/SubscriptionLink.d.ts +3 -0
- package/package.json +1 -1
- package/src/parts/Components/Components.tsx +3 -0
- package/src/parts/EPaperLink/EPaperLink.tsx +19 -0
- package/src/parts/HeaderMenuItems/HeaderMenuItems.tsx +12 -0
- package/src/parts/Link/Link.tsx +14 -3
- package/src/parts/SearchField/SearchField.tsx +5 -2
- package/src/parts/SubscriptionLink/SubscriptionLink.tsx +19 -0
package/dist/main.js
CHANGED
@@ -4,6 +4,21 @@ var JsonComponent = ({ json }) => {
|
|
4
4
|
return node;
|
5
5
|
};
|
6
6
|
|
7
|
+
// src/parts/EPaperLink/EPaperLink.tsx
|
8
|
+
var EPaperLink = ({ message } = {}) => {
|
9
|
+
const json = {
|
10
|
+
type: "button",
|
11
|
+
tap: {
|
12
|
+
type: "navigate",
|
13
|
+
path: "e-paper"
|
14
|
+
},
|
15
|
+
message,
|
16
|
+
buttonClass: "e-paper",
|
17
|
+
id: "button-epaper"
|
18
|
+
};
|
19
|
+
return /* @__PURE__ */ React.createElement("div", { className: "EPaperLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
20
|
+
};
|
21
|
+
|
7
22
|
// src/parts/MenuItems/MenuItems.tsx
|
8
23
|
var MenuItems = ({ menuName }) => {
|
9
24
|
const json = {
|
@@ -30,10 +45,25 @@ var FooterItemsList = ({
|
|
30
45
|
return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
|
31
46
|
};
|
32
47
|
|
48
|
+
// src/parts/HeaderMenuItems/HeaderMenuItems.tsx
|
49
|
+
var HeaderMenuItems = ({
|
50
|
+
menuName = ""
|
51
|
+
} = {}) => {
|
52
|
+
const fullClassName = `HeaderMenuItems`;
|
53
|
+
return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
|
54
|
+
};
|
55
|
+
|
33
56
|
// src/parts/Link/Link.tsx
|
34
|
-
var Link = () => {
|
35
|
-
const json = {
|
36
|
-
|
57
|
+
var Link = ({ to, message }) => {
|
58
|
+
const json = {
|
59
|
+
type: "button",
|
60
|
+
tap: {
|
61
|
+
type: "navigate",
|
62
|
+
path: to
|
63
|
+
},
|
64
|
+
message
|
65
|
+
};
|
66
|
+
return /* @__PURE__ */ React.createElement("div", { className: "Link" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
37
67
|
};
|
38
68
|
|
39
69
|
// src/parts/Login/Login.tsx
|
@@ -69,10 +99,9 @@ var PostContentBody = () => {
|
|
69
99
|
var SearchField = () => {
|
70
100
|
const json = {
|
71
101
|
type: "search-field",
|
72
|
-
className: "searchfield"
|
73
|
-
key: ""
|
102
|
+
className: "searchfield"
|
74
103
|
};
|
75
|
-
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
104
|
+
return /* @__PURE__ */ React.createElement("div", { className: "SearchField" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
76
105
|
};
|
77
106
|
|
78
107
|
// src/parts/SearchLink/SearchLink.tsx
|
@@ -199,8 +228,25 @@ var SearchResults = () => {
|
|
199
228
|
};
|
200
229
|
return /* @__PURE__ */ React.createElement("div", { className: "SearchResults" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
201
230
|
};
|
231
|
+
|
232
|
+
// src/parts/SubscriptionLink/SubscriptionLink.tsx
|
233
|
+
var SubscriptionLink = ({ message } = {}) => {
|
234
|
+
const json = {
|
235
|
+
type: "button",
|
236
|
+
tap: {
|
237
|
+
type: "navigate",
|
238
|
+
path: "subscriptions"
|
239
|
+
},
|
240
|
+
message,
|
241
|
+
buttonClass: "subscriptions",
|
242
|
+
id: "button-subscriptions"
|
243
|
+
};
|
244
|
+
return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
245
|
+
};
|
202
246
|
export {
|
247
|
+
EPaperLink,
|
203
248
|
FooterItemsList,
|
249
|
+
HeaderMenuItems,
|
204
250
|
JsonComponent,
|
205
251
|
Link,
|
206
252
|
Login,
|
@@ -208,5 +254,6 @@ export {
|
|
208
254
|
PostContentBody,
|
209
255
|
SearchField,
|
210
256
|
SearchLink,
|
211
|
-
SearchResults
|
257
|
+
SearchResults,
|
258
|
+
SubscriptionLink
|
212
259
|
};
|
@@ -1,4 +1,6 @@
|
|
1
|
+
export * from "../EPaperLink/EPaperLink.tsx";
|
1
2
|
export * from "../FooterItemsList/FooterItemsList.tsx";
|
3
|
+
export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
|
2
4
|
export * from "../JsonComponent/JsonComponent.tsx";
|
3
5
|
export * from "../Link/Link.tsx";
|
4
6
|
export * from "../Login/Login.tsx";
|
@@ -7,3 +9,4 @@ export * from "../PostContentBody/PostContentBody.tsx";
|
|
7
9
|
export * from "../SearchField/SearchField.tsx";
|
8
10
|
export * from "../SearchLink/SearchLink.tsx";
|
9
11
|
export * from "../SearchResults/SearchResults.tsx";
|
12
|
+
export * from "../SubscriptionLink/SubscriptionLink.tsx";
|
package/package.json
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
export * from "../EPaperLink/EPaperLink.tsx";
|
1
2
|
export * from "../FooterItemsList/FooterItemsList.tsx";
|
3
|
+
export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
|
2
4
|
export * from "../JsonComponent/JsonComponent.tsx";
|
3
5
|
export * from "../Link/Link.tsx";
|
4
6
|
export * from "../Login/Login.tsx";
|
@@ -7,3 +9,4 @@ export * from "../PostContentBody/PostContentBody.tsx";
|
|
7
9
|
export * from "../SearchField/SearchField.tsx";
|
8
10
|
export * from "../SearchLink/SearchLink.tsx";
|
9
11
|
export * from "../SearchResults/SearchResults.tsx";
|
12
|
+
export * from "../SubscriptionLink/SubscriptionLink.tsx";
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
|
2
|
+
|
3
|
+
export const EPaperLink = ({ message }: { message?: string } = {}) => {
|
4
|
+
const json = {
|
5
|
+
type: "button",
|
6
|
+
tap: {
|
7
|
+
type: "navigate",
|
8
|
+
path: "e-paper",
|
9
|
+
},
|
10
|
+
message,
|
11
|
+
buttonClass: "e-paper",
|
12
|
+
id: "button-epaper",
|
13
|
+
};
|
14
|
+
return (
|
15
|
+
<div className="EPaperLink">
|
16
|
+
<JsonComponent json={json} />
|
17
|
+
</div>
|
18
|
+
);
|
19
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { MenuItems } from "../MenuItems/MenuItems.tsx";
|
2
|
+
|
3
|
+
export const HeaderMenuItems = ({
|
4
|
+
menuName = "",
|
5
|
+
}: { menuName?: string } = {}) => {
|
6
|
+
const fullClassName = `HeaderMenuItems`;
|
7
|
+
return (
|
8
|
+
<div className={fullClassName}>
|
9
|
+
<MenuItems menuName={menuName} />
|
10
|
+
</div>
|
11
|
+
);
|
12
|
+
};
|
package/src/parts/Link/Link.tsx
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
|
2
2
|
|
3
|
-
export const Link = () => {
|
4
|
-
const json = {
|
5
|
-
|
3
|
+
export const Link = ({ to, message }: { to: string; message: string }) => {
|
4
|
+
const json = {
|
5
|
+
type: "button",
|
6
|
+
tap: {
|
7
|
+
type: "navigate",
|
8
|
+
path: to,
|
9
|
+
},
|
10
|
+
message,
|
11
|
+
};
|
12
|
+
return (
|
13
|
+
<div className="Link">
|
14
|
+
<JsonComponent json={json} />
|
15
|
+
</div>
|
16
|
+
);
|
6
17
|
};
|
@@ -5,7 +5,10 @@ export const SearchField = (): React.ReactElement => {
|
|
5
5
|
const json = {
|
6
6
|
type: "search-field",
|
7
7
|
className: "searchfield",
|
8
|
-
key: "",
|
9
8
|
};
|
10
|
-
return
|
9
|
+
return (
|
10
|
+
<div className="SearchField">
|
11
|
+
<JsonComponent json={json} />
|
12
|
+
</div>
|
13
|
+
);
|
11
14
|
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
|
2
|
+
|
3
|
+
export const SubscriptionLink = ({ message }: { message?: string } = {}) => {
|
4
|
+
const json = {
|
5
|
+
type: "button",
|
6
|
+
tap: {
|
7
|
+
type: "navigate",
|
8
|
+
path: "subscriptions",
|
9
|
+
},
|
10
|
+
message,
|
11
|
+
buttonClass: "subscriptions",
|
12
|
+
id: "button-subscriptions",
|
13
|
+
};
|
14
|
+
return (
|
15
|
+
<div className="SubscriptionLink">
|
16
|
+
<JsonComponent json={json} />
|
17
|
+
</div>
|
18
|
+
);
|
19
|
+
};
|