@grapadigital/shared-app-modules 0.0.143 → 0.0.144

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/pages.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
 
4
- export declare function LoaderPage(): JSX.Element;
4
+ export declare function LoaderPage({ className, ...props }: LoaderPageProps): JSX.Element;
5
+
6
+ declare type LoaderPageProps = React.ComponentProps<"div">;
5
7
 
6
8
  export declare function NotFoundPage({ btnRedirect, btnLabel, hideBtn, className, ...props }: NotFoundPageProps): JSX.Element;
7
9
 
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as i, c as a, B as m } from "./chuncks/switch.q7qsNhmq.js";
1
+ import { a as i, c as t, B as m } from "./chuncks/switch.q7qsNhmq.js";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { useNavigate as d } from "react-router-dom";
@@ -11,12 +11,22 @@ const x = [
11
11
  }
12
12
  ]
13
13
  ], u = i("flag", x);
14
- function N() {
15
- return /* @__PURE__ */ e("div", { className: a("flex items-center justify-center h-screen w-screen"), children: /* @__PURE__ */ e("div", { className: "size-16 border-gray-500 border-t-gray-700 rounded-full animate-spin border-[0.375rem]" }) });
14
+ function N({ className: a, ...r }) {
15
+ return /* @__PURE__ */ e(
16
+ "div",
17
+ {
18
+ className: t(
19
+ "flex items-center justify-center h-screen w-screen",
20
+ a
21
+ ),
22
+ ...r,
23
+ children: /* @__PURE__ */ e("div", { className: "size-16 border-gray-500 border-t-gray-700 rounded-full animate-spin border-[0.375rem]" })
24
+ }
25
+ );
16
26
  }
17
27
  function b({
18
- btnRedirect: r = "/",
19
- btnLabel: t = "Home",
28
+ btnRedirect: a = "/",
29
+ btnLabel: r = "Home",
20
30
  hideBtn: s = !1,
21
31
  className: n,
22
32
  ...o
@@ -25,7 +35,7 @@ function b({
25
35
  return /* @__PURE__ */ e(
26
36
  "div",
27
37
  {
28
- className: a(
38
+ className: t(
29
39
  "h-screen mx-auto grid place-items-center text-center px-8",
30
40
  n
31
41
  ),
@@ -39,8 +49,8 @@ function b({
39
49
  {
40
50
  size: "lg",
41
51
  className: "px-4 md:w-[8rem]",
42
- onClick: () => c(r),
43
- children: t
52
+ onClick: () => c(a),
53
+ children: r
44
54
  }
45
55
  )
46
56
  ] })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.143",
4
+ "version": "0.0.144",
5
5
  "files": [
6
6
  "dist"
7
7
  ],