@umami/shiso 0.49.0 → 0.50.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.
package/dist/index.js CHANGED
@@ -405,7 +405,7 @@ var import_jsx_runtime9 = require("react/jsx-runtime");
405
405
  function Blogs({ content, config, ...props }) {
406
406
  if (!Array.isArray(content)) {
407
407
  const { meta, code, anchors, slug } = content;
408
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Blog, { ...props, ...meta, slug, code, anchors });
408
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Blog, { ...props, ...meta, slug, code, anchors, backUrl: "/blog" });
409
409
  }
410
410
  const items = content.sort(
411
411
  (a, b) => new Date(b?.meta?.date).getTime() - new Date(a?.meta?.date).getTime()
@@ -466,10 +466,10 @@ function Blog({ title, code, author, date, image, anchors, backUrl }) {
466
466
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Markdown, { code }),
467
467
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(PageLinks, { display: linksDisplay, items: anchors, style: { top } })
468
468
  ] }),
469
- backUrl && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_link5.default, { href: backUrl, children: [
470
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Icons.Arrow, {}) }),
469
+ backUrl && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Row, { justifyContent: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Button, { style: { width: "auto" }, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_link5.default, { href: backUrl, children: [
470
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Icon, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Icons.Arrow, {}) }),
471
471
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_zen11.Text, { children: "Back" })
472
- ] }) })
472
+ ] }) }) })
473
473
  ] });
474
474
  }
475
475
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // src/components/Blog.tsx
4
- import { Heading as Heading4, Box as Box6, Text as Text6, Row as Row4, Column as Column4, Image as Image2, Icon as Icon5, Icons as Icons5 } from "@umami/react-zen";
4
+ import { Heading as Heading4, Box as Box6, Text as Text6, Row as Row4, Column as Column4, Image as Image2, Icon as Icon5, Icons as Icons5, Button as Button3 } from "@umami/react-zen";
5
5
  import { format as format2 } from "date-fns";
6
6
 
7
7
  // src/components/PageLinks.tsx
@@ -378,7 +378,7 @@ import { jsx as jsx9 } from "react/jsx-runtime";
378
378
  function Blogs({ content, config, ...props }) {
379
379
  if (!Array.isArray(content)) {
380
380
  const { meta, code, anchors, slug } = content;
381
- return /* @__PURE__ */ jsx9(Blog, { ...props, ...meta, slug, code, anchors });
381
+ return /* @__PURE__ */ jsx9(Blog, { ...props, ...meta, slug, code, anchors, backUrl: "/blog" });
382
382
  }
383
383
  const items = content.sort(
384
384
  (a, b) => new Date(b?.meta?.date).getTime() - new Date(a?.meta?.date).getTime()
@@ -439,10 +439,10 @@ function Blog({ title, code, author, date, image, anchors, backUrl }) {
439
439
  /* @__PURE__ */ jsx11(Markdown, { code }),
440
440
  /* @__PURE__ */ jsx11(PageLinks, { display: linksDisplay, items: anchors, style: { top } })
441
441
  ] }),
442
- backUrl && /* @__PURE__ */ jsx11(Row4, { children: /* @__PURE__ */ jsxs8(Link5, { href: backUrl, children: [
443
- /* @__PURE__ */ jsx11(Icon5, { children: /* @__PURE__ */ jsx11(Icons5.Arrow, {}) }),
442
+ backUrl && /* @__PURE__ */ jsx11(Row4, { justifyContent: "flex-start", children: /* @__PURE__ */ jsx11(Button3, { style: { width: "auto" }, asChild: true, children: /* @__PURE__ */ jsxs8(Link5, { href: backUrl, children: [
443
+ /* @__PURE__ */ jsx11(Icon5, { rotate: 180, children: /* @__PURE__ */ jsx11(Icons5.Arrow, {}) }),
444
444
  /* @__PURE__ */ jsx11(Text6, { children: "Back" })
445
- ] }) })
445
+ ] }) }) })
446
446
  ] });
447
447
  }
448
448
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "A content layer for Next.js",
5
5
  "homepage": "https://umami.is/shiso",
6
6
  "repository": {