@pronto-tools-and-more/components 8.1.0 → 8.3.0

Sign up to get free protection for your applications and to get access to all the features.
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;
@@ -0,0 +1,7 @@
1
+ import type React from "react";
2
+ export interface CollectionRenderer {
3
+ ({ name, description, }: {
4
+ name: string;
5
+ description: string;
6
+ }): React.ReactNode;
7
+ }
@@ -1,3 +1,4 @@
1
+ export * from "../Collection/Collection.tsx";
1
2
  export * from "../Container/Container.tsx";
2
3
  export * from "../ContentBody/ContentBody.tsx";
3
4
  export * from "../ContentTitle/ContentTitle.tsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "8.1.0",
3
+ "version": "8.3.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",