@schemavaults/ui 0.14.0 → 0.14.2

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.
@@ -1,9 +1,11 @@
1
1
  import type { ReactElement } from "react";
2
2
  export type ErrorPageProps = {
3
3
  error: Error;
4
+ reset?: () => void;
4
5
  } | {
5
6
  error: number | string;
6
7
  message: string;
8
+ reset?: () => void;
7
9
  };
8
10
  export declare function ErrorPage(props: ErrorPageProps): ReactElement;
9
11
  export default ErrorPage;
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { RotateCcw } from "lucide-react";
4
+ import { Button } from "../../ui/button";
3
5
  import { Wordmark } from "../../ui/wordmark";
4
6
  export function ErrorPage(props) {
5
7
  if (!("error" in props)) {
@@ -19,7 +21,7 @@ export function ErrorPage(props) {
19
21
  else {
20
22
  errorMsg = "An unknown error occurred!";
21
23
  }
22
- return (_jsxs("div", { className: "w-full grow flex flex-col justify-center items-center min-h-screen p-2 md:p-4 lg:p-8", children: [_jsxs("h1", { className: "text-xl flex flex-row gap-4", children: [_jsx(Wordmark, {}), " Error"] }), _jsx("p", { className: "text-md", children: errorMsg })] }));
24
+ return (_jsxs("div", { className: "w-full grow flex flex-col justify-center items-center min-h-screen p-2 md:p-4 lg:p-8", children: [_jsxs("h1", { className: "text-xl flex flex-row gap-4", children: [_jsx(Wordmark, {}), " Error"] }), _jsx("p", { className: "text-md", children: errorMsg }), props.reset && _jsxs(Button, { onClick: props.reset, className: "mt-4 flex flex-row gap-2", children: [_jsx(RotateCcw, { size: 16 }), " Try Again"] })] }));
23
25
  }
24
26
  export default ErrorPage;
25
27
  //# sourceMappingURL=ErrorPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorPage.js","sourceRoot":"","sources":["../../../../src/components/error/ErrorPage/ErrorPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,E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2C,CAAC,CAAA;IAC9D,CAAC;IAED,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1B,IAAI,QAAgB,CAAC;IACrB,IACE,OAAO,KAAK,KAAK,QAAQ;;YAEzB,OAAO,KAAK,KAAK,QAAQ,EACzB,CAAC;QACD,MAAM,OAAO,GAAY,KAA4C,CAAC,OAAO,CAAC;QAC9E,QAAQ,GAAG,GAAG,KAAK,KAAK,OAAO,EAAE,CAAC;IACpC,CAAC;SAAM,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAClC,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;IAC3B,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,4BAAqC,CAAC;IACnD,CAAC;IACD,OAAO,CACL,eAAK,SAAS,EAAC,sFAAsF,aACnG,cAAI,SAAS,EAAC,6BAA6B,aACzC,KAAC,QAAQ,KAAG,cACT,EAEL,YAAG,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAK,EACpC,KAAK,CAAC,KAAK,IAAI,MAAC,MAAM,IAAC,OAAO,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAC,0BAA0B,aAAC,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,kBAAmB,IACzH,CACP,CAAC;AACJ,CAAC;AAED,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schemavaults/ui",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "description": "React.js UI components for SchemaVaults frontend applications",
@@ -35,7 +35,7 @@
35
35
  "clsx": "2.1.1",
36
36
  "cmdk": "1.1.1",
37
37
  "framer-motion": "12.23.24",
38
- "lucide-react": "0.508.0",
38
+ "lucide-react": "0.575.0",
39
39
  "next-themes": "0.4.6",
40
40
  "react": "19.0.0",
41
41
  "react-dom": "19.0.0",