@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.js CHANGED
@@ -2024,7 +2024,7 @@ function DataTemplate({
2024
2024
  ] }) }) });
2025
2025
  }
2026
2026
  return /* @__PURE__ */ jsxs15("div", { className: cn("w-full flex gap-2 flex-col h-full", gridContainerClasses), children: [
2027
- header && /* @__PURE__ */ jsx24(Card, { className: "shadow-sm border-0 bg-gradient-to-r from-background to-muted/20", children: /* @__PURE__ */ jsx24(CardContent, { className: "p-6", children: header }) }),
2027
+ header && /* @__PURE__ */ jsx24(Card, { className: "shadow-sm border-0 py-0 text-xl font-bold", children: /* @__PURE__ */ jsx24(CardContent, { className: "p-2", children: header }) }),
2028
2028
  toolbar && /* @__PURE__ */ jsx24(
2029
2029
  DataTemplateToolbar,
2030
2030
  {
@@ -2091,8 +2091,8 @@ function DataTemplate({
2091
2091
  );
2092
2092
  })
2093
2093
  }
2094
- ) : /* @__PURE__ */ jsxs15("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [
2095
- /* @__PURE__ */ jsx24("div", { className: "text-6xl mb-4", children: emptyIcon || "\u{1F4CB}" }),
2094
+ ) : /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-4 items-center justify-center py-12 text-center", children: [
2095
+ /* @__PURE__ */ jsx24("div", { className: "text-6xl", children: emptyIcon || "\u{1F4CB}" }),
2096
2096
  /* @__PURE__ */ jsx24("p", { className: "text-lg font-medium text-muted-foreground mb-2", children: emptyMessage }),
2097
2097
  (globalFilter || Object.values(fieldFilters).some((v) => v)) && /* @__PURE__ */ jsx24(Button, { variant: "outline", onClick: handleClearFilters, children: "Clear Filters" })
2098
2098
  ] })
@@ -2271,6 +2271,7 @@ var AppContainer = ({
2271
2271
 
2272
2272
  // src/components/layouts/app-header.tsx
2273
2273
  import { ArrowLeftIcon, ChevronRight as ChevronRight2 } from "lucide-react";
2274
+ import { NavLink } from "react-router";
2274
2275
  import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
2275
2276
  var AppHeader = ({
2276
2277
  className,
@@ -2286,10 +2287,10 @@ var AppHeader = ({
2286
2287
  className: "hover:bg-primary/20 inline-flex"
2287
2288
  };
2288
2289
  if (meta.backAction.href) {
2289
- return /* @__PURE__ */ jsxs17(Button, { ...buttonProps, children: [
2290
+ return /* @__PURE__ */ jsx27(NavLink, { to: meta.backAction.href, children: /* @__PURE__ */ jsxs17(Button, { ...buttonProps, children: [
2290
2291
  /* @__PURE__ */ jsx27(ArrowLeftIcon, { className: "size-6" }),
2291
2292
  meta.backAction.content
2292
- ] });
2293
+ ] }) });
2293
2294
  }
2294
2295
  return /* @__PURE__ */ jsxs17(Button, { ...buttonProps, onClick: meta.backAction.onClick, children: [
2295
2296
  /* @__PURE__ */ jsx27(ArrowLeftIcon, { className: "size-6" }),
@@ -2775,7 +2776,6 @@ function createPageTemplateHook({
2775
2776
  return {
2776
2777
  ...options.backAction,
2777
2778
  onClick: options.backAction.onClick
2778
- // Keep as is - we'll handle stabilization differently
2779
2779
  };
2780
2780
  }, [options.backAction?.content, options.backAction?.href, options.backAction?.onClick?.toString()]);
2781
2781
  const metadata = useMemo4(() => options.metadata, [JSON.stringify(options.metadata)]);