@pronto-tools-and-more/components 8.11.0 → 8.12.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,8 @@ var getFilterLanguage = (language) => {
420
438
  return "en-gb";
421
439
  case "es":
422
440
  return "es-es";
441
+ case "fr":
442
+ return "fr-fr";
423
443
  case "":
424
444
  case void 0:
425
445
  return "";
@@ -498,7 +518,7 @@ var SearchResults = ({
498
518
  if (filterLanguage) {
499
519
  filterAnd.push({
500
520
  properties: {
501
- key: "language",
521
+ key: "lang",
502
522
  value: filterLanguage
503
523
  }
504
524
  });
@@ -553,6 +573,7 @@ var SubscriptionLink = ({ message } = {}) => {
553
573
  return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
554
574
  };
555
575
  export {
576
+ Button,
556
577
  Collection,
557
578
  Container,
558
579
  ContentBody,
@@ -1,3 +1,4 @@
1
+ export * from "../Button/Button.tsx";
1
2
  export * from "../Collection/Collection.tsx";
2
3
  export * from "../Container/Container.tsx";
3
4
  export * from "../ContentBody/ContentBody.tsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "8.11.0",
3
+ "version": "8.12.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",