@pronto-tools-and-more/components 8.11.0 → 8.13.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
@@ -4,6 +4,24 @@ var JsonComponent = ({ json }) => {
|
|
4
4
|
return node;
|
5
5
|
};
|
6
6
|
|
7
|
+
// src/parts/Button/Button.tsx
|
8
|
+
var Button = ({
|
9
|
+
message,
|
10
|
+
to,
|
11
|
+
className
|
12
|
+
}) => {
|
13
|
+
const json = {
|
14
|
+
type: "button",
|
15
|
+
message,
|
16
|
+
tap: {
|
17
|
+
type: "navigate",
|
18
|
+
path: to
|
19
|
+
}
|
20
|
+
};
|
21
|
+
const fullClassName = `Button ${className || ""}`;
|
22
|
+
return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
23
|
+
};
|
24
|
+
|
7
25
|
// src/parts/Collection/Collection.tsx
|
8
26
|
var Collection = ({
|
9
27
|
limit,
|
@@ -420,6 +438,10 @@ var getFilterLanguage = (language) => {
|
|
420
438
|
return "en-gb";
|
421
439
|
case "es":
|
422
440
|
return "es-es";
|
441
|
+
case "fr":
|
442
|
+
return "fr-fr";
|
443
|
+
case "it":
|
444
|
+
return "it-it";
|
423
445
|
case "":
|
424
446
|
case void 0:
|
425
447
|
return "";
|
@@ -498,7 +520,7 @@ var SearchResults = ({
|
|
498
520
|
if (filterLanguage) {
|
499
521
|
filterAnd.push({
|
500
522
|
properties: {
|
501
|
-
key: "
|
523
|
+
key: "lang",
|
502
524
|
value: filterLanguage
|
503
525
|
}
|
504
526
|
});
|
@@ -553,6 +575,7 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
553
575
|
return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
554
576
|
};
|
555
577
|
export {
|
578
|
+
Button,
|
556
579
|
Collection,
|
557
580
|
Container,
|
558
581
|
ContentBody,
|