@bbki.ng/components 2.1.38 → 2.1.40
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/index.cjs +15 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -111,6 +111,7 @@ var Logo = React3.memo(
|
|
|
111
111
|
height: "48",
|
|
112
112
|
viewBox: "0 0 48 48",
|
|
113
113
|
fill: "none",
|
|
114
|
+
onClick: props.onClick,
|
|
114
115
|
className: props.className
|
|
115
116
|
}, /* @__PURE__ */ React3.createElement("path", {
|
|
116
117
|
d: "M29.1152 21.3106C32.0605 21.3106 34.4481 18.9101 34.4481 15.9489V24.6457C34.4481 25.7585 33.5508 26.6607 32.444 26.6607H15.1207C14.0138 26.6607 13.1166 25.7585 13.1166 24.6457V15.9489C13.1166 18.9101 15.5042 21.3106 18.4494 21.3106C21.3947 21.3106 23.7823 18.9101 23.7823 15.9489C23.7823 18.9101 26.17 21.3106 29.1152 21.3106Z",
|
|
@@ -245,6 +246,7 @@ var BlinkDot = (props) => {
|
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
// lib/nav/Nav.tsx
|
|
249
|
+
var import_react_router_dom2 = require("react-router-dom");
|
|
248
250
|
var Nav = (props) => {
|
|
249
251
|
if (props.mini) {
|
|
250
252
|
return /* @__PURE__ */ import_react6.default.createElement("div", {
|
|
@@ -253,10 +255,14 @@ var Nav = (props) => {
|
|
|
253
255
|
paths: props.paths
|
|
254
256
|
}));
|
|
255
257
|
}
|
|
258
|
+
const nav = (0, import_react_router_dom2.useNavigate)();
|
|
256
259
|
return /* @__PURE__ */ import_react6.default.createElement("div", {
|
|
257
260
|
className: `p-8 w-full flex items-center ${props.className}`
|
|
258
261
|
}, /* @__PURE__ */ import_react6.default.createElement(Logo, {
|
|
259
|
-
className: "mr-8"
|
|
262
|
+
className: "mr-8",
|
|
263
|
+
onClick: () => {
|
|
264
|
+
nav("/");
|
|
265
|
+
}
|
|
260
266
|
}), /* @__PURE__ */ import_react6.default.createElement(Breadcrumb, {
|
|
261
267
|
paths: props.paths
|
|
262
268
|
}), props.loading && /* @__PURE__ */ import_react6.default.createElement(BlinkDot, {
|
|
@@ -347,16 +353,14 @@ var NoiseCover = (props) => {
|
|
|
347
353
|
|
|
348
354
|
// lib/page/Page.tsx
|
|
349
355
|
var Page = (props) => {
|
|
350
|
-
const { nav, main
|
|
356
|
+
const { nav, main } = props;
|
|
351
357
|
return /* @__PURE__ */ import_react10.default.createElement("main", {
|
|
352
358
|
className: "flex flex-col h-full"
|
|
353
|
-
}, /* @__PURE__ */ import_react10.default.createElement("
|
|
354
|
-
className: `flx-grow-0 w-full sticky top-0 z-50`
|
|
355
|
-
}, nav), /* @__PURE__ */ import_react10.default.createElement("section", {
|
|
359
|
+
}, /* @__PURE__ */ import_react10.default.createElement("section", {
|
|
356
360
|
className: "flex-grow flex-shrink-0 px-6"
|
|
357
|
-
}, main),
|
|
358
|
-
className:
|
|
359
|
-
},
|
|
361
|
+
}, main), /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
362
|
+
className: `flx-grow-0 w-full sticky bottom-0 z-50`
|
|
363
|
+
}, nav));
|
|
360
364
|
};
|
|
361
365
|
var NotFound = (props) => {
|
|
362
366
|
return /* @__PURE__ */ import_react10.default.createElement(NoiseCover, {
|
|
@@ -482,10 +486,11 @@ var TitledList = (props) => {
|
|
|
482
486
|
};
|
|
483
487
|
var LinkList = (props) => {
|
|
484
488
|
const { title, description, links, ...rest } = props;
|
|
485
|
-
const renderLink = ({ name, to }) => {
|
|
489
|
+
const renderLink = ({ name, to, external }) => {
|
|
486
490
|
return /* @__PURE__ */ import_react13.default.createElement(Link, {
|
|
487
491
|
to,
|
|
488
|
-
key: name
|
|
492
|
+
key: name,
|
|
493
|
+
external
|
|
489
494
|
}, name);
|
|
490
495
|
};
|
|
491
496
|
return /* @__PURE__ */ import_react13.default.createElement(TitledList, {
|