czero 0.1.0 → 0.2.5
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/README.md +209 -169
- package/dist/cli/index.js +4678 -28
- package/dist/components.css +2158 -336
- package/dist/react/core/component-defaults.d.ts +8 -0
- package/dist/react/core/component-defaults.d.ts.map +1 -0
- package/dist/react/core/types/config.d.ts +649 -0
- package/dist/react/core/types/config.d.ts.map +1 -0
- package/dist/react/index.cjs +12261 -18
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.ts +536 -6
- package/dist/react/index.js +12213 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/presets/index.d.ts +45 -0
- package/dist/react/presets/index.d.ts.map +1 -0
- package/dist/react/react/components/accordion.d.ts +30 -0
- package/dist/react/react/components/accordion.d.ts.map +1 -0
- package/dist/react/react/components/alert.d.ts +7 -0
- package/dist/react/react/components/alert.d.ts.map +1 -0
- package/dist/react/react/components/aspect-ratio.d.ts +8 -0
- package/dist/react/react/components/aspect-ratio.d.ts.map +1 -0
- package/dist/react/react/components/avatar.d.ts +10 -0
- package/dist/react/react/components/avatar.d.ts.map +1 -0
- package/dist/react/react/components/breadcrumb.d.ts +28 -0
- package/dist/react/react/components/breadcrumb.d.ts.map +1 -0
- package/dist/react/react/components/button.d.ts +4 -2
- package/dist/react/react/components/button.d.ts.map +1 -1
- package/dist/react/react/components/checkbox.d.ts +9 -0
- package/dist/react/react/components/checkbox.d.ts.map +1 -0
- package/dist/react/react/components/code.d.ts +6 -0
- package/dist/react/react/components/code.d.ts.map +1 -0
- package/dist/react/react/components/container.d.ts +8 -0
- package/dist/react/react/components/container.d.ts.map +1 -0
- package/dist/react/react/components/data-table.d.ts +39 -0
- package/dist/react/react/components/data-table.d.ts.map +1 -0
- package/dist/react/react/components/dialog.d.ts +28 -0
- package/dist/react/react/components/dialog.d.ts.map +1 -0
- package/dist/react/react/components/dropdown-menu.d.ts +32 -0
- package/dist/react/react/components/dropdown-menu.d.ts.map +1 -0
- package/dist/react/react/components/grid.d.ts +8 -0
- package/dist/react/react/components/grid.d.ts.map +1 -0
- package/dist/react/react/components/input.d.ts +9 -2
- package/dist/react/react/components/input.d.ts.map +1 -1
- package/dist/react/react/components/kbd.d.ts +6 -0
- package/dist/react/react/components/kbd.d.ts.map +1 -0
- package/dist/react/react/components/label.d.ts +7 -0
- package/dist/react/react/components/label.d.ts.map +1 -0
- package/dist/react/react/components/modal.d.ts +44 -0
- package/dist/react/react/components/modal.d.ts.map +1 -0
- package/dist/react/react/components/progress.d.ts +10 -0
- package/dist/react/react/components/progress.d.ts.map +1 -0
- package/dist/react/react/components/radio-group.d.ts +15 -0
- package/dist/react/react/components/radio-group.d.ts.map +1 -0
- package/dist/react/react/components/scroll-area.d.ts +8 -0
- package/dist/react/react/components/scroll-area.d.ts.map +1 -0
- package/dist/react/react/components/search-input.d.ts +13 -0
- package/dist/react/react/components/search-input.d.ts.map +1 -0
- package/dist/react/react/components/select.d.ts +29 -0
- package/dist/react/react/components/select.d.ts.map +1 -0
- package/dist/react/react/components/separator.d.ts +8 -0
- package/dist/react/react/components/separator.d.ts.map +1 -0
- package/dist/react/react/components/skeleton.d.ts +8 -0
- package/dist/react/react/components/skeleton.d.ts.map +1 -0
- package/dist/react/react/components/spinner.d.ts +7 -0
- package/dist/react/react/components/spinner.d.ts.map +1 -0
- package/dist/react/react/components/stack.d.ts +11 -0
- package/dist/react/react/components/stack.d.ts.map +1 -0
- package/dist/react/react/components/status-badge.d.ts +11 -0
- package/dist/react/react/components/status-badge.d.ts.map +1 -0
- package/dist/react/react/components/switch.d.ts +10 -0
- package/dist/react/react/components/switch.d.ts.map +1 -0
- package/dist/react/react/components/table.d.ts +27 -0
- package/dist/react/react/components/table.d.ts.map +1 -0
- package/dist/react/react/components/tabs.d.ts +56 -0
- package/dist/react/react/components/tabs.d.ts.map +1 -0
- package/dist/react/react/components/tag.d.ts +10 -0
- package/dist/react/react/components/tag.d.ts.map +1 -0
- package/dist/react/react/components/textarea.d.ts +11 -0
- package/dist/react/react/components/textarea.d.ts.map +1 -0
- package/dist/react/react/components/toast.d.ts +28 -0
- package/dist/react/react/components/toast.d.ts.map +1 -0
- package/dist/react/react/components/tooltip.d.ts +16 -0
- package/dist/react/react/components/tooltip.d.ts.map +1 -0
- package/dist/react/react/components/visually-hidden.d.ts +7 -0
- package/dist/react/react/components/visually-hidden.d.ts.map +1 -0
- package/dist/react/react/hooks/index.d.ts +5 -0
- package/dist/react/react/hooks/index.d.ts.map +1 -0
- package/dist/react/react/hooks/use-theme.d.ts +17 -0
- package/dist/react/react/hooks/use-theme.d.ts.map +1 -0
- package/dist/react/react/index.d.ts +33 -0
- package/dist/react/react/index.d.ts.map +1 -1
- package/dist/reset.css +6 -15
- package/dist/styles.css +2244 -431
- package/package.json +93 -61
- package/dist/react/react/lib/cn.d.ts +0 -7
- package/dist/react/react/lib/cn.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,61 +1,93 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "czero",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "A lightweight, design-token-driven React component library",
|
|
6
|
-
"main": "./dist/react/index.cjs",
|
|
7
|
-
"module": "./dist/react/index.js",
|
|
8
|
-
"types": "./dist/react/index.d.ts",
|
|
9
|
-
"bin": {
|
|
10
|
-
"czero": "./dist/cli/index.js"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"./
|
|
15
|
-
"./
|
|
16
|
-
"./
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"react",
|
|
54
|
-
"
|
|
55
|
-
"ui",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "czero",
|
|
3
|
+
"version": "0.2.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A lightweight, design-token-driven React component library with Radix UI primitives",
|
|
6
|
+
"main": "./dist/react/index.cjs",
|
|
7
|
+
"module": "./dist/react/index.js",
|
|
8
|
+
"types": "./dist/react/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"czero": "./dist/cli/index.js",
|
|
11
|
+
"czero20": "./dist/cli/index.js"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
"./styles.css": "./dist/styles.css",
|
|
15
|
+
"./components.css": "./dist/components.css",
|
|
16
|
+
"./reset.css": "./dist/reset.css",
|
|
17
|
+
"./react": {
|
|
18
|
+
"types": "./dist/react/index.d.ts",
|
|
19
|
+
"import": "./dist/react/index.js",
|
|
20
|
+
"require": "./dist/react/index.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./presets": {
|
|
23
|
+
"types": "./dist/presets/index.d.ts",
|
|
24
|
+
"import": "./dist/presets/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./config": {
|
|
27
|
+
"types": "./dist/core/types/config.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build:tokens": "tsx src/core/build-tokens.ts",
|
|
35
|
+
"build:css": "mkdir -p dist && cp src/core/styles/reset.css dist/reset.css && cp src/core/styles/components.css dist/components.css && cat src/core/styles/reset.css src/core/styles/tokens.css src/core/styles/components.css > dist/styles.css",
|
|
36
|
+
"build:components": "rollup -c",
|
|
37
|
+
"build:cli": "npx esbuild cli/index.ts --bundle --platform=node --format=esm --outdir=dist/cli --packages=external",
|
|
38
|
+
"build": "npm run build:tokens && npm run build:css && npm run build:components && npm run build:cli",
|
|
39
|
+
"dev": "rollup -c -w",
|
|
40
|
+
"typecheck": "tsc --noEmit"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=18.0.0",
|
|
44
|
+
"react-dom": ">=18.0.0"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@radix-ui/react-accordion": "^1.2.0",
|
|
48
|
+
"@radix-ui/react-alert-dialog": "^1.1.0",
|
|
49
|
+
"@radix-ui/react-aspect-ratio": "^1.1.0",
|
|
50
|
+
"@radix-ui/react-avatar": "^1.1.0",
|
|
51
|
+
"@radix-ui/react-checkbox": "^1.1.0",
|
|
52
|
+
"@radix-ui/react-collapsible": "^1.1.0",
|
|
53
|
+
"@radix-ui/react-dialog": "^1.1.0",
|
|
54
|
+
"@radix-ui/react-dropdown-menu": "^2.1.0",
|
|
55
|
+
"@radix-ui/react-label": "^2.1.0",
|
|
56
|
+
"@radix-ui/react-popover": "^1.1.0",
|
|
57
|
+
"@radix-ui/react-progress": "^1.1.0",
|
|
58
|
+
"@radix-ui/react-radio-group": "^1.2.0",
|
|
59
|
+
"@radix-ui/react-scroll-area": "^1.2.0",
|
|
60
|
+
"@radix-ui/react-select": "^2.1.0",
|
|
61
|
+
"@radix-ui/react-separator": "^1.1.0",
|
|
62
|
+
"@radix-ui/react-slider": "^1.2.0",
|
|
63
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
64
|
+
"@radix-ui/react-switch": "^1.1.0",
|
|
65
|
+
"@radix-ui/react-tabs": "^1.1.0",
|
|
66
|
+
"@radix-ui/react-toast": "^1.2.0",
|
|
67
|
+
"@radix-ui/react-tooltip": "^1.1.0",
|
|
68
|
+
"@radix-ui/react-visually-hidden": "^1.1.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
72
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
73
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
74
|
+
"@types/node": "^25.0.3",
|
|
75
|
+
"@types/react": "^18.2.48",
|
|
76
|
+
"@types/react-dom": "^18.2.18",
|
|
77
|
+
"esbuild": "^0.24.2",
|
|
78
|
+
"rollup": "^4.9.6",
|
|
79
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
80
|
+
"tslib": "^2.6.2",
|
|
81
|
+
"tsx": "^4.7.0",
|
|
82
|
+
"typescript": "^5.3.3"
|
|
83
|
+
},
|
|
84
|
+
"keywords": [
|
|
85
|
+
"react",
|
|
86
|
+
"components",
|
|
87
|
+
"ui",
|
|
88
|
+
"design-system",
|
|
89
|
+
"design-tokens",
|
|
90
|
+
"cli"
|
|
91
|
+
],
|
|
92
|
+
"license": "MIT"
|
|
93
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../../src/react/lib/cn.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
|