lucent-ui 0.8.0 → 0.9.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/README.md +25 -4
- package/dist/index.cjs +62 -32
- package/dist/index.d.ts +82 -1
- package/dist/index.js +2297 -1338
- package/dist-cli/cli/index.js +0 -0
- package/dist-server/server/index.js +0 -0
- package/dist-server/src/components/atoms/ColorPicker/ColorPicker.manifest.js +91 -0
- package/dist-server/src/components/atoms/ColorSwatch/ColorSwatch.manifest.js +39 -0
- package/dist-server/src/components/atoms/SegmentedControl/SegmentedControl.manifest.js +102 -0
- package/package.json +21 -15
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/lucent-ui)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
7
|
+
**[Documentation & component playground → lucentui.dev](https://lucentui.dev)**
|
|
8
|
+
|
|
7
9
|
> **The React component library built for AI coding assistants.**
|
|
8
10
|
> Every component ships with a machine-readable manifest — so Claude, Cursor, and Copilot generate correct, on-brand UI the first time, every time.
|
|
9
11
|
|
|
@@ -41,7 +43,7 @@ export default function App() {
|
|
|
41
43
|
|
|
42
44
|
## Components
|
|
43
45
|
|
|
44
|
-
### Atoms
|
|
46
|
+
### Atoms (19)
|
|
45
47
|
| Component | Description |
|
|
46
48
|
|-----------|-------------|
|
|
47
49
|
| `Button` | Clickable control with `primary`, `secondary`, `ghost`, `danger` variants |
|
|
@@ -53,14 +55,18 @@ export default function App() {
|
|
|
53
55
|
| `Radio` / `RadioGroup` | Radio button with group context |
|
|
54
56
|
| `Toggle` | On/off switch |
|
|
55
57
|
| `Select` | Native select with styled appearance |
|
|
58
|
+
| `Slider` | Range input with token-driven track and thumb |
|
|
56
59
|
| `Tag` | Removable or static tag/chip |
|
|
57
60
|
| `Tooltip` | Hover tooltip with placement options |
|
|
58
61
|
| `Icon` | SVG icon wrapper (Lucide-compatible) |
|
|
59
62
|
| `Text` | Polymorphic typography primitive (`p`, `h1`–`h6`, `span`, `code`, …) |
|
|
60
63
|
| `Spinner` | Loading indicator |
|
|
61
64
|
| `Divider` | Horizontal or vertical rule |
|
|
65
|
+
| `NavLink` | Navigation link with active state and accent highlight |
|
|
66
|
+
| `Table` | Structural table primitive (`Table`, `Head`, `Body`, `Row`, `Cell`) |
|
|
67
|
+
| `CodeBlock` | Syntax-highlighted code with tab support and prompt variant |
|
|
62
68
|
|
|
63
|
-
### Molecules
|
|
69
|
+
### Molecules (17)
|
|
64
70
|
| Component | Description |
|
|
65
71
|
|-----------|-------------|
|
|
66
72
|
| `FormField` | Label + input + helper/error text composition |
|
|
@@ -69,6 +75,17 @@ export default function App() {
|
|
|
69
75
|
| `Alert` | Inline feedback banner (`info`, `success`, `warning`, `danger`) |
|
|
70
76
|
| `EmptyState` | Zero-data placeholder with icon, title, and action |
|
|
71
77
|
| `Skeleton` | Loading placeholder for content areas |
|
|
78
|
+
| `Breadcrumb` | Navigational breadcrumb trail |
|
|
79
|
+
| `Tabs` | Tabbed content switcher with sliding indicator |
|
|
80
|
+
| `Collapsible` | Expandable/collapsible section with animated height |
|
|
81
|
+
| `PageLayout` | App shell with sidebar, header, right panel, and footer slots |
|
|
82
|
+
| `DataTable` | Sortable, paginated, filterable data table |
|
|
83
|
+
| `CommandPalette` | Keyboard-driven command launcher |
|
|
84
|
+
| `MultiSelect` | Multi-value select with search and tag display |
|
|
85
|
+
| `DatePicker` | Single-date calendar picker |
|
|
86
|
+
| `DateRangePicker` | Date range calendar picker |
|
|
87
|
+
| `FileUpload` | Drag-and-drop file upload with preview |
|
|
88
|
+
| `Timeline` | Vertical event/activity timeline |
|
|
72
89
|
|
|
73
90
|
---
|
|
74
91
|
|
|
@@ -152,7 +169,7 @@ node dist-server/server/index.js
|
|
|
152
169
|
Lucent UI uses CSS custom properties — no CSS-in-JS, no runtime overhead.
|
|
153
170
|
|
|
154
171
|
```tsx
|
|
155
|
-
import { LucentProvider, brandTokens } from 'lucent-ui';
|
|
172
|
+
import { LucentProvider, brandTokens, createTheme } from 'lucent-ui';
|
|
156
173
|
|
|
157
174
|
// Default neutral theme
|
|
158
175
|
<LucentProvider>...</LucentProvider>
|
|
@@ -160,7 +177,11 @@ import { LucentProvider, brandTokens } from 'lucent-ui';
|
|
|
160
177
|
// Built-in gold accent preset
|
|
161
178
|
<LucentProvider tokens={brandTokens}>...</LucentProvider>
|
|
162
179
|
|
|
163
|
-
//
|
|
180
|
+
// Generate a full light/dark theme from a single accent color
|
|
181
|
+
const theme = createTheme({ accent: '#6366f1' });
|
|
182
|
+
<LucentProvider tokens={theme.light} darkTokens={theme.dark}>...</LucentProvider>
|
|
183
|
+
|
|
184
|
+
// Fully custom token overrides
|
|
164
185
|
<LucentProvider tokens={{ accentDefault: '#6366f1', accentHover: '#4f46e5' }}>
|
|
165
186
|
...
|
|
166
187
|
</LucentProvider>
|