@pronto-tools-and-more/components 6.33.0 → 6.34.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
@@ -61,6 +61,11 @@ var FooterItemsList = ({
61
61
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
62
62
  };
63
63
 
64
+ // src/parts/HeaderLogo/HeaderLogo.tsx
65
+ var HeaderLogo = ({ logoPath }) => {
66
+ return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
67
+ };
68
+
64
69
  // src/parts/HeaderMenuItems/HeaderMenuItems.tsx
65
70
  var HeaderMenuItems = ({
66
71
  menuName = ""
@@ -69,6 +74,26 @@ var HeaderMenuItems = ({
69
74
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
70
75
  };
71
76
 
77
+ // src/parts/Heading/Heading.tsx
78
+ var Heading = ({
79
+ level,
80
+ size,
81
+ text,
82
+ className = ""
83
+ }) => {
84
+ const fullClassName = `Heading Heading${size} ${className}`;
85
+ if (level === 1) {
86
+ return /* @__PURE__ */ React.createElement("h1", { className: fullClassName }, text);
87
+ }
88
+ if (level === 2) {
89
+ return /* @__PURE__ */ React.createElement("h2", { className: fullClassName }, text);
90
+ }
91
+ if (level === 3) {
92
+ return /* @__PURE__ */ React.createElement("h3", { className: fullClassName }, text);
93
+ }
94
+ return /* @__PURE__ */ React.createElement("h4", { className: fullClassName }, text);
95
+ };
96
+
72
97
  // src/parts/Link/Link.tsx
73
98
  var Link = ({
74
99
  to,
@@ -387,31 +412,12 @@ var SubscriptionLink = ({ message } = {}) => {
387
412
  };
388
413
  return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
389
414
  };
390
-
391
- // src/parts/Heading/Heading.tsx
392
- var Heading = ({
393
- level,
394
- size,
395
- text,
396
- className = ""
397
- }) => {
398
- const fullClassName = `Heading Heading${size} ${className}`;
399
- if (level === 1) {
400
- return /* @__PURE__ */ React.createElement("h1", { className: fullClassName }, text);
401
- }
402
- if (level === 2) {
403
- return /* @__PURE__ */ React.createElement("h2", { className: fullClassName }, text);
404
- }
405
- if (level === 3) {
406
- return /* @__PURE__ */ React.createElement("h3", { className: fullClassName }, text);
407
- }
408
- return /* @__PURE__ */ React.createElement("h4", { className: fullClassName }, text);
409
- };
410
415
  export {
411
416
  ContentBody,
412
417
  ContentTitle,
413
418
  EPaperLink,
414
419
  FooterItemsList,
420
+ HeaderLogo,
415
421
  HeaderMenuItems,
416
422
  Heading,
417
423
  JsonComponent,
@@ -2,7 +2,9 @@ export * from "../ContentBody/ContentBody.tsx";
2
2
  export * from "../ContentTitle/ContentTitle.tsx";
3
3
  export * from "../EPaperLink/EPaperLink.tsx";
4
4
  export * from "../FooterItemsList/FooterItemsList.tsx";
5
+ export * from "../HeaderLogo/HeaderLogo.tsx";
5
6
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
7
+ export * from "../Heading/Heading.tsx";
6
8
  export * from "../JsonComponent/JsonComponent.tsx";
7
9
  export * from "../Link/Link.tsx";
8
10
  export * from "../Login/Login.tsx";
@@ -13,4 +15,3 @@ export * from "../SearchField/SearchField.tsx";
13
15
  export * from "../SearchLink/SearchLink.tsx";
14
16
  export * from "../SearchResults/SearchResults.tsx";
15
17
  export * from "../SubscriptionLink/SubscriptionLink.tsx";
16
- export * from "../Heading/Heading.tsx";
@@ -0,0 +1,3 @@
1
+ export declare const HeaderLogo: ({ logoPath }: {
2
+ logoPath: string;
3
+ }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.33.0",
3
+ "version": "6.34.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",