@pronto-tools-and-more/components 6.30.0 → 6.31.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
@@ -70,7 +70,11 @@ var HeaderMenuItems = ({
70
70
  };
71
71
 
72
72
  // src/parts/Link/Link.tsx
73
- var Link = ({ to, message }) => {
73
+ var Link = ({
74
+ to,
75
+ message,
76
+ className
77
+ }) => {
74
78
  const json = {
75
79
  type: "button",
76
80
  tap: {
@@ -79,7 +83,9 @@ var Link = ({ to, message }) => {
79
83
  },
80
84
  message
81
85
  };
82
- return /* @__PURE__ */ React.createElement("div", { className: "Link" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
86
+ const extraClassname = className || "";
87
+ const fullClassName = `Link ${extraClassname}`;
88
+ return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
83
89
  };
84
90
 
85
91
  // src/parts/Login/Login.tsx
@@ -381,12 +387,33 @@ var SubscriptionLink = ({ message } = {}) => {
381
387
  };
382
388
  return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
383
389
  };
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
+ };
384
410
  export {
385
411
  ContentBody,
386
412
  ContentTitle,
387
413
  EPaperLink,
388
414
  FooterItemsList,
389
415
  HeaderMenuItems,
416
+ Heading,
390
417
  JsonComponent,
391
418
  Link,
392
419
  Login,
@@ -13,3 +13,4 @@ export * from "../SearchField/SearchField.tsx";
13
13
  export * from "../SearchLink/SearchLink.tsx";
14
14
  export * from "../SearchResults/SearchResults.tsx";
15
15
  export * from "../SubscriptionLink/SubscriptionLink.tsx";
16
+ export * from "../Heading/Heading.tsx";
@@ -0,0 +1,6 @@
1
+ export declare const Heading: ({ level, size, text, className, }: {
2
+ level: 1 | 2 | 3;
3
+ size: 1 | 2 | 3;
4
+ text: string;
5
+ className?: string;
6
+ }) => import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
- export declare const Link: ({ to, message }: {
1
+ export declare const Link: ({ to, message, className, }: {
2
2
  to: string;
3
3
  message: string;
4
+ className?: string;
4
5
  }) => 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.30.0",
3
+ "version": "6.31.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",