@pronto-tools-and-more/components 8.1.0 → 8.3.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
CHANGED
@@ -1,3 +1,45 @@
|
|
1
|
+
// src/parts/JsonComponent/JsonComponent.tsx
|
2
|
+
var JsonComponent = ({ json }) => {
|
3
|
+
const node = json;
|
4
|
+
return node;
|
5
|
+
};
|
6
|
+
|
7
|
+
// src/parts/Collection/Collection.tsx
|
8
|
+
var Collection = ({
|
9
|
+
limit,
|
10
|
+
offset,
|
11
|
+
name,
|
12
|
+
render
|
13
|
+
}) => {
|
14
|
+
const json = {
|
15
|
+
render,
|
16
|
+
dataSource: {
|
17
|
+
type: "collection-content",
|
18
|
+
limit: `${limit}`,
|
19
|
+
offset: `${offset}`,
|
20
|
+
collectionFilter: {
|
21
|
+
name: {
|
22
|
+
value: name
|
23
|
+
}
|
24
|
+
}
|
25
|
+
},
|
26
|
+
type: "list",
|
27
|
+
class: "schlauch-section-content data-custom-list",
|
28
|
+
tapEntry: {
|
29
|
+
value: {
|
30
|
+
type: "openUrl",
|
31
|
+
url: "#",
|
32
|
+
target: ""
|
33
|
+
},
|
34
|
+
fallback: {
|
35
|
+
type: "openContent"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
template: "grid"
|
39
|
+
};
|
40
|
+
return /* @__PURE__ */ React.createElement("div", { className: "Collection" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
41
|
+
};
|
42
|
+
|
1
43
|
// src/parts/Container/Container.tsx
|
2
44
|
var Container = ({
|
3
45
|
children
|
@@ -6,12 +48,6 @@ var Container = ({
|
|
6
48
|
return /* @__PURE__ */ React.createElement("div", { className: "Container" }, ...childrenArray);
|
7
49
|
};
|
8
50
|
|
9
|
-
// src/parts/JsonComponent/JsonComponent.tsx
|
10
|
-
var JsonComponent = ({ json }) => {
|
11
|
-
const node = json;
|
12
|
-
return node;
|
13
|
-
};
|
14
|
-
|
15
51
|
// src/parts/ContentBody/ContentBody.tsx
|
16
52
|
var ContentBody = () => {
|
17
53
|
const json = {
|
@@ -518,6 +554,7 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
518
554
|
return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
519
555
|
};
|
520
556
|
export {
|
557
|
+
Collection,
|
521
558
|
Container,
|
522
559
|
ContentBody,
|
523
560
|
ContentTitle,
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import type { CollectionRenderer } from "../CollectionRenderer/CollectionRenderer.ts";
|
3
|
+
export declare const Collection: ({ limit, offset, name, render, }: {
|
4
|
+
limit: number;
|
5
|
+
offset: number;
|
6
|
+
name: string;
|
7
|
+
render: CollectionRenderer;
|
8
|
+
}) => React.JSX.Element;
|