infinity-forge 0.20.9 → 0.21.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/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
- package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
- package/dist/system/presentation/components/data/page-wrapper/index.js.map +1 -1
- package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +2 -0
- package/dist/ui/components/breadcrumb/interfaces.d.ts +6 -5
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IPageWrapper } from './interfaces.js';
|
|
2
|
-
export declare function PageWrapper({ title, children }: IPageWrapper): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function PageWrapper({ title, children, breadCrumb }: IPageWrapper): import("react/jsx-runtime").JSX.Element;
|
|
@@ -28,8 +28,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
var ui_1 = require("../../../../../ui/index.js");
|
|
29
29
|
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function PageWrapper(_a) {
|
|
31
|
-
var title = _a.title, children = _a.children;
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(S.PageWrapper, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'header', children: [(0, jsx_runtime_1.jsx)("h1", { className: 'font-24-bold-lexend', children: title }), (0, jsx_runtime_1.jsx)(ui_1.Breadcrumb, {})] }), children] }));
|
|
31
|
+
var title = _a.title, children = _a.children, breadCrumb = _a.breadCrumb;
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(S.PageWrapper, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'header', children: [(0, jsx_runtime_1.jsx)("h1", { className: 'font-24-bold-lexend', children: title }), (0, jsx_runtime_1.jsx)(ui_1.Breadcrumb, { links: breadCrumb })] }), children] }));
|
|
33
33
|
}
|
|
34
34
|
exports.PageWrapper = PageWrapper;
|
|
35
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/page-wrapper/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAiC;AAIjC,0CAA6B;AAE7B,SAAgB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/page-wrapper/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAiC;AAIjC,0CAA6B;AAE7B,SAAgB,WAAW,CAAC,EAA6C;QAA3C,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,UAAU,gBAAA;IACvD,OAAO,CACL,wBAAC,CAAC,CAAC,WAAW,eACZ,iCAAK,SAAS,EAAC,QAAQ,aACrB,+BAAI,SAAS,EAAC,qBAAqB,YAAE,KAAK,GAAM,EAEhD,uBAAC,eAAU,IAAC,KAAK,EAAE,UAAU,GAAI,IAC7B,EAEL,QAAQ,IACK,CACjB,CAAA;AACH,CAAC;AAZD,kCAYC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export interface IBreadCrumbShape {
|
|
3
|
+
icon?: JSX.Element;
|
|
4
|
+
text: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
}
|
|
2
7
|
export interface IBreadcrumbProps {
|
|
3
|
-
links?:
|
|
4
|
-
icon?: JSX.Element;
|
|
5
|
-
text: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
}[];
|
|
8
|
+
links?: IBreadCrumbShape[];
|
|
8
9
|
}
|