twico-ui 1.2.0 → 1.3.1

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/llms.txt CHANGED
@@ -165,13 +165,18 @@ Components take icons as **React nodes** via props like `leftIcon`, `rightIcon`,
165
165
  bring any icon (inline SVG, or any icon library). Icons inherit `currentColor` and the control's size.
166
166
 
167
167
  For convenience, **`twico-ui/icons` re-exports the full [Lucide](https://lucide.dev) icon set** (the
168
- visual language Twico UI is built on). It needs the **optional peer** `lucide-react`
169
- (`npm install lucide-react`) and is tree-shakeable — the core `twico-ui` package itself stays
170
- zero-dependency. The icons are plain SVG components (no hooks), so they work in Server Components too.
168
+ visual language Twico UI is built on) **plus 31 curated brand icons** Lucide omits. Lucide icons need
169
+ the **optional peer** `lucide-react` (`npm install lucide-react`) and are tree-shakeable; the brand
170
+ icons (`GithubIcon`, `VercelIcon`, `FigmaIcon`, `XTwitterIcon`, …) are zero-dependency inline SVG
171
+ built in — **no peer needed**. The core `twico-ui` package itself stays zero-dependency. All icons
172
+ are plain SVG components (no hooks), so they work in Server Components too. Names use the `*Icon`
173
+ suffix; icons take `size` (default 24) and `color` (default `currentColor`).
171
174
 
172
175
  ```jsx
173
- import { Home, Search } from "twico-ui/icons"; // needs the optional `lucide-react` peer
174
- <Button leftIcon={<Home size={16} />}>Home</Button>
176
+ import { HomeIcon, SearchIcon } from "twico-ui/icons"; // Lucide — needs the optional `lucide-react` peer
177
+ import { GithubIcon } from "twico-ui/icons"; // brand — no peer needed
178
+ <Button leftIcon={<HomeIcon size={16} />}>Home</Button>
179
+ <Button variant="outline" leftIcon={<GithubIcon size={16} />}>Star</Button>
175
180
 
176
181
  // …or pass your own inline SVG (no peer needed):
177
182
  <Button leftIcon={<svg width="16" height="16" viewBox="0 0 24 24" /* … */ />}>Add item</Button>
@@ -1741,7 +1746,7 @@ Props:
1741
1746
  import { Navbar } from "twico-ui";
1742
1747
 
1743
1748
  <Navbar
1744
- brand={<>twico<span style={{ color: "var(--color-primary)" }}>UI</span></>}
1749
+ brand={<>Twico <span style={{ color: "var(--color-primary)" }}>UI</span></>}
1745
1750
  links={[
1746
1751
  { label: "Dashboard", active: true },
1747
1752
  { label: "Projects" },
@@ -1774,7 +1779,7 @@ const MailIcon = () => (<svg width="18" height="18" viewBox="0 0 24 24" fill="no
1774
1779
  const CogIcon = () => (<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round"><circle cx="12" cy="12" r="3" /><path d="M12 3v3M12 18v3M3 12h3M18 12h3" /></svg>);
1775
1780
 
1776
1781
  <Sidebar
1777
- brand={<>twico<span style={{ color: "var(--color-primary)" }}>UI</span></>}
1782
+ brand={<>Twico <span style={{ color: "var(--color-primary)" }}>UI</span></>}
1778
1783
  items={[
1779
1784
  { section: "Main" },
1780
1785
  { label: "Dashboard", icon: <HomeIcon />, active: true },
@@ -2458,5 +2463,5 @@ export function useId(prefix?: string): string;
2458
2463
 
2459
2464
  ---
2460
2465
 
2461
- _Generated by `scripts/gen-llms.mjs` from twico-ui v1.2.0. Do not edit by hand — run `npm run gen:llms`. Source of truth: the component `.d.ts` files and `hooks/index.d.ts`._
2466
+ _Generated by `scripts/gen-llms.mjs` from twico-ui v1.3.1. Do not edit by hand — run `npm run gen:llms`. Source of truth: the component `.d.ts` files and `hooks/index.d.ts`._
2462
2467
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twico-ui",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "Twico UI — a free, modern, themeable React + Tailwind-friendly component library. 61 components with dark mode, motion, and accessibility built in.",
5
5
  "license": "MIT",
6
6
  "author": "Twico UI",