@pelatform/starter.shared 0.2.13 → 0.2.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 CHANGED
@@ -38,9 +38,10 @@ declare function LayoutLoader({ children }: {
38
38
  declare function Sidebar({ children }: {
39
39
  children: ReactNode;
40
40
  }): react_jsx_runtime.JSX.Element | null;
41
- declare function SidebarHeaderBack({ linkHref, admin, }: {
41
+ declare function SidebarHeaderBack({ linkHref, admin, text, }: {
42
42
  linkHref?: string;
43
43
  admin?: boolean;
44
+ text?: string;
44
45
  }): react_jsx_runtime.JSX.Element;
45
46
  declare function SidebarContent({ children }: {
46
47
  children: ReactNode;
package/dist/index.js CHANGED
@@ -707,10 +707,11 @@ function Sidebar({ children }) {
707
707
  }
708
708
  function SidebarHeaderBack({
709
709
  linkHref = "/",
710
- admin = false
710
+ admin = false,
711
+ text
711
712
  }) {
712
713
  const t = useTranslations8();
713
- return /* @__PURE__ */ jsx11("div", { className: "flex h-14 shrink-0 items-center gap-2 border-border border-b px-2.5 lg:h-15", children: /* @__PURE__ */ jsx11(BackLink, { Link: Link5, href: linkHref, children: admin ? t("common.actions.back") : t("ui.navigation.settings") }) });
714
+ return /* @__PURE__ */ jsx11("div", { className: "flex h-14 shrink-0 items-center gap-2 border-border border-b px-2.5 lg:h-15", children: /* @__PURE__ */ jsx11(BackLink, { Link: Link5, href: linkHref, children: text ?? (admin ? t("common.actions.back") : t("ui.navigation.settings")) }) });
714
715
  }
715
716
  function SidebarContent({ children }) {
716
717
  return /* @__PURE__ */ jsx11(ScrollArea, { className: "mt-2 mb-2.5 h-[calc(100vh-5.5rem)] grow lg:mt-4 lg:mb-7.5 lg:h-[calc(100vh-4rem)]", children });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pelatform/starter.shared",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "A part of SaaS starter kit for Pelatform applications.",
5
5
  "author": "Pelatform",
6
6
  "license": "MIT",