@sarunyu/system-one 3.0.3 → 4.0.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/AGENTS.md +102 -0
- package/README.md +75 -39
- package/dist/index.cjs +1103 -252
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1105 -254
- package/dist/index.js.map +1 -1
- package/dist/src/components/card.d.ts +34 -11
- package/dist/src/components/card.d.ts.map +1 -1
- package/dist/src/components/checkbox.d.ts +28 -0
- package/dist/src/components/checkbox.d.ts.map +1 -0
- package/dist/src/components/radio.d.ts +27 -0
- package/dist/src/components/radio.d.ts.map +1 -0
- package/dist/src/components/table.d.ts +50 -0
- package/dist/src/components/table.d.ts.map +1 -0
- package/dist/src/index.d.ts +7 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/llms.txt +565 -269
- package/package.json +4 -2
- package/dist/src/components/layout.d.ts +0 -50
- package/dist/src/components/layout.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarunyu/system-one",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
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": [
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
],
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|
|
42
|
-
"llms.txt"
|
|
42
|
+
"llms.txt",
|
|
43
|
+
"AGENTS.md",
|
|
44
|
+
"README.md"
|
|
43
45
|
],
|
|
44
46
|
"scripts": {
|
|
45
47
|
"dev": "vite",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type PageWidth = "sm" | "md" | "lg" | "xl" | "full";
|
|
3
|
-
export interface PageProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
/** Container max-width. Default "lg" (1200px). */
|
|
5
|
-
width?: PageWidth;
|
|
6
|
-
}
|
|
7
|
-
export declare const Page: React.ForwardRefExoticComponent<PageProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
-
export interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
9
|
-
title: React.ReactNode;
|
|
10
|
-
description?: React.ReactNode;
|
|
11
|
-
/** Right-aligned actions (buttons, links). */
|
|
12
|
-
actions?: React.ReactNode;
|
|
13
|
-
/** Content above the title (badges, breadcrumb). */
|
|
14
|
-
eyebrow?: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
17
|
-
export interface SectionProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
18
|
-
title?: React.ReactNode;
|
|
19
|
-
description?: React.ReactNode;
|
|
20
|
-
/** Right-aligned actions beside the title. */
|
|
21
|
-
actions?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
|
|
24
|
-
export interface ToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
25
|
-
/** Right-aligned cluster (pushed with ml-auto). */
|
|
26
|
-
end?: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
export type CardGridCols = 2 | 3 | 4;
|
|
30
|
-
export interface CardGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
|
-
/** Max columns at wide breakpoints. Default 3. */
|
|
32
|
-
cols?: CardGridCols;
|
|
33
|
-
}
|
|
34
|
-
export declare const CardGrid: React.ForwardRefExoticComponent<CardGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
export type StackGap = 1 | 2 | 3 | 4 | 6 | 8 | 10 | 12;
|
|
36
|
-
export type StackDirection = "row" | "col";
|
|
37
|
-
export type StackAlign = "start" | "center" | "end" | "stretch";
|
|
38
|
-
export type StackJustify = "start" | "center" | "end" | "between" | "around";
|
|
39
|
-
export interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
40
|
-
/** Flex direction. Default "col". */
|
|
41
|
-
direction?: StackDirection;
|
|
42
|
-
/** Spacing scale (maps to Tailwind gap-*). Default 4 (16px). */
|
|
43
|
-
gap?: StackGap;
|
|
44
|
-
align?: StackAlign;
|
|
45
|
-
justify?: StackJustify;
|
|
46
|
-
/** Wrap children on row direction. */
|
|
47
|
-
wrap?: boolean;
|
|
48
|
-
}
|
|
49
|
-
export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
-
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/components/layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAU3D,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,kDAAkD;IAClD,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,+EAiBf,CAAC;AAIH,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,oDAAoD;IACpD,OAA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