@next-library/theme 1.0.5 → 1.0.7

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/client.js CHANGED
@@ -2567,7 +2567,7 @@ function SearchBar({ language = "en", className }) {
2567
2567
  }, 180);
2568
2568
  return () => clearTimeout(id2);
2569
2569
  }, [query, language, open]);
2570
- const flat = query.trim() ? results : [];
2570
+ const flat = useMemo(() => query.trim() ? results : [], [query, results]);
2571
2571
  useEffect(() => {
2572
2572
  if (!open) return;
2573
2573
  const onKey = (e) => {
@@ -2653,11 +2653,7 @@ function SearchBar({ language = "en", className }) {
2653
2653
  ] }) : /* @__PURE__ */ jsx("p", { className: "px-2 py-8 text-center text-sm text-muted-foreground", children: translations2.searchPlaceholder }) : isLoading && !flat.length ? /* @__PURE__ */ jsxs("p", { className: "px-2 py-8 text-center text-sm text-muted-foreground", children: [
2654
2654
  translations2.search,
2655
2655
  "..."
2656
- ] }) : !flat.length ? /* @__PURE__ */ jsxs("p", { className: "px-2 py-8 text-center text-sm text-muted-foreground", children: [
2657
- 'No results for "',
2658
- query,
2659
- '"'
2660
- ] }) : Object.entries(groups).map(([section, items]) => /* @__PURE__ */ jsxs("div", { className: "mb-1", children: [
2656
+ ] }) : !flat.length ? /* @__PURE__ */ jsx("p", { className: "px-2 py-8 text-center text-sm text-muted-foreground", children: `No results for "${query}"` }) : Object.entries(groups).map(([section, items]) => /* @__PURE__ */ jsxs("div", { className: "mb-1", children: [
2661
2657
  /* @__PURE__ */ jsx("p", { className: "px-2 py-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: section }),
2662
2658
  items.map(({ result, index }) => /* @__PURE__ */ jsxs(
2663
2659
  "button",
@@ -4399,7 +4395,10 @@ function GithubContributors({
4399
4395
  return null;
4400
4396
  }
4401
4397
  return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
4402
- /* @__PURE__ */ jsx("h3", { className: "font-medium text-sm mb-2", children: contributorsLabel }),
4398
+ /* @__PURE__ */ jsxs("h3", { className: "mb-3 flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: [
4399
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "size-3.5", children: /* @__PURE__ */ jsx("path", { d: "M16 19a4 4 0 0 0-8 0M12 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M20 19a3.5 3.5 0 0 0-5-3.2M18.5 10.3a2.6 2.6 0 0 0 0-4.6" }) }),
4400
+ contributorsLabel
4401
+ ] }),
4403
4402
  /* @__PURE__ */ jsxs("div", { className: "isolate flex -space-x-2 overflow-hidden pl-1", children: [
4404
4403
  contributors.slice(0, 8).map((contributor, index) => /* @__PURE__ */ jsx(
4405
4404
  Link3,