@tirth_jasoliya/ui 1.0.1 → 1.0.3

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
@@ -2065,7 +2065,7 @@ function DataTemplate({
2065
2065
  ] }) }) });
2066
2066
  }
2067
2067
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cn("w-full flex gap-2 flex-col h-full", gridContainerClasses), children: [
2068
- header && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Card, { className: "shadow-sm border-0 bg-gradient-to-r from-background to-muted/20", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardContent, { className: "p-6", children: header }) }),
2068
+ header && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Card, { className: "shadow-sm border-0 py-0 text-xl font-bold", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardContent, { className: "p-2", children: header }) }),
2069
2069
  toolbar && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2070
2070
  DataTemplateToolbar,
2071
2071
  {
@@ -2132,8 +2132,8 @@ function DataTemplate({
2132
2132
  );
2133
2133
  })
2134
2134
  }
2135
- ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [
2136
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "text-6xl mb-4", children: emptyIcon || "\u{1F4CB}" }),
2135
+ ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col gap-4 items-center justify-center py-12 text-center", children: [
2136
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "text-6xl", children: emptyIcon || "\u{1F4CB}" }),
2137
2137
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-lg font-medium text-muted-foreground mb-2", children: emptyMessage }),
2138
2138
  (globalFilter || Object.values(fieldFilters).some((v) => v)) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "outline", onClick: handleClearFilters, children: "Clear Filters" })
2139
2139
  ] })
@@ -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)]);