@next-library/theme 1.0.6 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"github-contributors.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/sidebar-right/github-contributors.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,UAAU,EACV,MAAM,EACN,YAAiB,GAClB,EAAE,uBAAuB,kDAkDzB"}
1
+ {"version":3,"file":"github-contributors.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/sidebar-right/github-contributors.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,UAAU,EACV,MAAM,EACN,YAAiB,GAClB,EAAE,uBAAuB,kDAuDzB"}
package/dist/index.js CHANGED
@@ -3625,7 +3625,7 @@ function SearchBar2({ language = "en", className }) {
3625
3625
  }, 180);
3626
3626
  return () => clearTimeout(id2);
3627
3627
  }, [query, language, open]);
3628
- const flat = query.trim() ? results : [];
3628
+ const flat = useMemo(() => query.trim() ? results : [], [query, results]);
3629
3629
  useEffect(() => {
3630
3630
  if (!open) return;
3631
3631
  const onKey = (e) => {
@@ -3711,11 +3711,7 @@ function SearchBar2({ language = "en", className }) {
3711
3711
  ] }) : /* @__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: [
3712
3712
  translations2.search,
3713
3713
  "..."
3714
- ] }) : !flat.length ? /* @__PURE__ */ jsxs("p", { className: "px-2 py-8 text-center text-sm text-muted-foreground", children: [
3715
- 'No results for "',
3716
- query,
3717
- '"'
3718
- ] }) : Object.entries(groups).map(([section, items]) => /* @__PURE__ */ jsxs("div", { className: "mb-1", children: [
3714
+ ] }) : !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: [
3719
3715
  /* @__PURE__ */ jsx("p", { className: "px-2 py-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: section }),
3720
3716
  items.map(({ result, index }) => /* @__PURE__ */ jsxs(
3721
3717
  "button",
@@ -5316,7 +5312,10 @@ function GithubContributors2({
5316
5312
  return null;
5317
5313
  }
5318
5314
  return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
5319
- /* @__PURE__ */ jsx("h3", { className: "font-medium text-sm mb-2", children: contributorsLabel }),
5315
+ /* @__PURE__ */ jsxs("h3", { className: "mb-3 flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: [
5316
+ /* @__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" }) }),
5317
+ contributorsLabel
5318
+ ] }),
5320
5319
  /* @__PURE__ */ jsxs("div", { className: "isolate flex -space-x-2 overflow-hidden pl-1", children: [
5321
5320
  contributors.slice(0, 8).map((contributor, index) => /* @__PURE__ */ jsx(
5322
5321
  Link2,