@dilipod/ui 0.4.32 → 0.4.34

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.mjs CHANGED
@@ -652,7 +652,7 @@ var sheetVariants = cva(
652
652
  }
653
653
  }
654
654
  );
655
- var SheetContent = React51.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
655
+ var SheetContent = React51.forwardRef(({ side = "right", className, children, hideClose, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
656
656
  /* @__PURE__ */ jsx(SheetOverlay, {}),
657
657
  /* @__PURE__ */ jsxs(
658
658
  SheetPrimitive.Content,
@@ -662,6 +662,7 @@ var SheetContent = React51.forwardRef(({ side = "right", className, children, ..
662
662
  ...props,
663
663
  children: [
664
664
  children,
665
+ !hideClose && // @ts-expect-error - Radix Dialog Close accepts className and children at runtime
665
666
  /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [
666
667
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
667
668
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
@@ -4152,24 +4153,17 @@ var SettingsNav = React51.forwardRef(
4152
4153
  const Link2 = LinkComponent || "a";
4153
4154
  return /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-8", className), ...props, children: groups.map((group) => /* @__PURE__ */ jsxs("div", { children: [
4154
4155
  /* @__PURE__ */ jsx("h2", { className: "text-sm font-medium text-muted-foreground uppercase tracking-wide mb-3 px-1", children: group.title }),
4155
- /* @__PURE__ */ jsx("div", { className: "space-y-1", children: group.items.map((item) => /* @__PURE__ */ jsxs(
4156
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3", children: group.items.map((item) => /* @__PURE__ */ jsxs(
4156
4157
  Link2,
4157
4158
  {
4158
4159
  href: item.href,
4159
- className: "group flex items-center gap-4 p-4 rounded-sm transition-all hover:bg-gray-50 border border-transparent hover:border-gray-200",
4160
+ className: "group flex items-start gap-4 p-5 rounded-lg transition-all bg-white border border-gray-200 hover:border-[var(--cyan)]/40 hover:shadow-sm",
4160
4161
  children: [
4161
- /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-10 h-10 rounded-sm bg-gray-100 group-hover:bg-[var(--cyan)]/10 transition-colors", children: /* @__PURE__ */ jsx("span", { className: "text-gray-600 group-hover:text-[var(--cyan)] transition-colors [&>svg]:w-5 [&>svg]:h-5", children: item.icon }) }),
4162
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-10 h-10 rounded-lg bg-gray-100 group-hover:bg-[var(--cyan)]/10 transition-colors shrink-0", children: /* @__PURE__ */ jsx("span", { className: "text-gray-600 group-hover:text-[var(--cyan)] transition-colors [&>svg]:w-5 [&>svg]:h-5", children: item.icon }) }),
4162
4163
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
4163
4164
  /* @__PURE__ */ jsx("h3", { className: "font-medium text-[var(--black)] group-hover:text-[var(--cyan)] transition-colors", children: item.title }),
4164
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: item.description })
4165
- ] }),
4166
- /* @__PURE__ */ jsx(
4167
- CaretRight,
4168
- {
4169
- size: 18,
4170
- className: "text-gray-300 group-hover:text-[var(--cyan)] group-hover:translate-x-0.5 transition-all shrink-0"
4171
- }
4172
- )
4165
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-0.5 leading-snug", children: item.description })
4166
+ ] })
4173
4167
  ]
4174
4168
  },
4175
4169
  item.href