@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/dist/index.mjs CHANGED
@@ -819,7 +819,7 @@ function CommandBlock({
819
819
  }
820
820
  };
821
821
  return /* @__PURE__ */ jsxs4("div", { className: "not-typeset mt-6 rounded-2xl border-0 bg-code overflow-hidden", children: [
822
- items.length > 1 && /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-0.5 px-3 pb-1.5 pt-3 justify-between", children: [
822
+ items.length > 1 && /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-0.5 px-3 pb-1.5 pt-2.5 justify-between", children: [
823
823
  /* @__PURE__ */ jsx6("div", { className: "flex items-center gap-0.5 ", children: items.map((it, i) => {
824
824
  const isActive = i === active;
825
825
  return /* @__PURE__ */ jsxs4(
@@ -828,7 +828,7 @@ function CommandBlock({
828
828
  type: "button",
829
829
  onClick: () => setActive(i),
830
830
  className: cn(
831
- "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",
831
+ "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",
832
832
  isActive ? "text-foreground" : "text-muted-foreground hover:bg-accent hover:text-foreground"
833
833
  ),
834
834
  children: [
@@ -862,7 +862,7 @@ function CommandBlock({
862
862
  )
863
863
  ] }),
864
864
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center", children: [
865
- /* @__PURE__ */ jsx6("div", { className: "flex-1 overflow-x-auto", children: /* @__PURE__ */ jsx6("pre", { className: "flex items-center overflow-x-auto px-5 py-4 font-mono text-foreground", children: /* @__PURE__ */ jsx6("code", { children: /* @__PURE__ */ jsx6(TextMorph, { children: cur.command }) }) }) }),
865
+ /* @__PURE__ */ jsx6("div", { className: "flex-1 overflow-x-auto", children: /* @__PURE__ */ jsx6("pre", { className: "flex items-center overflow-x-auto px-4 py-3.5 font-mono text-[13px] leading-5 text-foreground", children: /* @__PURE__ */ jsx6("code", { children: /* @__PURE__ */ jsx6(TextMorph, { children: cur.command }) }) }) }),
866
866
  items.length === 1 && /* @__PURE__ */ jsx6(
867
867
  Button,
868
868
  {
@@ -955,14 +955,16 @@ function CodeBlock({ html, code, className }) {
955
955
  "[&_pre]:m-0",
956
956
  "[&_pre]:overflow-x-auto",
957
957
  "[&_pre]:bg-transparent!",
958
- "[&_pre]:px-5",
959
- "[&_pre]:py-4",
958
+ "[&_pre]:px-4",
959
+ "[&_pre]:py-3.5",
960
960
  "[&_pre]:font-mono",
961
- "[&_pre]:leading-relaxed",
961
+ "[&_pre]:text-[13px]",
962
+ "[&_pre]:leading-5",
962
963
  "[&_code]:bg-transparent!",
963
964
  "[&_code]:p-0",
964
965
  "[&_code]:font-inherit",
965
- "[&_.line]:min-h-6",
966
+ "[&_code]:text-[13px]",
967
+ "[&_.line]:min-h-5",
966
968
  "[&_pre::-webkit-scrollbar]:h-2",
967
969
  "[&_pre::-webkit-scrollbar-track]:bg-transparent",
968
970
  "[&_pre::-webkit-scrollbar-thumb]:rounded-full",
@@ -1259,7 +1261,7 @@ function DocsCode({ code, html }) {
1259
1261
 
1260
1262
  // src/components/layout/docs-layout.tsx
1261
1263
  import { ArrowLeftIcon } from "@radix-ui/react-icons";
1262
- import { motion as motion7, useMotionValueEvent, useScroll } from "motion/react";
1264
+ import { useMotionValueEvent, useScroll } from "motion/react";
1263
1265
  import Link from "next/link";
1264
1266
  import { usePathname } from "next/navigation";
1265
1267
  import * as React3 from "react";
@@ -1450,45 +1452,32 @@ function DocsLayout({
1450
1452
  Link,
1451
1453
  {
1452
1454
  href: indexUrl,
1453
- 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",
1455
+ className: "text-sm text-foreground/50 hover:text-foreground flex items-center gap-1.5 transition-colors duration-200 select-none",
1454
1456
  children: [
1455
1457
  /* @__PURE__ */ jsx12(ArrowLeftIcon, { className: "size-3.5" }),
1456
1458
  indexLabel
1457
1459
  ]
1458
1460
  }
1459
1461
  ),
1460
- /* @__PURE__ */ jsxs9("div", { className: "text-xs font-mono text-muted-foreground opacity-50 flex items-center gap-0.5", children: [
1462
+ /* @__PURE__ */ jsxs9("div", { className: "text-xs font-mono text-foreground/35 flex items-center gap-0.5 tabular-nums", children: [
1461
1463
  /* @__PURE__ */ jsx12(SlidingNumber, { value: progress }),
1462
1464
  "%"
1463
1465
  ] })
1464
1466
  ] }),
1465
- /* @__PURE__ */ jsx12("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__ */ jsx12("div", { className: "flex flex-col gap-1.5 md:gap-2", children: /* @__PURE__ */ jsx12("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) => {
1467
+ /* @__PURE__ */ jsx12("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) => {
1466
1468
  const active = isLinkActive(link.url, link.isAnchor);
1467
- return /* @__PURE__ */ jsxs9(
1469
+ return /* @__PURE__ */ jsx12(
1468
1470
  Link,
1469
1471
  {
1470
1472
  href: link.url,
1471
1473
  onClick: (e) => handleAnchorClick(e, link.url),
1472
- 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"}`,
1473
- children: [
1474
- active && /* @__PURE__ */ jsx12(
1475
- motion7.div,
1476
- {
1477
- layoutId: "activeDocsLinkBg",
1478
- className: "absolute inset-0 bg-secondary/50 rounded-md",
1479
- transition: {
1480
- type: "spring",
1481
- duration: 0.3,
1482
- bounce: 0
1483
- }
1484
- }
1485
- ),
1486
- /* @__PURE__ */ jsx12("span", { className: "relative z-10", children: link.title })
1487
- ]
1474
+ "aria-current": active ? "location" : void 0,
1475
+ className: `text-sm transition-colors duration-200 ${active ? "text-foreground font-medium" : "text-foreground/45 hover:text-foreground/75"}`,
1476
+ children: link.title
1488
1477
  },
1489
1478
  link.title
1490
1479
  );
1491
- }) }) }, group.group)) })
1480
+ }) })
1492
1481
  ] }),
1493
1482
  /* @__PURE__ */ jsx12("main", { className: "flex-1 min-w-0", children })
1494
1483
  ] })
@@ -1506,7 +1495,7 @@ function DocsNavbar({
1506
1495
 
1507
1496
  // src/components/layout/site-header.tsx
1508
1497
  import { GitHubLogoIcon } from "@radix-ui/react-icons";
1509
- import { motion as motion10 } from "motion/react";
1498
+ import { motion as motion9 } from "motion/react";
1510
1499
  import Link2 from "next/link";
1511
1500
  import { usePathname as usePathname2 } from "next/navigation";
1512
1501
 
@@ -1516,7 +1505,7 @@ import { useTheme } from "next-themes";
1516
1505
  import { useEffect as useEffect5, useState as useState5 } from "react";
1517
1506
 
1518
1507
  // src/components/motion-primitives/morph-icon.tsx
1519
- import { AnimatePresence as AnimatePresence4, motion as motion8 } from "motion/react";
1508
+ import { AnimatePresence as AnimatePresence4, motion as motion7 } from "motion/react";
1520
1509
  import { jsx as jsx13 } from "react/jsx-runtime";
1521
1510
  function MorphIcon({
1522
1511
  isActive,
@@ -1543,7 +1532,7 @@ function MorphIcon({
1543
1532
  }
1544
1533
  };
1545
1534
  return /* @__PURE__ */ jsx13(AnimatePresence4, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx13(
1546
- motion8.span,
1535
+ motion7.span,
1547
1536
  {
1548
1537
  initial: "initial",
1549
1538
  animate: "animate",
@@ -1590,7 +1579,7 @@ function ThemeSwitcher() {
1590
1579
  }
1591
1580
 
1592
1581
  // src/components/ui/brand-logo.tsx
1593
- import { AnimatePresence as AnimatePresence5, motion as motion9 } from "motion/react";
1582
+ import { AnimatePresence as AnimatePresence5, motion as motion8 } from "motion/react";
1594
1583
  import { forwardRef, useState as useState6 } from "react";
1595
1584
  import { jsx as jsx15 } from "react/jsx-runtime";
1596
1585
  var BrandLogo = forwardRef(
@@ -1603,7 +1592,7 @@ var BrandLogo = forwardRef(
1603
1592
  };
1604
1593
  const easeOut = [0.23, 1, 0.32, 1];
1605
1594
  return /* @__PURE__ */ jsx15(
1606
- motion9.div,
1595
+ motion8.div,
1607
1596
  {
1608
1597
  ref,
1609
1598
  className: `relative flex items-center justify-center overflow-hidden transition-shadow ${className}`,
@@ -1619,7 +1608,7 @@ var BrandLogo = forwardRef(
1619
1608
  },
1620
1609
  ...props,
1621
1610
  children: /* @__PURE__ */ jsx15(AnimatePresence5, { mode: "popLayout", initial: false, children: isHovered ? /* @__PURE__ */ jsx15(
1622
- motion9.span,
1611
+ motion8.span,
1623
1612
  {
1624
1613
  initial: { opacity: 0, scale: 0.95, filter: "blur(6px)" },
1625
1614
  animate: { opacity: 1, scale: 1, filter: "blur(0px)" },
@@ -1630,7 +1619,7 @@ var BrandLogo = forwardRef(
1630
1619
  },
1631
1620
  "text"
1632
1621
  ) : /* @__PURE__ */ jsx15(
1633
- motion9.div,
1622
+ motion8.div,
1634
1623
  {
1635
1624
  initial: { opacity: 0, scale: 0.95, filter: "blur(6px)" },
1636
1625
  animate: { opacity: 1, scale: 1, filter: "blur(0px)" },
@@ -1781,7 +1770,7 @@ function SiteHeader({
1781
1770
  ),
1782
1771
  children: [
1783
1772
  active && /* @__PURE__ */ jsx18(
1784
- motion10.div,
1773
+ motion9.div,
1785
1774
  {
1786
1775
  layoutId: "activeHeaderNavBg",
1787
1776
  className: "absolute inset-0 bg-secondary/60 rounded-full",
@@ -1851,7 +1840,7 @@ function SiteHeader({
1851
1840
  ),
1852
1841
  children: [
1853
1842
  /* @__PURE__ */ jsx18(GitHubLogoIcon, {}),
1854
- /* @__PURE__ */ jsx18("span", { className: "hidden sm:inline", children: "GitHub" })
1843
+ /* @__PURE__ */ jsx18("span", { className: "hidden sm:inline text-sm", children: "GitHub" })
1855
1844
  ]
1856
1845
  }
1857
1846
  )
@@ -1912,12 +1901,12 @@ function SiteProvider({ children }) {
1912
1901
  }
1913
1902
 
1914
1903
  // src/components/layout/site-template.tsx
1915
- import { motion as motion11, useReducedMotion as useReducedMotion4 } from "motion/react";
1904
+ import { motion as motion10, useReducedMotion as useReducedMotion4 } from "motion/react";
1916
1905
  import { jsx as jsx22 } from "react/jsx-runtime";
1917
1906
  function SiteTemplate({ children }) {
1918
1907
  const reduced = useReducedMotion4();
1919
1908
  return /* @__PURE__ */ jsx22(
1920
- motion11.div,
1909
+ motion10.div,
1921
1910
  {
1922
1911
  initial: reduced ? false : { opacity: 0 },
1923
1912
  animate: { opacity: 1 },