pxengine 0.1.143 → 0.1.144

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Shadcn-based UI component library for agent-driven interfaces**
4
4
 
5
- A premium UI component library built on top of shadcn/ui, designed specifically for agent-driven user interfaces and creator discovery platforms. Components follow Atomic Design principles and are optimized for schema-driven rendering.
5
+ A UI component library built on top of shadcn/ui, published to npm as **`pxengine`**, designed specifically for agent-driven interfaces: LLM agents emit a JSON schema, and `PXEngineRenderer` maps it to a React component. Components follow Atomic Design principles and are optimized for schema-driven rendering. Primary consumer is `pxengine-builder`, which links it locally (`"pxengine": "file:../@pxengine-ui"`).
6
6
 
7
7
  ---
8
8
 
@@ -11,10 +11,10 @@ A premium UI component library built on top of shadcn/ui, designed specifically
11
11
  `@pxengine-ui` provides a robust foundation for building modern dashboard and AI-integrated applications:
12
12
 
13
13
  - **Built on shadcn/ui** - Industry-standard base layer using Radix UI primitives.
14
- - **Vibrant & Premium** - Custom design system with glassmorphism, smooth gradients, and rich micro-interactions.
15
- - **Agent-First** - Fully schema-driven atoms ready for AI generation.
16
- - **Atomic Design** - 40+ Atoms and 18+ Composed Molecules.
17
- - **Zero Configuration** - Inherits Tailwind config and CSS variables from the host application.
14
+ - **Themeable via CSS variables** - No hardcoded palette. Components read `--px-*`/host CSS custom properties at render time (falling back to internal purple/indigo defaults when a consumer doesn't supply them), so a dark-gold host app (like `pxengine-builder`) and a light one render the same components on entirely different themes with zero component changes.
15
+ - **Agent-First** - Fully schema-driven atoms and molecules ready for AI generation via `PXEngineRenderer`.
16
+ - **Atomic Design** - 52 Atoms and 60+ Composed Molecules across two domains (generic dashboard + creator discovery).
17
+ - **Zero Configuration** - Inherits Tailwind config and CSS variables from the host application; the host just needs `"node_modules/pxengine/**/*.{js,ts,jsx,tsx}"` in its Tailwind `content` array or production builds purge all pxengine classes.
18
18
 
19
19
  ---
20
20
 
@@ -23,13 +23,17 @@ A premium UI component library built on top of shadcn/ui, designed specifically
23
23
  ```
24
24
  @pxengine-ui/
25
25
  ├── src/
26
- │ ├── atoms/ # Foundation UI (Button, Input, Slider, etc.)
26
+ │ ├── atoms/ # Foundation UI (Button, Input, Slider, etc.) — 52 components
27
27
  │ ├── molecules/ # Composed Patterns
28
- │ │ ├── generic/ # Cross-domain dashboard widgets
29
- │ │ └── creator-discovery/ # Niche-specific for creator search
28
+ │ │ ├── generic/ # Cross-domain dashboard widgets (~48 components)
29
+ │ │ └── creator-discovery/ # Niche-specific for creator search (~16 components)
30
30
  │ ├── types/ # Schema & Component definitions
31
31
  │ └── lib/ # Shared utilities
32
- └── dist/ # Compiled assets & Registry
32
+ ├── scripts/
33
+ │ ├── generate-metadata.ts # Builds dist/registry.json (component catalog for agents)
34
+ │ └── generate-molecule-registry.ts # Builds the molecule-only registry
35
+ ├── tailwind-preset.js # Shared Tailwind preset re-exported for consumers
36
+ └── dist/ # Compiled assets (tsup: CJS + ESM + DTS) & Registry
33
37
  ```
34
38
 
35
39
  ---
@@ -38,7 +42,7 @@ A premium UI component library built on top of shadcn/ui, designed specifically
38
42
 
39
43
  ### Atoms (Foundation Primitives)
40
44
 
41
- 40+ accessible atoms wrapping Radix-based shadcn components:
45
+ 52 accessible atoms wrapping Radix-based shadcn components:
42
46
 
43
47
  - **Forms**: Input, Checkbox, RadioGroup, Select, Switch, Slider, Textarea, Toggle.
44
48
  - **Navigation**: DropdownMenu, ContextMenu, Pagination, Breadcrumb, Tabs, Command.
@@ -48,25 +52,25 @@ A premium UI component library built on top of shadcn/ui, designed specifically
48
52
 
49
53
  ### Molecules (High-Level Patterns)
50
54
 
51
- #### Generic Dashboard
55
+ #### Generic Dashboard (`src/molecules/generic/`)
52
56
 
53
- - **StatsGrid**: Data visualization with trends & icons.
54
- - **EmptyState**: Premium placeholder for empty results.
55
- - **LoadingOverlay**: Glassmorphism backdrop with progress.
56
- - **FilterBar**: Search + Multi-chip filtering.
57
- - **FileUpload**: Drag-and-drop zone.
58
- - **TagCloud**: Interactive interest clusters.
59
- - **FormCard**: Schema-driven editable forms.
57
+ Cross-domain widgets, including job-card families for long-running agent work (`ResearchReportJobCard`, `PresentationJobCard`, `WebSearchJobCard` — share layout/state conventions via `job-card-shared/`), data/table components (`DataGrid`, `DataTableCard`, `TablePagination`), integration cards (`GitHubConnectCard`, `GitHubRepoHealthCard`, `GoogleSheetsCard`, `GoogleSheetsConnectCard`), and general dashboard primitives:
60
58
 
61
- #### Creator Discovery
59
+ - **StatsGrid** / **KPIStatsCard**: Data visualization with trends & icons.
60
+ - **EmptyState**, **LoadingOverlay**: Placeholder/loading states.
61
+ - **FilterBar**, **FileUpload**, **TagCloud**, **FormCard**, **DynamicFormCard**, **EditableField**: Input & filtering patterns.
62
+ - **ChecklistCard**, **ApprovalCard**, **ConfirmationCard**, **PollCard**: Decision/workflow patterns.
63
+ - **CampaignBriefCard**, **ChannelPlanCard**, **BudgetAllocCard**, **CalendarEventCard**: Campaign-planning widgets.
64
+
65
+ #### Creator Discovery (`src/molecules/creator-discovery/`)
62
66
 
63
67
  - **CreatorGridCard**: Detailed discovery card with banner and metrics.
64
- - **AudienceMetricCard**: Specialized progress-based demographics.
68
+ - **AudienceMetricCard** / **AudienceDemographicsCard**: Progress-based demographics.
65
69
  - **BrandAffinityGroup**: Visual recently associated brand logos.
66
70
  - **ContentPreviewGallery**: Video/Image thumbnail grids.
67
- - **CreatorProfileSummary**: Compact info row for list views.
68
- - **PlatformIconGroup**: Social platform reach summary.
69
- - **SearchSpecCard**: Advanced filter criteria summary.
71
+ - **CreatorProfileSummary**, **CreatorSearchBox**, **CreatorWidget**, **CreatorActionHeader**: Search & profile patterns.
72
+ - **PlatformIconGroup**, **GrowthChartCard**, **TopPostsGrid**: Reach & performance summaries.
73
+ - **SearchSpecCard**, **MCQCard**, **CampaignSeedCard**, **CampaignConceptCard**: Agent-driven intake/spec patterns.
70
74
 
71
75
  ---
72
76
 
@@ -74,10 +78,10 @@ A premium UI component library built on top of shadcn/ui, designed specifically
74
78
 
75
79
  ### Registry-Driven Rendering
76
80
 
77
- The library generates a `registry.json` that includes component metadata and schemas, allowing agents to understand what they can render.
81
+ `npm run build` runs `generate-metadata` automatically (`tsup.config.ts`'s `onSuccess` hook), producing `dist/registry.json` component metadata + schemas so agents (the server's `ui_generator`/`widget_builder` agents) know what they can render. **Never hand-edit `dist/registry.json`** — it's derived output; if a new molecule isn't showing up in agent suggestions, rebuild and confirm the registry picked it up. `PXEngineRenderer` (exported from the package root) maps a schema's `type` field to a React component via a discriminated-union registry — adding a new molecule requires registering its `type` string there or it silently won't render.
78
82
 
79
83
  ```tsx
80
- import { PXEngineRenderer } from "@/components/PXEngineRenderer";
84
+ import { PXEngineRenderer } from "pxengine";
81
85
 
82
86
  const schema = {
83
87
  type: "stats-grid",
@@ -113,20 +117,20 @@ import { CreatorGridCard } from "pxengine";
113
117
 
114
118
  ## Design System
115
119
 
116
- The library uses a specific high-end aesthetic:
120
+ Components are **theme-agnostic by design** — they read CSS custom properties (`--px-*`, plus the host's own tokens) at render time rather than hardcoding a palette, so `cn()` (re-exported from `pxengine`, not `clsx`, for consumers) composes host classes on top of component defaults. A few atoms (e.g. `AvatarAtom`) fall back to internal indigo/purple/slate defaults (`var(--px-bg-color, var(--purple50))`) when a host doesn't supply theme vars — that fallback palette is NOT what most consumers actually see. `pxengine-builder`, the primary consumer, supplies a dark, gold-accented theme (`--gold: #C0AE82`, `surface.chat #0A0A0A` → `surface.elevated #1E1E1F`, see its README) via `globals.css`, and every pxengine component renders on that theme with zero component-level changes.
117
121
 
118
- - **Colors**: Indigo, Purple, and Slate primary hues.
119
122
  - **Border Radius**: Generous `rounded-3xl` and `rounded-[32px]` for major components.
120
- - **Backdrop**: Heavy use of `backdrop-blur-md` and `bg-white/60`.
123
+ - **Backdrop**: Uses `backdrop-blur-md` for overlay/glass surfaces where the host theme calls for it.
121
124
  - **Shadows**: Subtle, layered soft shadows for depth.
122
125
 
123
126
  ---
124
127
 
125
128
  ## Tech Stack
126
129
 
127
- - **Framework**: React 18+ (Vite/tsup build)
128
- - **Styling**: Tailwind CSS + `class-variance-authority`
129
- - **Primitives**: Radix UI
130
- - **Animations**: Framer Motion
131
- - **Icons**: Lucide React
132
- - **Data**: Recharts / Zod
130
+ - **Framework**: React (peer dep `^18.0.0 || ^19.0.0`; primary consumer runs 19) — built with **tsup** (CJS + ESM + `.d.ts`), not Vite
131
+ - **Styling**: Tailwind CSS + `class-variance-authority` + `tailwind-preset.js` (shared preset re-exported for consumers)
132
+ - **Primitives**: Radix UI (via shadcn/ui)
133
+ - **Animations**: Framer Motion (peer dep, external — not bundled)
134
+ - **Icons**: Lucide React (bundled into the build via `tsup`'s `noExternal`, along with `date-fns`, `@date-fns/tz`, `react-day-picker`)
135
+ - **Charts**: Highcharts + `highcharts-react-official`, and Recharts all peer deps, external
136
+ - **Data/validation**: Zod
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pxengine/ui",
3
3
  "version": "1.0.0",
4
- "lastUpdated": "2026-08-13T05:57:59.865Z",
4
+ "lastUpdated": "2026-08-13T10:11:51.826Z",
5
5
  "components": {
6
6
  "AccordionAtom": {
7
7
  "name": "AccordionAtom",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxengine",
3
- "version": "0.1.143",
3
+ "version": "0.1.144",
4
4
  "type": "module",
5
5
  "description": "Shadcn-based UI component library for agent-driven interfaces",
6
6
  "main": "./dist/index.cjs",