@pronto-tools-and-more/components 10.39.0 → 10.41.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +19 -4
- package/dist/parts/Components/Components.d.ts +3 -0
- package/dist/parts/FooterSocialLink/FooterSocialLink.d.ts +3 -0
- package/dist/parts/FooterSocialLinks/FooterSocialLinks.d.ts +5 -2
- package/dist/parts/ISocialLink/ISocialLink.d.ts +5 -0
- package/dist/parts/SocialLink/SocialLink.d.ts +4 -0
- package/dist/parts/SocialLinks/SocialLinks.d.ts +4 -0
- package/package.json +1 -1
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
|
758
|
-
const categoryName = `$functions.getPrimaryCategoryProperty($context
|
759
|
-
const categoryLanguage = `$functions.getPrimaryCategoryProperty($context
|
760
|
-
const categoryType = `$functions.getPrimaryCategoryProperty($context
|
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
|
-
import type {
|
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
|
6
|
+
items: readonly ISocialLink[];
|
4
7
|
}) => import("react").JSX.Element;
|