@bbki.ng/components 1.5.13 → 1.5.14
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.d.ts +4 -1
- package/dist/index.js +9 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,9 @@ declare type PageProps = {
|
|
|
86
86
|
declare const Page: (props: PageProps) => JSX.Element;
|
|
87
87
|
declare const NotFound: (props: {
|
|
88
88
|
children?: any;
|
|
89
|
+
}) => JSX.Element;
|
|
90
|
+
declare const Error: (props: {
|
|
91
|
+
error: Error;
|
|
89
92
|
}) => JSX.Element;
|
|
90
93
|
|
|
91
94
|
declare type PopConfirmProps = {
|
|
@@ -205,4 +208,4 @@ interface NoiseCoverProps {
|
|
|
205
208
|
}
|
|
206
209
|
declare const NoiseCover: (props: NoiseCoverProps) => JSX.Element;
|
|
207
210
|
|
|
208
|
-
export { Article, ArticleProps, ArticleSkeleton, ArticleSkeletonProps, BLinkDotProps, BlinkDot, Breadcrumb, BreadcrumbProps, Button, ButtonProps, ButtonType, DropImage, ImageDropProps, ImagePreviewerProps, Link, LinkColor, LinkList, LinkListProps, LinkListSkeleton, LinkListSkeletonProps, LinkProps, List, Logo, LogoProps, Nav, NavProps, NoiseCover, NoiseCoverProps, NotFound, Page, Panel, PanelProps, PathObj, PopConfirm, PopConfirmProps, Skeleton, SkeletonColor, SkeletonProps, Table, TableProps, Tag, TagProps, Tags, ThreeColLayout, TitledList, TitledListProps, listProps, threeColLayoutProps };
|
|
211
|
+
export { Article, ArticleProps, ArticleSkeleton, ArticleSkeletonProps, BLinkDotProps, BlinkDot, Breadcrumb, BreadcrumbProps, Button, ButtonProps, ButtonType, DropImage, Error, ImageDropProps, ImagePreviewerProps, Link, LinkColor, LinkList, LinkListProps, LinkListSkeleton, LinkListSkeletonProps, LinkProps, List, Logo, LogoProps, Nav, NavProps, NoiseCover, NoiseCoverProps, NotFound, Page, Panel, PanelProps, PathObj, PopConfirm, PopConfirmProps, Skeleton, SkeletonColor, SkeletonProps, Table, TableProps, Tag, TagProps, Tags, ThreeColLayout, TitledList, TitledListProps, listProps, threeColLayoutProps };
|
package/dist/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __export(src_exports, {
|
|
|
65
65
|
Button: () => Button,
|
|
66
66
|
ButtonType: () => ButtonType,
|
|
67
67
|
DropImage: () => DropImage,
|
|
68
|
+
Error: () => Error2,
|
|
68
69
|
Link: () => Link,
|
|
69
70
|
LinkColor: () => LinkColor,
|
|
70
71
|
LinkList: () => LinkList,
|
|
@@ -351,6 +352,13 @@ var NotFound = (props) => {
|
|
|
351
352
|
className: "flex justify-center items-center text-white"
|
|
352
353
|
}, props.children || 404);
|
|
353
354
|
};
|
|
355
|
+
var Error2 = (props) => {
|
|
356
|
+
const { error } = props;
|
|
357
|
+
return /* @__PURE__ */ import_react9.default.createElement(NoiseCover, {
|
|
358
|
+
color: "#ef4444",
|
|
359
|
+
className: "flex justify-center items-center text-white"
|
|
360
|
+
}, /* @__PURE__ */ import_react9.default.createElement("code", null, error.name, ": ", error.message));
|
|
361
|
+
};
|
|
354
362
|
|
|
355
363
|
// src/pop-confirm/PopConfirm.tsx
|
|
356
364
|
var import_react11 = __toESM(require("react"));
|
|
@@ -803,6 +811,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
803
811
|
Button,
|
|
804
812
|
ButtonType,
|
|
805
813
|
DropImage,
|
|
814
|
+
Error,
|
|
806
815
|
Link,
|
|
807
816
|
LinkColor,
|
|
808
817
|
LinkList,
|
package/dist/index.mjs
CHANGED
|
@@ -295,6 +295,13 @@ var NotFound = (props) => {
|
|
|
295
295
|
className: "flex justify-center items-center text-white"
|
|
296
296
|
}, props.children || 404);
|
|
297
297
|
};
|
|
298
|
+
var Error2 = (props) => {
|
|
299
|
+
const { error } = props;
|
|
300
|
+
return /* @__PURE__ */ React10.createElement(NoiseCover, {
|
|
301
|
+
color: "#ef4444",
|
|
302
|
+
className: "flex justify-center items-center text-white"
|
|
303
|
+
}, /* @__PURE__ */ React10.createElement("code", null, error.name, ": ", error.message));
|
|
304
|
+
};
|
|
298
305
|
|
|
299
306
|
// src/pop-confirm/PopConfirm.tsx
|
|
300
307
|
import React12, { useState as useState2 } from "react";
|
|
@@ -748,6 +755,7 @@ export {
|
|
|
748
755
|
Button,
|
|
749
756
|
ButtonType,
|
|
750
757
|
DropImage,
|
|
758
|
+
Error2 as Error,
|
|
751
759
|
Link,
|
|
752
760
|
LinkColor,
|
|
753
761
|
LinkList,
|