waha-shared 1.0.47 → 1.0.49

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.
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ }
7
+ declare function SvgComponent({ height, width, color }: Props): React.JSX.Element;
8
+ export default SvgComponent;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ function SvgComponent({ height, width, color = '#E42535' }) {
8
+ // Original SVG dimensions
9
+ const originalWidth = 1425;
10
+ const originalHeight = 938;
11
+ const aspectRatio = originalWidth / originalHeight;
12
+ // Calculate dimensions based on props
13
+ let finalWidth;
14
+ let finalHeight;
15
+ if (width && height) {
16
+ // Both provided - use the bigger one and calculate the other
17
+ const widthBasedHeight = width / aspectRatio;
18
+ const heightBasedWidth = height * aspectRatio;
19
+ if (widthBasedHeight >= height) {
20
+ // Width is the limiting factor
21
+ finalWidth = width;
22
+ finalHeight = widthBasedHeight;
23
+ }
24
+ else {
25
+ // Height is the limiting factor
26
+ finalHeight = height;
27
+ finalWidth = heightBasedWidth;
28
+ }
29
+ }
30
+ else if (width) {
31
+ // Only width provided
32
+ finalWidth = width;
33
+ finalHeight = width / aspectRatio;
34
+ }
35
+ else if (height) {
36
+ // Only height provided
37
+ finalHeight = height;
38
+ finalWidth = height * aspectRatio;
39
+ }
40
+ return (react_1.default.createElement("svg", { width: finalWidth, height: finalHeight, viewBox: "0 0 1425 938", fill: color, xmlns: "http://www.w3.org/2000/svg" },
41
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M43.1354 548.088C43.5867 549.607 43.8311 551.214 43.8311 552.876C43.8687 558.696 41.5184 561.758 40.7098 562.911C36.6673 568.651 31.4403 570.329 26.4012 570.329C24.1261 570.329 14.2925 570.452 10.0244 558.995C9.83638 558.534 9.10305 556.052 8.35096 551.811C4.7597 531.526 -6.39025 447.364 12.9386 398.682C23.5432 371.972 42.2893 354.665 71.527 354.665C94.7668 354.665 111.633 369.298 122.162 395.674C133.744 424.659 137.843 469.888 141.547 515.178C144.95 556.657 147.997 598.195 158.601 624.743C162.869 635.453 167.382 643.893 176.821 643.893C189.136 643.893 194.57 634.718 197.992 622.155C206.246 591.698 201.865 544.106 197.992 496.516C193.762 444.462 190.039 392.411 199.083 359.095C207.205 329.113 224.541 311.748 253.911 311.748C277.414 311.748 293.621 325.112 303.925 348.515C315.263 374.249 318.892 414.381 322.069 454.589C324.457 485.036 326.695 515.506 333.388 538.342C335.588 545.869 338.221 552.454 341.793 557.573C345.121 562.372 349.389 565.522 355.444 565.522C371.238 565.522 374.284 551.288 376.089 533.296C378.89 505.448 374.66 468.323 371.67 431.189C368.436 390.886 366.725 350.59 374.472 320.361C379.059 302.375 386.975 287.6 398.689 277.108C410.854 266.205 427.231 259.5 449.456 259.5C459.083 259.5 466.886 267.253 466.886 276.803C466.886 286.353 459.083 294.107 449.456 294.107C438.005 294.107 429.224 296.745 422.775 302.17C411.889 311.317 407.545 326.81 405.308 345C400.701 382.586 407.037 430.908 410.14 473.866C412.941 512.455 412.678 547.127 403.202 568.737C394.534 588.489 379.642 600.129 355.444 600.129C331.941 600.129 315.733 586.764 305.429 563.361C294.091 537.627 290.462 497.496 287.304 457.287C284.897 426.84 282.659 396.37 275.966 373.534C273.766 366.007 271.134 359.422 267.561 354.303C264.233 349.504 259.965 346.354 253.911 346.354C241.595 346.354 236.161 355.529 232.739 368.093C224.485 398.55 228.866 446.142 232.739 493.732C236.988 545.785 240.692 597.837 231.649 631.152C223.526 661.135 206.19 678.5 176.821 678.5C153.581 678.5 136.715 663.867 126.186 637.491C114.603 608.507 110.523 563.277 106.8 517.988C103.397 476.509 100.351 434.97 89.7465 408.423C85.4783 397.712 80.9659 389.272 71.527 389.272C51.4461 389.272 44.4139 408.301 40.1833 429.71C31.6094 473.055 39.9579 530.328 42.703 545.806C42.8534 546.674 43.0226 547.545 43.1354 548.088ZM11.5285 543.953C10.5695 545.371 9.14059 547.984 8.99018 552.171C9.12179 549.17 10.0243 546.368 11.5285 543.953ZM22.7723 536.045C19.5194 536.642 16.3232 538.172 13.5593 541.264C15.966 538.668 19.1622 536.802 22.7723 536.045Z" }),
42
+ react_1.default.createElement("path", { d: "M1319.12 605C1298.85 605 1282.69 600.048 1270.67 590.144C1258.88 580.241 1252.98 566.8 1252.98 549.822C1252.98 533.551 1258.52 520.111 1269.61 509.499C1280.69 498.888 1297.31 491.814 1319.48 488.277L1376.78 479.081V472.714C1376.78 464.225 1373.48 457.269 1366.88 451.845C1360.51 446.422 1352.02 443.71 1341.41 443.71C1331.5 443.71 1322.66 446.422 1314.88 451.845C1307.33 457.033 1301.79 463.989 1298.26 472.714L1260.41 454.321C1266.07 439.23 1276.44 427.086 1291.54 417.89C1306.63 408.693 1323.84 404.095 1343.18 404.095C1358.74 404.095 1372.53 407.043 1384.56 412.938C1396.82 418.597 1406.25 426.732 1412.86 437.343C1419.7 447.719 1423.11 459.509 1423.11 472.714V600.756H1379.25V580.241C1364.16 596.747 1344.12 605 1319.12 605ZM1301.09 548.053C1301.09 554.656 1303.56 559.961 1308.51 563.97C1313.47 567.743 1319.83 569.629 1327.61 569.629C1342 569.629 1353.79 565.149 1362.98 556.189C1372.18 546.992 1376.78 535.674 1376.78 522.233V514.451L1328.32 522.586C1319.12 524.473 1312.29 527.538 1307.81 531.783C1303.33 535.792 1301.09 541.215 1301.09 548.053Z" }),
43
+ react_1.default.createElement("path", { d: "M1051.1 333H1097.43V427.44C1102.85 419.894 1110.05 414.117 1119.01 410.108C1127.97 406.099 1137.99 404.095 1149.07 404.095C1162.98 404.095 1175.48 407.16 1186.57 413.291C1197.65 419.422 1206.25 428.029 1212.39 439.112C1218.52 450.195 1221.58 462.81 1221.58 476.958V600.755H1175.25V487.923C1175.25 475.426 1171.59 465.404 1164.28 457.858C1157.21 450.313 1147.89 446.54 1136.34 446.54C1125.02 446.54 1115.71 450.313 1108.4 457.858C1101.09 465.404 1097.43 475.426 1097.43 487.923V600.755H1051.1V333Z" }),
44
+ react_1.default.createElement("path", { d: "M904.28 605C884.001 605 867.849 600.048 855.823 590.144C844.032 580.241 838.137 566.8 838.137 549.822C838.137 533.551 843.679 520.111 854.761 509.499C865.844 498.888 882.468 491.814 904.634 488.277L961.934 479.081V472.714C961.934 464.225 958.633 457.269 952.031 451.845C945.664 446.422 937.175 443.71 926.564 443.71C916.66 443.71 907.817 446.422 900.036 451.845C892.49 457.033 886.949 463.989 883.412 472.714L845.565 454.321C851.224 439.23 861.6 427.086 876.691 417.89C891.783 408.693 908.996 404.095 928.332 404.095C943.895 404.095 957.69 407.043 969.716 412.938C981.978 418.597 991.41 426.732 998.012 437.343C1004.85 447.719 1008.27 459.509 1008.27 472.714V600.756H964.41V580.241C949.319 596.747 929.275 605 904.28 605ZM886.241 548.053C886.241 554.656 888.717 559.961 893.669 563.97C898.621 567.743 904.988 569.629 912.769 569.629C927.153 569.629 938.943 565.149 948.14 556.189C957.336 546.992 961.934 535.674 961.934 522.233V514.451L913.477 522.586C904.28 524.473 897.442 527.538 892.962 531.783C888.481 535.792 886.241 541.215 886.241 548.053Z" }),
45
+ react_1.default.createElement("path", { d: "M522.886 408.339H571.697L612.019 529.661L654.818 408.339H695.848L738.292 529.307L778.615 408.339H827.426L761.283 600.755H719.9L675.333 470.945L630.058 600.755H589.029L522.886 408.339Z" })));
46
+ }
47
+ exports.default = SvgComponent;
@@ -11,8 +11,8 @@ export declare const Clones: z.ZodArray<z.ZodObject<{
11
11
  linkIos: z.ZodString;
12
12
  removeTraining: z.ZodBoolean;
13
13
  }, "strict", z.ZodTypeAny, {
14
- icon: string;
15
14
  color: string;
15
+ icon: string;
16
16
  appId: string;
17
17
  appIdCaps: string;
18
18
  appName: string;
@@ -22,8 +22,8 @@ export declare const Clones: z.ZodArray<z.ZodObject<{
22
22
  removeTraining: boolean;
23
23
  languages?: any;
24
24
  }, {
25
- icon: string;
26
25
  color: string;
26
+ icon: string;
27
27
  appId: string;
28
28
  appIdCaps: string;
29
29
  appName: string;
@@ -1,6 +1,6 @@
1
1
  export declare const clones: {
2
- icon: string;
3
2
  color: string;
3
+ icon: string;
4
4
  appId: string;
5
5
  appIdCaps: string;
6
6
  appName: string;
@@ -1,6 +1,6 @@
1
1
  export declare const translationsApp: Record<string, {
2
- bible: string;
3
2
  search: string;
3
+ bible: string;
4
4
  name: string;
5
5
  message: string;
6
6
  text: string;
@@ -307,8 +307,8 @@ export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
307
307
  welcome_blurb: z.ZodString;
308
308
  yes: z.ZodString;
309
309
  }, "strip", z.ZodTypeAny, {
310
- bible: string;
311
310
  search: string;
311
+ bible: string;
312
312
  name: string;
313
313
  message: string;
314
314
  text: string;
@@ -614,8 +614,8 @@ export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
614
614
  notifications?: string | undefined;
615
615
  percent_available?: string | undefined;
616
616
  }, {
617
- bible: string;
618
617
  search: string;
618
+ bible: string;
619
619
  name: string;
620
620
  message: string;
621
621
  text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",