@dilipod/ui 0.4.35 → 0.4.36

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
@@ -2358,7 +2358,18 @@ var Sidebar = React51.forwardRef(
2358
2358
  ]
2359
2359
  }
2360
2360
  ),
2361
- helpLink && /* @__PURE__ */ jsxs(
2361
+ helpLink && (helpLink.onClick ? /* @__PURE__ */ jsxs(
2362
+ "button",
2363
+ {
2364
+ type: "button",
2365
+ onClick: helpLink.onClick,
2366
+ className: "flex w-full items-center gap-3 rounded-sm px-3 py-2 text-sm text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",
2367
+ children: [
2368
+ helpLink.icon && /* @__PURE__ */ jsx(helpLink.icon, { className: "h-4 w-4" }),
2369
+ helpLink.label
2370
+ ]
2371
+ }
2372
+ ) : /* @__PURE__ */ jsxs(
2362
2373
  "a",
2363
2374
  {
2364
2375
  href: helpLink.href,
@@ -2368,7 +2379,7 @@ var Sidebar = React51.forwardRef(
2368
2379
  helpLink.label
2369
2380
  ]
2370
2381
  }
2371
- )
2382
+ ))
2372
2383
  ] })
2373
2384
  ]
2374
2385
  }