@pronto-tools-and-more/components 12.17.0 → 12.18.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 +12 -5
- package/dist/parts/FixTo/FixTo.d.ts +1 -0
- package/dist/parts/Link/Link.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -392,21 +392,27 @@ var BaseSideBar = ({ children }) => {
|
|
392
392
|
return /* @__PURE__ */ React.createElement("aside", { className: "SideBar" }, ...children);
|
393
393
|
};
|
394
394
|
|
395
|
+
// src/parts/FixTo/FixTo.ts
|
396
|
+
var fixTo = (to) => {
|
397
|
+
if (to && to.startsWith("/#/")) {
|
398
|
+
return to.slice(2);
|
399
|
+
}
|
400
|
+
return to;
|
401
|
+
};
|
402
|
+
|
395
403
|
// src/parts/Button/Button.tsx
|
396
404
|
var Button = ({
|
397
405
|
message,
|
398
406
|
to,
|
399
407
|
className
|
400
408
|
}) => {
|
401
|
-
|
402
|
-
to = to.slice(2);
|
403
|
-
}
|
409
|
+
const fixedTo = fixTo(to);
|
404
410
|
const json = {
|
405
411
|
type: "button",
|
406
412
|
message,
|
407
413
|
tap: {
|
408
414
|
type: "navigate",
|
409
|
-
path:
|
415
|
+
path: fixedTo
|
410
416
|
}
|
411
417
|
};
|
412
418
|
const fullClassName = `Button ${className || ""}`;
|
@@ -1109,11 +1115,12 @@ var Link = ({
|
|
1109
1115
|
} else {
|
1110
1116
|
fullMessage = `<span class="LinkContent">${message}</span>`;
|
1111
1117
|
}
|
1118
|
+
const fixedTo = fixTo(to);
|
1112
1119
|
const json = {
|
1113
1120
|
type: "button",
|
1114
1121
|
tap: {
|
1115
1122
|
type: "navigate",
|
1116
|
-
path:
|
1123
|
+
path: fixedTo
|
1117
1124
|
},
|
1118
1125
|
message: fullMessage
|
1119
1126
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const fixTo: (to: any) => any;
|