@loczer/storefront-sdk 0.201.0 → 0.203.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.
@@ -1 +1 @@
1
- {"version":3,"file":"NotFoundPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotFoundPage.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,YAAY,4CA8BnC"}
1
+ {"version":3,"file":"NotFoundPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotFoundPage.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAiCnC"}
@@ -1,41 +1,43 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { Link as n, useParams as r } from "@rpcbase/router";
3
- import { useTranslation as i } from "react-i18next";
4
- import { AlertTriangle as a, ArrowLeft as o } from "lucide-react";
1
+ import { storefrontButtonRadiusClassName as e } from "../ui/button.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Link as r, useParams as i } from "@rpcbase/router";
4
+ import { useTranslation as a } from "react-i18next";
5
+ import { cn as o } from "@rpcbase/ui";
6
+ import { AlertTriangle as s, ArrowLeft as c } from "lucide-react";
5
7
  //#region src/pages/NotFoundPage.tsx
6
- function s() {
7
- let { t: s } = i(), { storeSlug: c } = r();
8
- return /* @__PURE__ */ e("div", {
8
+ function l() {
9
+ let { t: l } = a(), { storeSlug: u } = i();
10
+ return /* @__PURE__ */ t("div", {
9
11
  className: "flex min-h-[60vh] items-center justify-center px-4 py-16",
10
- children: /* @__PURE__ */ t("div", {
12
+ children: /* @__PURE__ */ n("div", {
11
13
  className: "max-w-xl space-y-6 text-center",
12
14
  children: [
13
- /* @__PURE__ */ e("div", {
15
+ /* @__PURE__ */ t("div", {
14
16
  className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10 text-destructive",
15
- children: /* @__PURE__ */ e(a, {
17
+ children: /* @__PURE__ */ t(s, {
16
18
  className: "h-6 w-6",
17
19
  "aria-hidden": "true"
18
20
  })
19
21
  }),
20
- /* @__PURE__ */ t("div", {
22
+ /* @__PURE__ */ n("div", {
21
23
  className: "space-y-2",
22
- children: [/* @__PURE__ */ e("h1", {
24
+ children: [/* @__PURE__ */ t("h1", {
23
25
  className: "text-2xl font-semibold tracking-tight",
24
- children: /* @__PURE__ */ e("span", { children: s("not_found_title") })
25
- }), /* @__PURE__ */ e("p", {
26
+ children: /* @__PURE__ */ t("span", { children: l("not_found_title") })
27
+ }), /* @__PURE__ */ t("p", {
26
28
  className: "text-muted-foreground",
27
- children: /* @__PURE__ */ e("span", { children: s("not_found_description", { store: c }) })
29
+ children: /* @__PURE__ */ t("span", { children: l("not_found_description", { store: u }) })
28
30
  })]
29
31
  }),
30
- /* @__PURE__ */ e("div", {
32
+ /* @__PURE__ */ t("div", {
31
33
  className: "flex justify-center",
32
- children: /* @__PURE__ */ t(n, {
33
- to: `/${c ?? ""}`,
34
- className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
- children: [/* @__PURE__ */ e(o, {
34
+ children: /* @__PURE__ */ n(r, {
35
+ to: `/${u ?? ""}`,
36
+ className: o("inline-flex items-center gap-2 bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e),
37
+ children: [/* @__PURE__ */ t(c, {
36
38
  className: "h-4 w-4",
37
39
  "aria-hidden": "true"
38
- }), /* @__PURE__ */ e("span", { children: s("back_to_home") })]
40
+ }), /* @__PURE__ */ t("span", { children: l("back_to_home") })]
39
41
  })
40
42
  })
41
43
  ]
@@ -43,4 +45,4 @@ function s() {
43
45
  });
44
46
  }
45
47
  //#endregion
46
- export { s as default };
48
+ export { l as default };