@sarunyu/system-one 4.9.30 → 4.9.33
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 +5 -1
- package/DESIGN.md +2 -2
- package/dist/index.cjs +3601 -167
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3600 -166
- 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/components/date-input.d.ts.map +1 -1
- package/dist/src/components/notification.d.ts.map +1 -1
- package/dist/src/components/pagination.d.ts +32 -0
- package/dist/src/components/pagination.d.ts.map +1 -0
- package/dist/src/components/popover.d.ts +41 -0
- package/dist/src/components/popover.d.ts.map +1 -0
- package/dist/src/components/time-input.d.ts.map +1 -1
- package/dist/src/components/tooltip.d.ts +33 -0
- package/dist/src/components/tooltip.d.ts.map +1 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/llms.txt +132 -4
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -25,6 +25,10 @@ in this package.** This file is the short version: the rules you must follow.
|
|
|
25
25
|
- Filter buttons with count badges → use `<Badge>` (`variant="button"`).
|
|
26
26
|
- Notification bell + list panel → use `<Notification>`. Never use `<Badge variant="notification">` standalone or wire it to a custom `onClick` (toast, popover, etc.) — `<Notification>` handles both the bell and the panel.
|
|
27
27
|
- User profile photos, initials circles, or silhouette placeholders → use `<Avatar>`. For grouped users, use `<AvatarStack>`. Never hand-roll `<img>` or `<div>` avatar shapes.
|
|
28
|
+
- Custom breadcrumb / navigation trails → use `<Breadcrumb>`.
|
|
29
|
+
- Custom numbered pagination, banner slide dots, or carousel progress bars → use `<Pagination>` / `<PaginationBanner>` / `<PaginationCarousel>`.
|
|
30
|
+
- Custom tooltips, `title` attributes, or hand-rolled hover popovers → use `<Tooltip>`.
|
|
31
|
+
- Custom floating panels triggered by click, hand-rolled popovers with `useState` + absolute positioning → use `<Popover>`.
|
|
28
32
|
|
|
29
33
|
2. **Use token-backed Tailwind classes for color.** Never emit hard-coded colors:
|
|
30
34
|
- Hex (`#3b82f6`), arbitrary (`bg-[#...]`), and palette utilities
|
|
@@ -155,7 +159,7 @@ Build it with tokens. Never introduce new colors.
|
|
|
155
159
|
|
|
156
160
|
If the custom thing is conceptually a button/input/tag/chip/tab/card/table,
|
|
157
161
|
**stop and use the library's component instead.** Only build custom when the
|
|
158
|
-
concept isn't covered (hero section, chart,
|
|
162
|
+
concept isn't covered (hero section, chart, etc.).
|
|
159
163
|
|
|
160
164
|
## Read this before generating code
|
|
161
165
|
|
package/DESIGN.md
CHANGED
|
@@ -248,9 +248,9 @@ Use sparingly. Corporate UIs prefer border separation over heavy elevation.
|
|
|
248
248
|
|
|
249
249
|
## Component library
|
|
250
250
|
|
|
251
|
-
This design system ships
|
|
251
|
+
This design system ships 30 pre-built components. **Always use them — never recreate with raw HTML.**
|
|
252
252
|
|
|
253
|
-
Key components: `Button`, `Input`, `TextArea`, `SearchInput`, `Dropdown`, `DropdownMultiple`, `Checkbox`, `Radio`, `Toggle`, `DateInput`, `TimeInput`, `Avatar`, `AvatarStack`, `Tag`, `StatusTag`, `Chip`, `TabGroup`, `Card`, `Table` + `TableRow` + `TableHeaderCell` + `TableCell`, `Modal`, `BottomSheet`, `Alert`, `Toast`, `ToastStack`, `Notification`, `Badge`.
|
|
253
|
+
Key components: `Button`, `Input`, `TextArea`, `SearchInput`, `Dropdown`, `DropdownMultiple`, `Checkbox`, `Radio`, `Toggle`, `DateInput`, `TimeInput`, `Avatar`, `AvatarStack`, `Breadcrumb`, `Pagination`, `PaginationBanner`, `PaginationCarousel`, `Tag`, `StatusTag`, `Chip`, `TabGroup`, `Card`, `Table` + `TableRow` + `TableHeaderCell` + `TableCell`, `Modal`, `BottomSheet`, `Alert`, `Toast`, `ToastStack`, `Notification`, `Badge`, `Tooltip`, `Popover`.
|
|
254
254
|
|
|
255
255
|
For props, variants, and usage rules → read `AGENTS.md` and `llms.txt` in this package.
|
|
256
256
|
|