@pronto-tools-and-more/components 7.0.0 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -69,6 +69,21 @@ var FooterItemsList = ({
69
69
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
70
70
  };
71
71
 
72
+ // src/parts/FooterSocialLink/FooterSocialLink.tsx
73
+ var FooterSocialLink = ({ item }) => {
74
+ const iconClass = `MaskIcon MaskIcon${item.label}`;
75
+ return /* @__PURE__ */ React.createElement("li", { className: "FooterSocialLink" }, /* @__PURE__ */ React.createElement("a", { href: item.url, "aria-label": item.label }, /* @__PURE__ */ React.createElement("div", { className: iconClass })));
76
+ };
77
+
78
+ // src/parts/FooterSocialLinks/FooterSocialLinks.tsx
79
+ var FooterSocialLinks = ({
80
+ items
81
+ }) => {
82
+ return /* @__PURE__ */ React.createElement("ul", { className: "FooterSocialLinks" }, ...items.map((link) => {
83
+ return /* @__PURE__ */ React.createElement(FooterSocialLink, { item: link });
84
+ }));
85
+ };
86
+
72
87
  // src/parts/HeaderLogo/HeaderLogo.tsx
73
88
  var HeaderLogo = ({ logoPath }) => {
74
89
  return /* @__PURE__ */ React.createElement("a", { href: "/", className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
@@ -443,6 +458,8 @@ export {
443
458
  ContentTitle,
444
459
  EPaperLink,
445
460
  FooterItemsList,
461
+ FooterSocialLink,
462
+ FooterSocialLinks,
446
463
  HeaderLogo,
447
464
  HeaderLogoSection,
448
465
  HeaderMenuItems,
@@ -3,10 +3,13 @@ export * from "../ContentBody/ContentBody.tsx";
3
3
  export * from "../ContentTitle/ContentTitle.tsx";
4
4
  export * from "../EPaperLink/EPaperLink.tsx";
5
5
  export * from "../FooterItemsList/FooterItemsList.tsx";
6
+ export * from "../FooterSocialLink/FooterSocialLink.tsx";
7
+ export * from "../FooterSocialLinks/FooterSocialLinks.tsx";
6
8
  export * from "../HeaderLogo/HeaderLogo.tsx";
7
9
  export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
8
10
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
9
11
  export * from "../Heading/Heading.tsx";
12
+ export * from "../IFooterSocialLink/IFooterSocialLink.ts";
10
13
  export * from "../JsonComponent/JsonComponent.tsx";
11
14
  export * from "../Link/Link.tsx";
12
15
  export * from "../Login/Login.tsx";
@@ -0,0 +1,4 @@
1
+ import type { IFooterSocialLink } from "../IFooterSocialLink/IFooterSocialLink.ts";
2
+ export declare const FooterSocialLink: ({ item }: {
3
+ item: IFooterSocialLink;
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { IFooterSocialLink } from "../IFooterSocialLink/IFooterSocialLink.ts";
2
+ export declare const FooterSocialLinks: ({ items, }: {
3
+ items: readonly IFooterSocialLink[];
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface IFooterSocialLink {
2
+ readonly image: string;
3
+ readonly label: string;
4
+ readonly url: string;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",