@inklu/docs 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @inklu/docs
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - typeset changes
8
+
3
9
  ## 0.2.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -913,7 +913,7 @@ function CommandBlock({
913
913
  }
914
914
  };
915
915
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "not-typeset mt-6 rounded-2xl border-0 bg-code overflow-hidden", children: [
916
- items.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-0.5 px-3 pb-1.5 pt-3 justify-between", children: [
916
+ items.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-0.5 px-3 pb-1.5 pt-2.5 justify-between", children: [
917
917
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center gap-0.5 ", children: items.map((it, i) => {
918
918
  const isActive = i === active;
919
919
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
@@ -922,7 +922,7 @@ function CommandBlock({
922
922
  type: "button",
923
923
  onClick: () => setActive(i),
924
924
  className: cn(
925
- "relative cursor-pointer rounded-md px-1.5 py-0.5 font-mono outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
925
+ "relative cursor-pointer rounded-md px-1.5 py-0.5 font-mono text-xs outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
926
926
  isActive ? "text-foreground" : "text-muted-foreground hover:bg-accent hover:text-foreground"
927
927
  ),
928
928
  children: [
@@ -956,7 +956,7 @@ function CommandBlock({
956
956
  )
957
957
  ] }),
958
958
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center", children: [
959
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex-1 overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("pre", { className: "flex items-center overflow-x-auto px-5 py-4 font-mono text-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("code", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextMorph, { children: cur.command }) }) }) }),
959
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex-1 overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("pre", { className: "flex items-center overflow-x-auto px-4 py-3.5 font-mono text-[13px] leading-5 text-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("code", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextMorph, { children: cur.command }) }) }) }),
960
960
  items.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
961
961
  Button,
962
962
  {
@@ -1049,14 +1049,16 @@ function CodeBlock({ html, code, className }) {
1049
1049
  "[&_pre]:m-0",
1050
1050
  "[&_pre]:overflow-x-auto",
1051
1051
  "[&_pre]:bg-transparent!",
1052
- "[&_pre]:px-5",
1053
- "[&_pre]:py-4",
1052
+ "[&_pre]:px-4",
1053
+ "[&_pre]:py-3.5",
1054
1054
  "[&_pre]:font-mono",
1055
- "[&_pre]:leading-relaxed",
1055
+ "[&_pre]:text-[13px]",
1056
+ "[&_pre]:leading-5",
1056
1057
  "[&_code]:bg-transparent!",
1057
1058
  "[&_code]:p-0",
1058
1059
  "[&_code]:font-inherit",
1059
- "[&_.line]:min-h-6",
1060
+ "[&_code]:text-[13px]",
1061
+ "[&_.line]:min-h-5",
1060
1062
  "[&_pre::-webkit-scrollbar]:h-2",
1061
1063
  "[&_pre::-webkit-scrollbar-track]:bg-transparent",
1062
1064
  "[&_pre::-webkit-scrollbar-thumb]:rounded-full",
@@ -1539,45 +1541,32 @@ function DocsLayout({
1539
1541
  import_link.default,
1540
1542
  {
1541
1543
  href: indexUrl,
1542
- className: "text-sm text-muted-foreground hover:text-foreground flex items-center gap-1.5 transition-opacity duration-200 select-none opacity-60 hover:opacity-100",
1544
+ className: "text-sm text-foreground/50 hover:text-foreground flex items-center gap-1.5 transition-colors duration-200 select-none",
1543
1545
  children: [
1544
1546
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_icons2.ArrowLeftIcon, { className: "size-3.5" }),
1545
1547
  indexLabel
1546
1548
  ]
1547
1549
  }
1548
1550
  ),
1549
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "text-xs font-mono text-muted-foreground opacity-50 flex items-center gap-0.5", children: [
1551
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "text-xs font-mono text-foreground/35 flex items-center gap-0.5 tabular-nums", children: [
1550
1552
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SlidingNumber, { value: progress }),
1551
1553
  "%"
1552
1554
  ] })
1553
1555
  ] }),
1554
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-row flex-wrap gap-x-6 gap-y-2 md:flex-col md:gap-y-4", children: links.map((group) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col gap-1.5 md:gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("nav", { className: "flex flex-row flex-wrap gap-x-1 gap-y-1 md:flex-col md:gap-y-1", children: group.items.map((link) => {
1556
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("nav", { className: "flex flex-row flex-wrap gap-x-4 gap-y-1.5 md:flex-col md:gap-y-2", children: links.flatMap((group) => group.items).map((link) => {
1555
1557
  const active = isLinkActive(link.url, link.isAnchor);
1556
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1558
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1557
1559
  import_link.default,
1558
1560
  {
1559
1561
  href: link.url,
1560
1562
  onClick: (e) => handleAnchorClick(e, link.url),
1561
- className: `relative text-sm transition-colors duration-200 px-2 py-1.5 -ml-2 rounded-md ${active ? "text-foreground font-medium" : "text-muted-foreground hover:text-foreground"}`,
1562
- children: [
1563
- active && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1564
- import_react16.motion.div,
1565
- {
1566
- layoutId: "activeDocsLinkBg",
1567
- className: "absolute inset-0 bg-secondary/50 rounded-md",
1568
- transition: {
1569
- type: "spring",
1570
- duration: 0.3,
1571
- bounce: 0
1572
- }
1573
- }
1574
- ),
1575
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "relative z-10", children: link.title })
1576
- ]
1563
+ "aria-current": active ? "location" : void 0,
1564
+ className: `text-sm transition-colors duration-200 ${active ? "text-foreground font-medium" : "text-foreground/45 hover:text-foreground/75"}`,
1565
+ children: link.title
1577
1566
  },
1578
1567
  link.title
1579
1568
  );
1580
- }) }) }, group.group)) })
1569
+ }) })
1581
1570
  ] }),
1582
1571
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("main", { className: "flex-1 min-w-0", children })
1583
1572
  ] })
@@ -1940,7 +1929,7 @@ function SiteHeader({
1940
1929
  ),
1941
1930
  children: [
1942
1931
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons4.GitHubLogoIcon, {}),
1943
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "hidden sm:inline", children: "GitHub" })
1932
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "hidden sm:inline text-sm", children: "GitHub" })
1944
1933
  ]
1945
1934
  }
1946
1935
  )