@columenlabs/lumen-ui 0.1.25 → 0.1.26

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 (2) hide show
  1. package/README.md +82 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,85 @@
1
1
  # @columenlabs/lumen-ui
2
2
 
3
- Lumen's components: the app frame (`LumenShell`), pages and views (`LumenLayout`, `LumenView`, `LumenTable`, `LumenWidget`, `LumenCard`), charts (`LumenChart`), `LumenDrawer`, `LumenSelector`, the shadcn parts under `ui/*` and one `theme.css`. Its types are in `@columenlabs/lumen-ui-types`.
3
+ Lumen's React components for data apps: the app frame, pages and views over your rows, widgets, charts, drawers and pickers, all on one theme. You give it data and a view config; it draws the screen. Built on [shadcn/ui](https://ui.shadcn.com) (Radix UI, Base UI, Tailwind CSS 4). Its view model is [`@columenlabs/lumen-ui-types`](https://www.npmjs.com/package/@columenlabs/lumen-ui-types).
4
4
 
5
- See the [Lumen README](https://github.com/columenlabs/lumen#readme) for install and use. MIT.
5
+ - Docs and live examples: https://lumen.columenlabs.com/docs/
6
+ - For agents: https://lumen.columenlabs.com/llms.txt
7
+ - Source: https://github.com/columenlabs/lumen (`packages/ui`). MIT.
8
+
9
+ ## Install
10
+
11
+ Pin both packages to the same exact version.
12
+
13
+ ```bash
14
+ bun add @columenlabs/lumen-ui @columenlabs/lumen-ui-types
15
+ bun add react react-dom @tanstack/react-query @tanstack/react-router # peers
16
+ bun add -d tailwindcss @tailwindcss/vite tw-animate-css shadcn
17
+ ```
18
+
19
+ ## Set up
20
+
21
+ `src/index.css`:
22
+
23
+ ```css
24
+ @import "tailwindcss";
25
+ @import "tw-animate-css";
26
+ @import "shadcn/tailwind.css";
27
+ @import "@columenlabs/lumen-ui/theme.css";
28
+ @source "../node_modules/@columenlabs/lumen-ui/dist";
29
+
30
+ /* your accent, per app (LumenShell sets data-app on <html>) */
31
+ :root[data-app="myapp"] { --primary: oklch(0.55 0.15 160); }
32
+ ```
33
+
34
+ At start, before anything renders, tell the kit about your app. The kit names no product: your names and data come in here.
35
+
36
+ ```ts
37
+ import { configureLumen } from '@columenlabs/lumen-ui';
38
+ import { registerDomains } from '@columenlabs/lumen-ui-types/registry';
39
+
40
+ configureLumen({ prefsCookie: 'myapp_prefs' }); // where display preferences live
41
+ registerDomains({ /* your joins, sources and domain keys */ });
42
+ ```
43
+
44
+ Wrap your routes in the shell:
45
+
46
+ ```tsx
47
+ import { LumenShell } from '@columenlabs/lumen-ui';
48
+
49
+ <LumenShell app="myapp" appLabel="My app" brand={<Logo />} nav={nav} user={{ email, name }}>
50
+ <Outlet />
51
+ </LumenShell>
52
+ ```
53
+
54
+ Your own parts go in `LumenShell`'s slots: `brand`, `headerActions`, `panel` (a side panel such as an assistant), `wrap` (providers around the page), `shared`, `profile` (the profile menu) and `statusEnd` (the right end of the status bar).
55
+
56
+ Use `createDeskQueryClient()` for the app's TanStack Query client: data stays fresh 5 minutes and cached 30.
57
+
58
+ ## What's inside
59
+
60
+ **Frame.** `LumenShell` (sidebar with icons-only collapse and a drawer on phone, header, status bar, Settings, profile menu, ⌘K Find), `LumenAppSwitcher`, `WhatsNew` (release notes in a drawer), `TasksButton` and `TasksProvider` (background work in the header), `NotificationsSettings`, `McpSettings`, sign-in screens (`LumenAuthStage`, `LumenSecondStep`, `LumenSignInMethods`, `LumenBackupCodes`), `StatusHealth`, `LumenBoundary` (keeps a crash inside its card), `LumenPageState` (loading, empty and error), `lumenToast`.
61
+
62
+ **Pages and views.** `LumenLayout` (a page of cards from one view config: filter, tiles, widgets; Edit layout and Edit widget when you pass `onConfigChange`), `LumenGrid` (the 6-column grid under it), `LumenView` and `LumenViewCard` (a table that filters, groups, pivots and totals the rows you load), `LumenTable`, `LumenTokenizedFilter`, `LumenWidget` and `LumenSavedWidget` (the frame every card sits in, with its link square and controls), `LumenCard` (one number and its lines), `LumenPager`, `DetailsTable`, `LumenTree`, `useAppView` (a page whose layout each person can change and reset).
63
+
64
+ **Charts.** `LumenChart` (one or more symbols' prices, with indicators), `LumenEChart`, `LumenGeoMap`, growth and price charts, `StackedBars`, `StackedColumns`, `RankedBars`.
65
+
66
+ **Pickers and panels.** `LumenSelector` (every picker), `LumenDrawer` with `DrawerSection` (a side panel on desktop, a sheet on phone), `LumenTabs`, `LumenConfirm` (destructive confirms), `LumenForm`, `LumenDateInput`, `LumenChoice`, `LumenSecret`, `RenameField`, `ResetButton`, `SaveButton` with `FormIssue` (a Save that says why it can't), `IconPicker`.
67
+
68
+ **Primitives.** The shadcn parts under `@columenlabs/lumen-ui/ui/*` (`ui/button`, `ui/badge`, `ui/input`, ...) and `theme.css` (light and dark tokens).
69
+
70
+ Every export, its props and an example are on the [docs](https://lumen.columenlabs.com/docs/) and in [`llms-full.txt`](https://lumen.columenlabs.com/llms-full.txt).
71
+
72
+ ## Rules the kit follows, and apps should too
73
+
74
+ - Pickers are `LumenSelector`, side panels `LumenDrawer`, tabs `LumenTabs`, destructive confirms `LumenConfirm`; reach for the raw `ui/*` part only when no Lumen part fits.
75
+ - Every card body sits in `LumenBoundary`, so one crash never blanks a page.
76
+ - Numbers use tabular figures and a true minus `−`; a gain or loss always shows a sign or arrow.
77
+ - A Save blocked by its form's checks is a `SaveButton` that lists each issue, never a bare `disabled`.
78
+
79
+ ## Notices
80
+
81
+ Charts use TradingView Lightweight Charts™ with its logo off. Please link to https://www.tradingview.com/ somewhere in your app (see NOTICE).
82
+
83
+ ## Versions
84
+
85
+ 0.x: any minor may break things until 1.0. Every merge to Lumen's `main` publishes the next patch of every Lumen package; see the [releases](https://github.com/columenlabs/lumen/releases).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ui",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Lumen: shared React components (frame, views, widgets, charts, drawers).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  "@codemirror/lang-javascript": "6.2.5",
42
42
  "@codemirror/lang-json": "6.0.2",
43
43
  "@codemirror/lang-sql": "6.10.0",
44
- "@columenlabs/lumen-ui-types": "0.1.25",
44
+ "@columenlabs/lumen-ui-types": "0.1.26",
45
45
  "@dnd-kit/core": "6.3.1",
46
46
  "@dnd-kit/sortable": "10.0.0",
47
47
  "@dnd-kit/utilities": "3.2.2",