@pronto-tools-and-more/components 10.39.0 → 10.41.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
@@ -754,10 +754,10 @@ var PrimaryCategory = ({
754
754
  render,
755
755
  contentKey
756
756
  }) => {
757
- const categoryId = `$functions.getPrimaryCategoryProperty($context.${contentKey ?? "content"}, 'id')`;
758
- const categoryName = `$functions.getPrimaryCategoryProperty($context.${contentKey ?? "content"}, 'name')`;
759
- const categoryLanguage = `$functions.getPrimaryCategoryProperty($context.${contentKey ?? "content"}, 'language')`;
760
- const categoryType = `$functions.getPrimaryCategoryProperty($context.${contentKey ?? "content"}, 'type')`;
757
+ const categoryId = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'id')`;
758
+ const categoryName = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'name')`;
759
+ const categoryLanguage = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'language')`;
760
+ const categoryType = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'type')`;
761
761
  const json = {
762
762
  render,
763
763
  unrender: unrender5,
@@ -1069,6 +1069,19 @@ var Seo = ({
1069
1069
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
1070
1070
  };
1071
1071
 
1072
+ // src/parts/SocialLink/SocialLink.tsx
1073
+ var SocialLink = ({ item }) => {
1074
+ const iconClass = `MaskIcon MaskIcon${item.label}`;
1075
+ return /* @__PURE__ */ React.createElement("li", { className: "SocialLink" }, /* @__PURE__ */ React.createElement("a", { href: item.url, "aria-label": item.label, target: "_blank" }, /* @__PURE__ */ React.createElement("div", { className: iconClass })));
1076
+ };
1077
+
1078
+ // src/parts/SocialLinks/SocialLinks.tsx
1079
+ var SocialLinks = ({ items }) => {
1080
+ return /* @__PURE__ */ React.createElement("ul", { className: "SocialLinks" }, ...items.map((link) => {
1081
+ return /* @__PURE__ */ React.createElement(SocialLink, { item: link });
1082
+ }));
1083
+ };
1084
+
1072
1085
  // src/parts/SubscriptionLink/SubscriptionLink.tsx
1073
1086
  var SubscriptionLink = ({ message } = {}) => {
1074
1087
  const json = {
@@ -1156,6 +1169,8 @@ export {
1156
1169
  SearchLink,
1157
1170
  SearchResults,
1158
1171
  Seo,
1172
+ SocialLink,
1173
+ SocialLinks,
1159
1174
  SubscriptionLink,
1160
1175
  TagList,
1161
1176
  createLanguageRegistry,
@@ -25,6 +25,7 @@ export * from "../ICategoryItem/ICategoryItem.ts";
25
25
  export * from "../IFooterSocialLink/IFooterSocialLink.ts";
26
26
  export * from "../ISearchResult/ISearchResult.ts";
27
27
  export * from "../ISearchResultComponent/ISearchResultComponent.tsx";
28
+ export * from "../ISocialLink/ISocialLink.ts";
28
29
  export * from "../ITagItem/ITagItem.ts";
29
30
  export * from "../JsonComponent/JsonComponent.tsx";
30
31
  export * from "../LanguageRegistry/LanguageRegistry.ts";
@@ -42,5 +43,7 @@ export * from "../SearchHeaderToggle/SearchHeaderToggle.tsx";
42
43
  export * from "../SearchLink/SearchLink.tsx";
43
44
  export * from "../SearchResults/SearchResults.tsx";
44
45
  export * from "../Seo/Seo.tsx";
46
+ export * from "../SocialLink/SocialLink.tsx";
47
+ export * from "../SocialLinks/SocialLinks.tsx";
45
48
  export * from "../SubscriptionLink/SubscriptionLink.tsx";
46
49
  export * from "../TagList/TagList.tsx";
@@ -1,4 +1,7 @@
1
1
  import type { IFooterSocialLink } from "../IFooterSocialLink/IFooterSocialLink.ts";
2
+ /**
3
+ * @deprecated use SocialLink instead
4
+ */
2
5
  export declare const FooterSocialLink: ({ item }: {
3
6
  item: IFooterSocialLink;
4
7
  }) => import("react").JSX.Element;
@@ -1,4 +1,7 @@
1
- import type { IFooterSocialLink } from "../IFooterSocialLink/IFooterSocialLink.ts";
1
+ import type { ISocialLink } from "../ISocialLink/ISocialLink.ts";
2
+ /**
3
+ * @deprecated use SocialLinks instead
4
+ */
2
5
  export declare const FooterSocialLinks: ({ items, }: {
3
- items: readonly IFooterSocialLink[];
6
+ items: readonly ISocialLink[];
4
7
  }) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface ISocialLink {
2
+ readonly image: string;
3
+ readonly label: string;
4
+ readonly url: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { ISocialLink } from "../ISocialLink/ISocialLink.ts";
2
+ export declare const SocialLink: ({ item }: {
3
+ item: ISocialLink;
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { ISocialLink } from "../ISocialLink/ISocialLink.ts";
2
+ export declare const SocialLinks: ({ items }: {
3
+ items: readonly ISocialLink[];
4
+ }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.39.0",
3
+ "version": "10.41.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",