@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 = ({
|
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
|
-
|
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,
|