@sarunyu/system-one 4.9.30 → 4.9.31
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/AGENTS.md +2 -1
- package/DESIGN.md +2 -2
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/src/components/breadcrumb.d.ts +17 -0
- package/dist/src/components/breadcrumb.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/llms.txt +25 -3
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @sarunyu/system-one — AI usage guide
|
|
2
2
|
|
|
3
|
-
React component library. Tailwind CSS v4 + CSS custom properties.
|
|
3
|
+
React component library. Tailwind CSS v4 + CSS custom properties. 27 components.
|
|
4
4
|
Built for AI-powered UI generation (v0, Lovable, Figma Make, Cursor).
|
|
5
5
|
|
|
6
6
|
**This file is the contract.** Read it top-to-bottom before generating any screen
|
|
@@ -12,7 +12,7 @@ that uses this library. The rules are non-negotiable.
|
|
|
12
12
|
|
|
13
13
|
1. **Use library components for every element it provides.** Never recreate
|
|
14
14
|
Button, Input, Tag, Dropdown, Card, Tab, Checkbox, Toggle, Radio, DateInput, TimeInput,
|
|
15
|
-
Table, SearchInput, TextArea, Chip, Modal, BottomSheet, Alert, Toast, Notification, Badge, Avatar, AvatarStack as raw HTML.
|
|
15
|
+
Table, SearchInput, TextArea, Chip, Modal, BottomSheet, Alert, Toast, Notification, Badge, Avatar, AvatarStack, Breadcrumb as raw HTML.
|
|
16
16
|
2. **Never override a component's built-in styles.** Every library component manages its own colors, shadows, padding, radius, and typography internally. Only use `className` on library components for **layout** (`w-*`, `max-w-*`, `flex`, `grid`, `gap-*`, `m-*`, `col-span-*`). Never pass `bg-*`, `shadow-*`, `text-*`, `p-*`, `rounded-*`, or `border-*` in `className` on a library component.
|
|
17
17
|
3. **Use design-token classes for color and typography.** Never `text-blue-600`,
|
|
18
18
|
`bg-gray-100`, `text-[#3b82f6]`. The token table below is exhaustive — if a
|
|
@@ -142,6 +142,8 @@ import {
|
|
|
142
142
|
Dropdown, DropdownMultiple, OptionList,
|
|
143
143
|
Checkbox, Toggle, Radio,
|
|
144
144
|
DateInput, TimeInput,
|
|
145
|
+
// Navigation
|
|
146
|
+
Breadcrumb,
|
|
145
147
|
// Display
|
|
146
148
|
Avatar, AvatarStack,
|
|
147
149
|
Tag, StatusTag, Chip,
|
|
@@ -868,6 +870,26 @@ Props: `items` (array of `{ type?, src?, alt?, initials? }`), `size?` (`"small"`
|
|
|
868
870
|
|
|
869
871
|
---
|
|
870
872
|
|
|
873
|
+
### Breadcrumb
|
|
874
|
+
|
|
875
|
+
Horizontal navigation trail rendered as a `<nav>` with `/` separators. The last item is always the current page (active state). Items with `href` render as anchor tags; items without render as plain text.
|
|
876
|
+
|
|
877
|
+
```tsx
|
|
878
|
+
<Breadcrumb
|
|
879
|
+
items={[
|
|
880
|
+
{ label: "Home", href: "/" },
|
|
881
|
+
{ label: "Products", href: "/products" },
|
|
882
|
+
{ label: "Detail" },
|
|
883
|
+
]}
|
|
884
|
+
/>
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
Props: `items` (`BreadcrumbItem[]` — each has `label: string`, `href?: string`), `className?`.
|
|
888
|
+
|
|
889
|
+
The last item in `items` is always treated as the current page — never pass `href` on it.
|
|
890
|
+
|
|
891
|
+
---
|
|
892
|
+
|
|
871
893
|
### Notification
|
|
872
894
|
|
|
873
895
|
Bell-icon trigger + popover panel showing grouped notification rows. Handles badge count, auto-clear on open, and keyboard navigation. Uses `<Badge variant="notification">` internally.
|
|
@@ -1521,4 +1543,4 @@ Rules for custom components:
|
|
|
1521
1543
|
- Border → `border-border` (or `border-divider` for light separators).
|
|
1522
1544
|
- Typography → use `<h1>`…`<h4>` and body text inherits from `--foreground`.
|
|
1523
1545
|
|
|
1524
|
-
If the thing you're building is conceptually a button/input/tag/chip/tab/card/table — **do not build a custom one. Use the library's component.** The only reason to build custom is when the library truly doesn't cover the concept (e.g. a bespoke hero section, a custom chart
|
|
1546
|
+
If the thing you're building is conceptually a button/input/tag/chip/tab/card/table/breadcrumb — **do not build a custom one. Use the library's component.** The only reason to build custom is when the library truly doesn't cover the concept (e.g. a bespoke hero section, a custom chart).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarunyu/system-one",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A production-ready React design system built for AI-powered web generation tools (Figma Make, Lovable, V0). Tailwind CSS v4 + CSS custom properties for full theming support.",
|
|
6
6
|
"keywords": [
|