@pronto-tools-and-more/components 9.7.0 → 9.9.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
@@ -22,6 +22,24 @@ var Button = ({
22
22
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
23
23
  };
24
24
 
25
+ // src/parts/CategoryList/CategoryList.tsx
26
+ var CategoryList = ({
27
+ render
28
+ }) => {
29
+ const json = {
30
+ render,
31
+ dataSource: {
32
+ data: "$context.contentNoSSRCache[0].taxonomies",
33
+ type: "context",
34
+ batchSize: 1e6
35
+ },
36
+ type: "list",
37
+ class: "data-custom-category-list",
38
+ template: "horizontal"
39
+ };
40
+ return /* @__PURE__ */ React.createElement("div", { className: "CategoryList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
41
+ };
42
+
25
43
  // src/parts/Collection/Collection.tsx
26
44
  var Collection = ({
27
45
  limit,
@@ -637,6 +655,7 @@ var SubscriptionLink = ({ message } = {}) => {
637
655
  };
638
656
  export {
639
657
  Button,
658
+ CategoryList,
640
659
  Collection,
641
660
  Container,
642
661
  ContentBody,
@@ -0,0 +1,4 @@
1
+ import { CategoryListItemRenderer } from "../CategoryListItemRenderer/CategoryListItemRenderer.ts";
2
+ export declare const CategoryList: ({ render, }: {
3
+ render: CategoryListItemRenderer;
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type React from "react";
2
+ import type { ICategoryItem } from "../ICategoryItem/ICategoryItem.ts";
3
+ export interface CategoryListItemRenderer {
4
+ (item: ICategoryItem): React.ReactNode;
5
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "../Button/Button.tsx";
2
+ export * from "../CategoryList/CategoryList.tsx";
2
3
  export * from "../Collection/Collection.tsx";
3
4
  export * from "../Container/Container.tsx";
4
5
  export * from "../ContentBody/ContentBody.tsx";
@@ -13,6 +14,7 @@ export * from "../HeaderLogo/HeaderLogo.tsx";
13
14
  export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
14
15
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
15
16
  export * from "../Heading/Heading.tsx";
17
+ export * from "../ICategoryItem/ICategoryItem.ts";
16
18
  export * from "../IFooterSocialLink/IFooterSocialLink.ts";
17
19
  export * from "../IIssueListItem/IIssueListItem.ts";
18
20
  export * from "../ISearchResult/ISearchResult.ts";
@@ -0,0 +1,5 @@
1
+ export interface ICategoryItem {
2
+ readonly name: string;
3
+ readonly id: string;
4
+ readonly language: string;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "9.7.0",
3
+ "version": "9.9.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",