@pycolors/ui 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +107 -0
  3. package/package.json +35 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PyColors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # @pycolors/ui
2
+
3
+ Production-ready UI primitives for modern SaaS apps — built for
4
+ **speed**, **consistency**, and **real-world patterns**.
5
+
6
+ - Accessible defaults (Radix + sane patterns)
7
+ - Works with Tailwind (tokens-driven styling)
8
+ - "Starter-grade" components: Tables, Dialogs, Sheets, Alerts,
9
+ Tabs...
10
+ - Designed to power the **PyColors SaaS Starter** and future Pro
11
+ templates
12
+
13
+ ------------------------------------------------------------------------
14
+
15
+ ## Install
16
+
17
+ ``` bash
18
+ pnpm add @pycolors/ui
19
+ # or
20
+ npm i @pycolors/ui
21
+ ```
22
+
23
+ ## Peer dependencies
24
+
25
+ This library expects React + lucide-react:
26
+
27
+ ``` bash
28
+ pnpm add react react-dom lucide-react
29
+ ```
30
+
31
+ ## Quick usage
32
+
33
+ ``` tsx
34
+ import { Button, Card, CardHeader, CardTitle, CardContent } from "@pycolors/ui";
35
+
36
+ export function Example() {
37
+ return (
38
+ <Card bordered className="p-4">
39
+ <CardHeader className="p-0">
40
+ <CardTitle>Welcome</CardTitle>
41
+ </CardHeader>
42
+ <CardContent className="p-0 pt-4">
43
+ <Button>Get started</Button>
44
+ </CardContent>
45
+ </Card>
46
+ );
47
+ }
48
+ ```
49
+
50
+ ## What's inside (v1)
51
+
52
+ Exports currently include:
53
+
54
+ - Button
55
+ - Card
56
+ - Badge
57
+ - Input
58
+ - PasswordInput
59
+ - Alert
60
+ - Dialog
61
+ - Sheet
62
+ - DropdownMenu
63
+ - Tabs
64
+ - Toast
65
+ - Pagination
66
+ - Table
67
+ - Skeleton
68
+ - EmptyState
69
+ - cn / utils
70
+
71
+ This is intentionally small and "starter-first": the goal is to ship a
72
+ credible SaaS UX surface quickly, then expand.
73
+
74
+ ------------------------------------------------------------------------
75
+
76
+ ## Design approach
77
+
78
+ PyColors UI is not "just components".\
79
+ It's a product system:
80
+
81
+ - predictable layout primitives
82
+ - consistent tokens + spacing
83
+ - real data states (loading / empty / error)
84
+ - B2B SaaS patterns (members, billing, settings, projects)
85
+
86
+ ------------------------------------------------------------------------
87
+
88
+ ## Roadmap
89
+
90
+ Next planned steps:
91
+
92
+ - `@pycolors/tokens` (CSS variables + semantic tokens)
93
+ - richer form primitives (Select, Checkbox, Radio, Switch)
94
+ - "Pro" layer: advanced components/patterns for paid templates
95
+
96
+ ------------------------------------------------------------------------
97
+
98
+ ## License
99
+
100
+ MIT (unless you decide otherwise).
101
+
102
+ ------------------------------------------------------------------------
103
+
104
+ ## Links
105
+
106
+ - PyColors: https://pycolors.io
107
+ - Starters: https://pycolors.io/starters
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "@pycolors/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
+ "description": "Production-ready UI primitives for modern SaaS apps (Radix + Tailwind-friendly).",
5
+ "keywords": [
6
+ "pycolors",
7
+ "ui",
8
+ "components",
9
+ "radix",
10
+ "tailwind",
11
+ "saas",
12
+ "design-system",
13
+ "react"
14
+ ],
15
+ "license": "MIT",
16
+ "author": "PyColors",
17
+ "homepage": "https://pycolors.io",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/pycolors-io",
21
+ "directory": "packages/ui"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/pycolors-io/pycolors-ui/issues"
25
+ },
4
26
  "private": false,
5
27
  "type": "module",
6
28
  "sideEffects": false,
@@ -12,7 +34,11 @@
12
34
  "default": "./dist/index.js"
13
35
  }
14
36
  },
15
- "files": ["dist"],
37
+ "files": [
38
+ "dist",
39
+ "README.md",
40
+ "LICENSE"
41
+ ],
16
42
  "publishConfig": {
17
43
  "access": "public"
18
44
  },
@@ -27,7 +53,13 @@
27
53
  },
28
54
  "peerDependencies": {
29
55
  "react": ">=18",
30
- "react-dom": ">=18"
56
+ "react-dom": ">=18",
57
+ "lucide-react": ">=0.300.0"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "lucide-react": {
61
+ "optional": true
62
+ }
31
63
  },
32
64
  "dependencies": {
33
65
  "@radix-ui/react-alert-dialog": "^1.1.15",