@tirth_jasoliya/ui 1.0.1 → 1.0.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.
package/dist/index.cjs CHANGED
@@ -2312,6 +2312,7 @@ var AppContainer = ({
2312
2312
 
2313
2313
  // src/components/layouts/app-header.tsx
2314
2314
  var import_lucide_react16 = require("lucide-react");
2315
+ var import_react_router = require("react-router");
2315
2316
  var import_jsx_runtime27 = require("react/jsx-runtime");
2316
2317
  var AppHeader = ({
2317
2318
  className,
@@ -2327,10 +2328,10 @@ var AppHeader = ({
2327
2328
  className: "hover:bg-primary/20 inline-flex"
2328
2329
  };
2329
2330
  if (meta.backAction.href) {
2330
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Button, { ...buttonProps, children: [
2331
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_router.NavLink, { to: meta.backAction.href, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Button, { ...buttonProps, children: [
2331
2332
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react16.ArrowLeftIcon, { className: "size-6" }),
2332
2333
  meta.backAction.content
2333
- ] });
2334
+ ] }) });
2334
2335
  }
2335
2336
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Button, { ...buttonProps, onClick: meta.backAction.onClick, children: [
2336
2337
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react16.ArrowLeftIcon, { className: "size-6" }),
@@ -2816,7 +2817,6 @@ function createPageTemplateHook({
2816
2817
  return {
2817
2818
  ...options.backAction,
2818
2819
  onClick: options.backAction.onClick
2819
- // Keep as is - we'll handle stabilization differently
2820
2820
  };
2821
2821
  }, [options.backAction?.content, options.backAction?.href, options.backAction?.onClick?.toString()]);
2822
2822
  const metadata = (0, import_react5.useMemo)(() => options.metadata, [JSON.stringify(options.metadata)]);