@uibot/blocks-studio 0.0.0-stage → 0.2.0
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/dist/blocks/charts.d.ts +9 -0
- package/dist/blocks/content.d.ts +40 -0
- package/dist/blocks/data-studio.d.ts +18 -0
- package/dist/blocks/grid.d.ts +7 -0
- package/dist/blocks/interactive.d.ts +27 -0
- package/dist/blocks/kanban.d.ts +9 -0
- package/dist/blocks/marketing.d.ts +36 -0
- package/dist/blocks/presentation.d.ts +37 -0
- package/dist/blocks/sections.d.ts +74 -0
- package/dist/catalog.d.ts +8 -0
- package/dist/catalog.js +2 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.js +3 -0
- package/dist/registry-source.d.ts +21 -0
- package/dist/registry-source.js +21 -0
- package/package.json +51 -4
- package/src/blocks/charts.tsx +140 -0
- package/src/blocks/content.tsx +637 -0
- package/src/blocks/data-studio.tsx +293 -0
- package/src/blocks/grid.tsx +62 -0
- package/src/blocks/interactive.tsx +374 -0
- package/src/blocks/kanban.tsx +150 -0
- package/src/blocks/marketing.tsx +531 -0
- package/src/blocks/presentation.tsx +435 -0
- package/src/blocks/sections.tsx +1069 -0
- package/README.md +0 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Pure-SVG line / area chart. No third-party charting dependency (keeps the
|
|
4
|
+
* package peerDeps-only). Intended for small dogfood datasets (≤ ~200 points
|
|
5
|
+
* per series); larger inputs produce heavy DOM.
|
|
6
|
+
*/
|
|
7
|
+
export declare const TrendChart: RendererComponent;
|
|
8
|
+
/** Alias of {@link TrendChart} for specs that prefer the LineChart name. */
|
|
9
|
+
export declare const LineChart: RendererComponent;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Accordion FAQ list, editorial style. Uses native <details>/<summary> so it is
|
|
4
|
+
* fully functional with zero JS / zero state wiring (works in any host,
|
|
5
|
+
* including static render). Each row carries a mono index numeral; a hairline
|
|
6
|
+
* plus-mark rotates 45° into a close-mark on open, and the answer expands via
|
|
7
|
+
* a grid-rows transition. `defaultOpenFirst` opens the first row on mount.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Faq: RendererComponent;
|
|
10
|
+
/**
|
|
11
|
+
* Grid of team member cards. Each card shows an avatar (an image when `avatar`
|
|
12
|
+
* is a URL, otherwise tinted initials), name, role and optional bio. Hairline
|
|
13
|
+
* `.mkt-card` material with hover lift under `.marketing`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const TeamGrid: RendererComponent;
|
|
16
|
+
/**
|
|
17
|
+
* "How it works" steps. Oversized mono numerals lead each step.
|
|
18
|
+
* - variant `numbered` (default): a responsive card row, each with a big number.
|
|
19
|
+
* - variant `connected`: a vertical rail with a connecting line between dots,
|
|
20
|
+
* reading top-to-bottom like a sequence.
|
|
21
|
+
*/
|
|
22
|
+
export declare const Steps: RendererComponent;
|
|
23
|
+
/**
|
|
24
|
+
* Asymmetric bento layout. Lays children (BentoCell) or an `items` array onto a
|
|
25
|
+
* CSS grid whose base column count is `cols`; cells opt into `col`/`row` spans
|
|
26
|
+
* to break the rhythm. `gridAutoRows` keeps row spans visually even.
|
|
27
|
+
*/
|
|
28
|
+
export declare const BentoGrid: RendererComponent;
|
|
29
|
+
/**
|
|
30
|
+
* A single bento tile, usable standalone inside a BentoGrid. Reads `span.col` /
|
|
31
|
+
* `span.row` and maps them to static span classes so an authored cell can be
|
|
32
|
+
* as wide/tall as the layout needs.
|
|
33
|
+
*/
|
|
34
|
+
export declare const BentoCell: RendererComponent;
|
|
35
|
+
/**
|
|
36
|
+
* Emphasis callout block. A tinted panel (semantic/brand colour) with an accent
|
|
37
|
+
* left bar, icon, optional title and body. `color-mix` against the chosen token
|
|
38
|
+
* keeps the wash subtle and theme-correct in light and dark.
|
|
39
|
+
*/
|
|
40
|
+
export declare const Callout: RendererComponent;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Responsive grid of KPI cards. Prefers rendered `children` (e.g. existing Stat
|
|
4
|
+
* blocks); when there are none it falls back to inline rendering of `items`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const StatGrid: RendererComponent;
|
|
7
|
+
/** Levelled diagnostics list with a coloured left bar + glyph per severity. */
|
|
8
|
+
export declare const DiagnosticsList: RendererComponent;
|
|
9
|
+
/**
|
|
10
|
+
* Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map
|
|
11
|
+
* to a `color-mix` of the primary token via inline style (avoids dynamic class
|
|
12
|
+
* purge). Use `showValues` to print the numeric value inside each cell.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Matrix: RendererComponent;
|
|
15
|
+
/** Alias of {@link Matrix} for specs that prefer the Heatmap name. */
|
|
16
|
+
export declare const Heatmap: RendererComponent;
|
|
17
|
+
/** Vertical timeline with a left rail and a status dot per item. */
|
|
18
|
+
export declare const TimelineList: RendererComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Declarative grid layout. Maps `cols`/`gap`/`responsive` props onto static
|
|
4
|
+
* Tailwind grid classes; children become grid cells directly. This is the
|
|
5
|
+
* primary way a spec expresses overall page layout in studio dogfooding.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Grid: RendererComponent;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Table with a built-in search box. Typing dispatches a SetState onto
|
|
4
|
+
* `searchKey` (default `search`) so the host's `_filter` expression can narrow
|
|
5
|
+
* `rows`. The block itself also filters its already-resolved `rows` client-side
|
|
6
|
+
* (case-insensitive substring across all column values) so it stays useful even
|
|
7
|
+
* when no host dispatch is wired.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SearchableTable: RendererComponent;
|
|
10
|
+
/**
|
|
11
|
+
* Master/detail split: a selectable left list and a right detail pane. Clicking
|
|
12
|
+
* an item dispatches SetState onto `selectKey` (default `selectedId`); the host
|
|
13
|
+
* typically reads it back via `_find` to drive the detail slot. The detail pane
|
|
14
|
+
* renders the `detail` slot (host-composed) when present, else `children`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SplitMasterDetail: RendererComponent;
|
|
17
|
+
/** Label + value display row, for use inside a detail pane. */
|
|
18
|
+
export declare const DetailField: RendererComponent;
|
|
19
|
+
/**
|
|
20
|
+
* A horizontal group of status badges. Items carrying an `onClick` ActionChain
|
|
21
|
+
* render as focusable `<button>`s that dispatch the chain on click (so e.g. a
|
|
22
|
+
* tag chip can drive a SetState filter); items without `onClick` stay as inert
|
|
23
|
+
* `<span>`s.
|
|
24
|
+
*/
|
|
25
|
+
export declare const BadgeGroup: RendererComponent;
|
|
26
|
+
/** Two-column key/value grid for compact metadata display. */
|
|
27
|
+
export declare const KeyValueGrid: RendererComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Horizontal kanban board: columns as swimlanes, cards grouped by `column`.
|
|
4
|
+
* Up to four lanes fit the container width without scrolling; five or more
|
|
5
|
+
* fall back to a horizontal scroll strip. Editorial chrome: per-column accent
|
|
6
|
+
* dot + mono count chip, cards with a hover lift and a hairline badge.
|
|
7
|
+
* Read-only display.
|
|
8
|
+
*/
|
|
9
|
+
export declare const KanbanBoard: RendererComponent;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Responsive 2–4 column pricing grid. Each plan is a hairline `.mkt-card`; the
|
|
4
|
+
* `highlighted` plan gets an amber border, an amber "Popular" badge and a solid
|
|
5
|
+
* amber CTA while the rest use an outline CTA. Features list with amber check
|
|
6
|
+
* glyphs. CTAs render as anchors via the {label, href} contract.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PricingTable: RendererComponent;
|
|
9
|
+
/**
|
|
10
|
+
* Grid of testimonial cards (`.mkt-card` with hover lift). Each card shows an
|
|
11
|
+
* optional star rating, a serif italic pull-quote, and an avatar token (initials
|
|
12
|
+
* derived from the author name, or an explicit `avatar` string) + author + role.
|
|
13
|
+
* `columns` (1–3) controls the grid; the tint cycles through the four accents.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Testimonials: RendererComponent;
|
|
16
|
+
/**
|
|
17
|
+
* A single grayscale "trusted by" logo strip. With no external images, each logo
|
|
18
|
+
* is a mono wordmark (or initials for long names) sitting in a faint hairline
|
|
19
|
+
* pill; the row is desaturated/dimmed by default and lifts to full foreground on
|
|
20
|
+
* hover. An optional mono `label` sits above the row.
|
|
21
|
+
*/
|
|
22
|
+
export declare const LogoCloud: RendererComponent;
|
|
23
|
+
/**
|
|
24
|
+
* Big-number statistics band. Oversized serif values with mono labels, divided
|
|
25
|
+
* by hairline rules. `tone` switches the surface: "plain" (transparent),
|
|
26
|
+
* "muted" (soft card panel) or "inverse" (ink-black panel with a warm amber→rose
|
|
27
|
+
* glow + grain, matching CtaBand) for a high-contrast metrics moment.
|
|
28
|
+
*/
|
|
29
|
+
export declare const StatBand: RendererComponent;
|
|
30
|
+
/**
|
|
31
|
+
* Email-capture band: serif title + supporting line, then an email input styled
|
|
32
|
+
* with theme tokens beside a CTA anchor. Purely presentational — the input is
|
|
33
|
+
* decorative and the CTA navigates via {label, href}; wire real submission at the
|
|
34
|
+
* host level. On a `.marketing` surface it sits on a soft amber-tinted band.
|
|
35
|
+
*/
|
|
36
|
+
export declare const Newsletter: RendererComponent;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Asymmetric editorial hero. Serif display title (with optional italic emphasis
|
|
4
|
+
* via the `titleEmphasis` prop), mono eyebrow with amber dot, warm radial glow +
|
|
5
|
+
* blueprint dot grid backdrop, grain overlay, and staggered reveal. Renders an
|
|
6
|
+
* optional spec/preview visual on the right via the `aside` slot or children.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Hero: RendererComponent;
|
|
9
|
+
/**
|
|
10
|
+
* Product-screenshot window shell. Frames its `content` slot (or children) in a
|
|
11
|
+
* precise browser/app chrome — three traffic-light dots + a mono title/address
|
|
12
|
+
* bar — with a hairline border, long soft shadow, and an optional subtle 3D tilt
|
|
13
|
+
* (`variant: "tilt"`). Used on the marketing surface to present a *live-rendered*
|
|
14
|
+
* UIBot UI as the hero/showcase visual: the platform renders a real product
|
|
15
|
+
* interface inside the frame instead of pasting a static screenshot (dogfood).
|
|
16
|
+
*
|
|
17
|
+
* Pure layout + `.mkt-*` CSS — zero runtime deps. The framed content is whatever
|
|
18
|
+
* spec blocks the host drops into the `content` slot (StatGrid, TrendChart,
|
|
19
|
+
* SearchableTable, KanbanBoard, …), so it renders for real.
|
|
20
|
+
*/
|
|
21
|
+
export declare const BrowserFrame: RendererComponent;
|
|
22
|
+
/** Oversized mono section number + serif title + lead paragraph. */
|
|
23
|
+
export declare const SectionHeader: RendererComponent;
|
|
24
|
+
/**
|
|
25
|
+
* Responsive grid of hairline feature cards with hover lift. Accepts an `items`
|
|
26
|
+
* array (each → a FeatureCard) and/or rendered FeatureCard children.
|
|
27
|
+
*/
|
|
28
|
+
export declare const FeatureGrid: RendererComponent;
|
|
29
|
+
/** Single hairline feature card. Usable standalone inside a FeatureGrid. */
|
|
30
|
+
export declare const FeatureCard: RendererComponent;
|
|
31
|
+
/**
|
|
32
|
+
* Mono code panel with window chrome (three dots) + line numbers — used to show
|
|
33
|
+
* a UIBot YAML/JSON spec. Pure CSS, no syntax highlighter dependency.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CodeShowcase: RendererComponent;
|
|
36
|
+
/** Inverted ink-black panel with a single amber CTA. */
|
|
37
|
+
export declare const CtaBand: RendererComponent;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
2
|
+
/**
|
|
3
|
+
* Top-of-page announcement bar. A slim full-width strip with an optional icon,
|
|
4
|
+
* a message, an optional inline CTA link and a decorative dismiss "×". `tone`
|
|
5
|
+
* switches the wash between the four brand accents; `solid` fills the strip with
|
|
6
|
+
* the accent instead of a soft tint.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Banner: RendererComponent;
|
|
9
|
+
/**
|
|
10
|
+
* Alternating two-column feature section: an editorial text column (eyebrow,
|
|
11
|
+
* serif title, body, bullet list, optional CTA) beside a visual column. The
|
|
12
|
+
* visual renders the `visual` slot (or children) — typically a BrowserFrame or a
|
|
13
|
+
* rendered preview — falling back to a tinted blueprint placeholder. `reverse`
|
|
14
|
+
* flips the column order for an alternating rhythm down a page.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeatureSplit: RendererComponent;
|
|
17
|
+
/**
|
|
18
|
+
* Feature comparison table across products/plans. The header row lists columns
|
|
19
|
+
* (a `highlighted` column gets an amber-washed spine); each body row pairs a
|
|
20
|
+
* feature label with one value per column — booleans render as amber check /
|
|
21
|
+
* muted cross glyphs, strings render verbatim. Horizontally scrollable on small
|
|
22
|
+
* screens.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ComparisonTable: RendererComponent;
|
|
25
|
+
/**
|
|
26
|
+
* Product roadmap / milestone timeline. A vertical rail with one node per
|
|
27
|
+
* milestone; node state (`done` / `active` / `planned`) drives the dot styling
|
|
28
|
+
* — a filled amber check for shipped, an amber ring + rocket for in-progress, an
|
|
29
|
+
* outline flag for planned. Distinct from the data-studio TimelineList (which is
|
|
30
|
+
* an operational activity log); this is a marketing roadmap presentation.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Roadmap: RendererComponent;
|
|
33
|
+
/**
|
|
34
|
+
* Single big-number spotlight. An oversized serif value with an optional trend
|
|
35
|
+
* delta (up = amber, down = rose), a mono label and supporting copy. Use to draw
|
|
36
|
+
* the eye to one headline metric between sections — distinct from StatBand
|
|
37
|
+
* (a multi-stat row).
|
|
38
|
+
*/
|
|
39
|
+
export declare const StatHighlight: RendererComponent;
|
|
40
|
+
/**
|
|
41
|
+
* Benefit / checklist list with icons. Each item shows a tinted icon chip, a
|
|
42
|
+
* title and optional supporting line. `columns` (1–3) lays the items into a
|
|
43
|
+
* grid; tints cycle the four accents. Lighter-weight than FeatureGrid (no card
|
|
44
|
+
* material) — for inline benefit/checklist runs.
|
|
45
|
+
*/
|
|
46
|
+
export declare const IconList: RendererComponent;
|
|
47
|
+
/**
|
|
48
|
+
* Multi-column marketing footer. A brand block (mono wordmark + tagline) sits
|
|
49
|
+
* beside grouped link columns; a bottom rule carries an optional copyright line
|
|
50
|
+
* and small print. Pure layout off theme tokens; under `.marketing` the brand
|
|
51
|
+
* wordmark uses the serif display face.
|
|
52
|
+
*/
|
|
53
|
+
export declare const Footer: RendererComponent;
|
|
54
|
+
/**
|
|
55
|
+
* General-purpose content accordion built on native <details>/<summary> — fully
|
|
56
|
+
* functional with zero JS / state wiring. Each row carries an optional leading
|
|
57
|
+
* icon chip, a title and a body, separated as standalone hairline cards (vs. the
|
|
58
|
+
* Faq block's single divided card). `defaultOpenFirst` opens the first row.
|
|
59
|
+
*/
|
|
60
|
+
export declare const AccordionList: RendererComponent;
|
|
61
|
+
/**
|
|
62
|
+
* KPI metric card with an inline SVG sparkline. Shows a label, a big value, a
|
|
63
|
+
* trend delta (up = amber, down = rose) and a pure-SVG sparkline drawn from a
|
|
64
|
+
* `points` series — no chart dependency. A `.mkt-card` with hover lift; tint
|
|
65
|
+
* selects the accent hue. Designed to sit in a Grid/StatGrid for a metrics row.
|
|
66
|
+
*/
|
|
67
|
+
export declare const MetricCard: RendererComponent;
|
|
68
|
+
/**
|
|
69
|
+
* Caption gallery grid. Lays image tiles (or, with no `src`, a tinted blueprint
|
|
70
|
+
* placeholder) onto a responsive grid; an item may opt into `wide` to span two
|
|
71
|
+
* columns for a mixed-rhythm mosaic. Captions sit on a gradient scrim over each
|
|
72
|
+
* tile. Hairline framing, hover lift. No external images required.
|
|
73
|
+
*/
|
|
74
|
+
export declare const GalleryGrid: RendererComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CatalogEntry } from "@uibot/contracts";
|
|
2
|
+
/**
|
|
3
|
+
* Full catalog entries for every studio block. Completeness here mirrors
|
|
4
|
+
* blocks-shadcn (description / category / level / props schema / usageScenarios
|
|
5
|
+
* / constraints / tags) so these blocks can feed `generateCatalogPrompt` and be
|
|
6
|
+
* distributed through the registry. The package's test suite gates this.
|
|
7
|
+
*/
|
|
8
|
+
export declare const STUDIO_CATALOG_ENTRIES: Record<string, CatalogEntry>;
|
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var e={Grid:{name:"Grid",description:"Declarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.",category:"primitive",level:"L1",tags:["layout","grid","container"],props:{cols:{enum:["1","2","3","4","5","6","auto",1,2,3,4,5,6],default:"auto",description:"Column count, or 'auto' for auto-fit minmax(220px,1fr)"},gap:{type:"string",enum:["none","xs","sm","md","lg","xl"],default:"md"},responsive:{type:"boolean",default:!1,description:"Use a mobile-first ladder (grid-cols-1 \u2192 sm:2 \u2192 lg:N) instead of a fixed column count"},align:{type:"string",enum:["start","center","end","stretch"]},justify:{type:"string",enum:["start","center","end","between","around"]}},usageScenarios:["4-up Stat dashboard row (cols=4)","Responsive card gallery (cols=3, responsive=true)","Two-column form layout (cols=2)"],constraints:["Grid children become grid cells directly; do not wrap each child in a Box","Use cols='auto' when the number of children is dynamic"]},StatGrid:{name:"StatGrid",description:"Responsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.",category:"composite",level:"L2",tags:["stat","kpi","dashboard","grid"],props:{cols:{type:"string",enum:["1","2","3","4","auto"],default:"auto"},items:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"},change:{type:"string"},trend:{type:"string",enum:["up","down"]},description:{type:"string"}}},description:"Inline KPI items used when no Stat children are provided"}},usageScenarios:["Overview dashboard KPI row","Operations metrics summary above a table"],constraints:["Provide either Stat children or items, not both \u2014 children win when present"]},TrendChart:{name:"TrendChart",description:"Pure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.",category:"composite",level:"L2",tags:["chart","trend","line","svg"],props:{title:{type:"string"},series:{type:"array",items:{type:"object",properties:{name:{type:"string"},points:{type:"array",items:{type:"number"}},area:{type:"boolean",default:!1}}},description:"[{name, points:number[], area?}]"},labels:{type:"array",items:{type:"string"},description:"Optional x-axis labels"},width:{type:"integer",default:480},height:{type:"integer",default:160}},usageScenarios:["Evolution score trend over versions","Daily active users line chart"],constraints:["Keep each series under ~200 points; larger inputs produce heavy SVG DOM"]},LineChart:{name:"LineChart",description:"Alias of TrendChart \u2014 pure-SVG multi-series line / area chart.",category:"composite",level:"L2",tags:["chart","line","svg"],props:{title:{type:"string"},series:{type:"array",items:{type:"object",properties:{name:{type:"string"},points:{type:"array",items:{type:"number"}},area:{type:"boolean"}}}},width:{type:"integer",default:480},height:{type:"integer",default:160}},usageScenarios:["Same as TrendChart; use whichever name reads better in the spec"],constraints:["Identical implementation to TrendChart"]},KanbanBoard:{name:"KanbanBoard",description:"Horizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.",category:"composite",level:"L3",tags:["kanban","board","operations"],props:{columns:{type:"array",items:{type:"object",properties:{id:{type:"string"},title:{type:"string"}}},description:"[{id, title}] swimlane definitions"},cards:{type:"array",items:{type:"object",properties:{id:{type:"string"},column:{type:"string"},title:{type:"string"},subtitle:{type:"string"},badge:{type:"string"}}},description:"[{id, column, title, subtitle?, badge?}] \u2014 column must match a column id"}},usageScenarios:["Operations task board (Todo / In progress / Done)","Release pipeline stages"],constraints:["Each card.column must reference an existing column.id, else the card is dropped","Up to 4 columns fit the container as an equal-width grid (no scrollbar); 5+ columns switch to a horizontal scroll strip"]},Matrix:{name:"Matrix",description:"Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.",category:"composite",level:"L3",tags:["matrix","heatmap","grid","governance"],props:{caption:{type:"string"},rows:{type:"array",items:{type:"string"},description:"Row labels"},cols:{type:"array",items:{type:"string"},description:"Column labels"},cells:{type:"array",items:{type:"array",items:{type:"number"}},description:"rows\xD7cols grid of intensities in [0,1]"},showValues:{type:"boolean",default:!1,description:"Print the numeric value in each cell"}},usageScenarios:["Governance capability coverage matrix","Risk heatmap (likelihood \xD7 impact)"],constraints:["Intensities are single-polar 0..1; negative / diverging scales are not supported","cells should be rows.length \xD7 cols.length; missing cells render as 0"]},Heatmap:{name:"Heatmap",description:"Alias of Matrix \u2014 two-dimensional 0..1 intensity grid.",category:"composite",level:"L3",tags:["heatmap","matrix","grid"],props:{caption:{type:"string"},rows:{type:"array",items:{type:"string"}},cols:{type:"array",items:{type:"string"}},cells:{type:"array",items:{type:"array",items:{type:"number"}}},showValues:{type:"boolean",default:!1}},usageScenarios:["Same as Matrix"],constraints:["Identical implementation to Matrix"]},DiagnosticsList:{name:"DiagnosticsList",description:"Levelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).",category:"composite",level:"L2",tags:["diagnostics","list","status","overview"],props:{items:{type:"array",items:{type:"object",properties:{level:{type:"string",enum:["info","warn","error"]},title:{type:"string"},detail:{type:"string"}}},description:"[{level, title, detail?}]"}},usageScenarios:["Overview page diagnostics slot","Spec validation results list"],constraints:["level defaults to 'info' when omitted or unrecognised"]},TimelineList:{name:"TimelineList",description:"Vertical timeline with a left rail and a status dot per item (ok / warn / error).",category:"composite",level:"L2",tags:["timeline","activity","operations"],props:{items:{type:"array",items:{type:"object",properties:{time:{type:"string"},title:{type:"string"},desc:{type:"string"},status:{type:"string",enum:["ok","warn","error"]}}},description:"[{time, title, desc?, status?}]"}},usageScenarios:["Operations event timeline","Deployment / audit history"],constraints:["status defaults to 'ok' when omitted"]},SearchableTable:{name:"SearchableTable",description:"Table with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).",category:"feature",level:"L3",tags:["table","search","interactive","data"],props:{columns:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"},align:{type:"string",enum:["left","center","right"]}}}},rows:{type:"array",items:{type:"object"},description:"Row objects keyed to column.key"},searchKey:{type:"string",default:"search",description:"State path the search query writes to"},placeholder:{type:"string",default:"Search\u2026"},emptyText:{type:"string",default:"No matching rows",description:"Copy shown when the filtered row set is empty"}},usageScenarios:["Searchable plugins / catalog list in studio","User management table with live filtering"],constraints:["Requires a live host (dispatch) for the search box to update host state; client-side filtering still works on already-resolved rows"]},SplitMasterDetail:{name:"SplitMasterDetail",description:"Master/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.",category:"feature",level:"L3",tags:["split","master-detail","interactive","layout"],props:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},title:{type:"string"},subtitle:{type:"string"}}},description:"[{id, title, subtitle?}] left-list entries"},selectKey:{type:"string",default:"selectedId",description:"State path the selected id writes to"}},slots:{detail:{description:"Right-pane content; usually host-composed from the selected item via _find"}},usageScenarios:["Skills list \u2192 skill detail","Agents directory \u2192 agent inspector"],constraints:["Selection defaults to the first item's id until the host updates selectKey"]},DetailField:{name:"DetailField",description:"Label + value display row, for use inside a detail pane.",category:"primitive",level:"L1",tags:["detail","field","display"],props:{label:{type:"string"},value:{type:"string",description:"Any scalar; rendered as '\u2014' when empty"},inline:{type:"boolean",default:!1,description:"Render label and value on one line"}},usageScenarios:["Field row inside a SplitMasterDetail detail pane","Read-only record summary"],constraints:["Use for scalar values; for structured data prefer KeyValueGrid"]},BadgeGroup:{name:"BadgeGroup",description:"Horizontal group of status badges. Items may be plain strings or {label, tone}.",category:"composite",level:"L1",tags:["badge","status","tags"],props:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},tone:{type:"string",enum:["default","success","warning","error","info"]}}},description:"Array of strings or [{label, tone?}]"}},usageScenarios:["Status / tag chips on a list row","Capability flags on an agent card"],constraints:["tone defaults to 'default' when omitted or unrecognised"]},KeyValueGrid:{name:"KeyValueGrid",description:"Compact key/value grid for metadata. Accepts an items array or a plain record object.",category:"composite",level:"L1",tags:["key-value","metadata","grid","display"],props:{items:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}},description:"[{key, value}] pairs (or pass a plain object as `data`)"},cols:{enum:["1","2","3",1,2,3],default:"2"}},usageScenarios:["Model metadata panel (provider, context, pricing)","Request / response header summary"],constraints:["Values are stringified for display; pass pre-formatted strings for control"]},Hero:{name:"Hero",description:"Asymmetric editorial hero: serif display title (with optional italic emphasis word), mono eyebrow with amber dot, warm radial-glow + blueprint dot-grid backdrop, grain overlay, staggered reveal, and primary/secondary CTAs. An optional right-side visual renders via the `aside` slot or children.",category:"presentation",level:"L3",tags:["hero","marketing","landing","editorial"],props:{eyebrow:{type:"string",description:"Mono uppercase kicker above the title"},title:{type:"string",description:"Serif display headline"},titleEmphasis:{type:"string",description:"Optional trailing word rendered italic + amber for emphasis"},subtitle:{type:"string",description:"Supporting lead paragraph"},primaryCta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 solid amber button"},secondaryCta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 outline button"},note:{type:"string",description:"Small mono note under the CTAs"}},slots:{aside:{description:"Right-pane visual (e.g. a rendered spec preview); hidden on mobile"}},usageScenarios:["Studio landing-page hero introducing 'AI writes the spec, the platform renders the UI'","Product launch hero with a spec snippet preview on the right"],constraints:["CTA props are {label, href}; href defaults to '#' when omitted","Use titleEmphasis for a single emphasis word, not the whole title"]},BrowserFrame:{name:"BrowserFrame",description:"Product-screenshot window shell: frames its `content` slot (or children) in a precise browser/app chrome \u2014 three traffic-light dots + a mono title/address bar \u2014 with a hairline border, long soft shadow, and an optional 3D tilt. Used to present a live-rendered UI as a product-shot visual (dogfood) instead of a static screenshot.",category:"presentation",level:"L2",tags:["frame","browser","window","screenshot","marketing"],props:{title:{type:"string",description:"Address/title shown in the window chrome (defaults to 'app.uibot.studio')"},variant:{type:"string",enum:["flat","tilt"],default:"flat",description:"'tilt' adds a subtle 3D perspective tilt for a product-shot feel"},tone:{type:"string",enum:["0","1","2","3"],default:"0",description:"Accent-hue index for the chrome address bar wash (0 amber \xB7 1 teal \xB7 2 rose \xB7 3 indigo)"}},slots:{content:{description:"The UI rendered inside the frame; usually a real dashboard composed from data blocks"}},usageScenarios:["Hero visual framing a live-rendered mini dashboard as the product shot","Showcase row of small frames each rendering a different UI from the same engine"],constraints:["Frames the `content` slot, falling back to children; supply real spec blocks to render a live UI","Decorative chrome only \u2014 it does not add browser behaviour (no real address bar)"]},SectionHeader:{name:"SectionHeader",description:"Editorial section header: oversized mono section number (e.g. '01'), mono eyebrow, serif title, and a lead paragraph. Sets the rhythm between page sections.",category:"presentation",level:"L2",tags:["section","header","marketing","editorial"],props:{sectionNo:{type:"string",description:"Oversized mono numeral, e.g. '01'"},eyebrow:{type:"string",description:"Mono uppercase kicker"},title:{type:"string",description:"Serif section title"},lead:{type:"string",description:"Lead / intro paragraph"}},usageScenarios:["Numbered section dividers on a landing page (01 Features, 02 How it works)","Editorial chapter header above a FeatureGrid"],constraints:["sectionNo is display text; any string works (e.g. '01', 'A', '\xA71')"]},FeatureGrid:{name:"FeatureGrid",description:"Responsive grid of hairline feature cards with hover lift. Renders an `items` array (icon name + title + desc) into FeatureCards, or lays out FeatureCard children directly.",category:"presentation",level:"L2",tags:["features","grid","cards","marketing"],props:{cols:{type:"string",enum:["2","3","4"],default:"3"},items:{type:"array",items:{type:"object",properties:{icon:{type:"string",description:"lucide icon name (sparkles, zap, layers, code, cpu, workflow, gauge, shield, wand, boxes)"},title:{type:"string"},desc:{type:"string"}}},description:"[{icon, title, desc}] feature entries"}},usageScenarios:["Three-up feature highlights under a SectionHeader","Capability grid (declarative spec, gap recovery, plugin catalog)"],constraints:["icon is a lucide name mapped to a built-in inline SVG; unknown names fall back to a dot","Provide either items or FeatureCard children \u2014 children win when present"]},FeatureCard:{name:"FeatureCard",description:"Single hairline feature card: inline-SVG icon, serif title, body copy, and optional children. Designed to sit inside a FeatureGrid but works standalone.",category:"presentation",level:"L1",tags:["feature","card","marketing"],props:{icon:{type:"string",description:"lucide icon name (see FeatureGrid)"},title:{type:"string"},desc:{type:"string"}},usageScenarios:["A single emphasised feature beside a screenshot","Composed children inside a FeatureGrid for custom card bodies"],constraints:["icon resolves against the built-in inline-SVG set; unknown \u2192 dot fallback"]},CodeShowcase:{name:"CodeShowcase",description:"Mono code panel with window chrome (three dots) and line numbers, used to showcase a UIBot YAML/JSON spec. Pure CSS, no syntax-highlighter dependency.",category:"presentation",level:"L2",tags:["code","spec","showcase","marketing"],props:{title:{type:"string",description:"Filename / label shown in the window chrome"},code:{type:"string",description:"Raw code string; newline-separated, rendered with line numbers"},caption:{type:"string",description:"Caption under the panel"}},usageScenarios:["Show an example UIBot YAML spec on the landing page","Before/after spec snippet in a docs section"],constraints:["code is plain text rendered verbatim with line numbers; no highlighting/escaping beyond React's default"]},CtaBand:{name:"CtaBand",description:"Inverted ink-black call-to-action band with grain overlay and a single amber CTA. Closes a landing page with high contrast.",category:"presentation",level:"L2",tags:["cta","band","marketing","conversion"],props:{title:{type:"string",description:"Serif headline"},subtitle:{type:"string",description:"Supporting line"},cta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 solid amber button"}},usageScenarios:["Final 'Start building' band at the bottom of the landing page","Newsletter / docs CTA between sections"],constraints:["Single CTA by design; cta.href defaults to '#' when omitted"]},Faq:{name:"Faq",description:"Editorial accordion FAQ built on native <details>/<summary> \u2014 fully functional with zero JS / state wiring. Optional eyebrow/title/lead header; rows carry a mono index numeral, a hairline plus-mark that rotates 45\xB0 into a close-mark on open, and a grid-rows expand transition.",category:"presentation",level:"L2",tags:["faq","accordion","marketing","content"],props:{eyebrow:{type:"string",description:"Optional mono overline above the title (accent colored)"},title:{type:"string",description:"Optional serif heading above the list"},lead:{type:"string",description:"Optional muted intro line under the title"},defaultOpenFirst:{type:"boolean",description:"When true, the first row renders open on mount"},items:{type:"array",items:{type:"object",properties:{q:{type:"string"},a:{type:"string"}}},description:"[{q, a}] question/answer pairs; rows with an empty q are dropped"}},usageScenarios:["Pricing / product FAQ section on a landing page","Docs 'common questions' block"],constraints:["Uses native <details> so multiple rows can be open at once; no single-open behaviour","Answers render as plain text; pass pre-formatted strings"]},TeamGrid:{name:"TeamGrid",description:"Grid of team-member cards. Each shows an avatar (image when `avatar` is a URL, otherwise tinted initials), name, mono role and optional bio. Hairline cards with hover lift.",category:"presentation",level:"L2",tags:["team","people","grid","marketing"],props:{columns:{type:"string",enum:["2","3","4"],default:"3"},members:{type:"array",items:{type:"object",properties:{name:{type:"string"},role:{type:"string"},bio:{type:"string"},avatar:{type:"string",description:"Image URL, or short text/emoji shown as the avatar; falls back to initials"}}},description:"[{name, role?, bio?, avatar?}] \u2014 members with an empty name are dropped"}},usageScenarios:["About page 'meet the team' grid","Advisors / contributors showcase"],constraints:["avatar is treated as an image when it looks like a URL (http(s):/data:/leading slash); otherwise rendered as text","Initials are derived from the name when no avatar is given"]},Steps:{name:"Steps",description:"'How it works' steps with oversized mono numerals. variant 'numbered' (default) is a responsive card row; variant 'connected' is a vertical rail with a connecting line between numbered dots.",category:"presentation",level:"L2",tags:["steps","how-it-works","process","marketing"],props:{variant:{type:"string",enum:["numbered","connected"],default:"numbered",description:"'numbered' = card row with big numerals; 'connected' = vertical rail with a line"},steps:{type:"array",items:{type:"object",properties:{title:{type:"string"},desc:{type:"string"},icon:{type:"string",description:"Optional lucide icon name; replaces the numeral in the 'connected' dot"}}},description:"[{title, desc?, icon?}] in sequence order; steps with an empty title are dropped"}},usageScenarios:["Three-step onboarding ('Describe \u2192 Generate \u2192 Render')","Connected setup sequence in docs"],constraints:["Numbering is automatic (01, 02, \u2026) from array order","icon only affects the 'connected' variant's dot; the numbered variant always shows the numeral","Numbered variant derives its column count from the step count (clamped 2\u20134), so 4 steps fill one row"]},BentoGrid:{name:"BentoGrid",description:"Asymmetric bento layout. Lays BentoCell children, or an `items` array, onto a CSS grid whose base column count is `cols`; cells opt into col/row spans to break the rhythm into a mixed-size mosaic. Hairline cards, per-cell accent tone.",category:"presentation",level:"L3",tags:["bento","grid","layout","marketing"],props:{cols:{type:"string",enum:["2","3","4","6"],default:"3",description:"Base column count of the grid (cells may span fewer/more)"},gap:{type:"string",enum:["none","sm","md","lg"],default:"md"},items:{type:"array",items:{type:"object",properties:{title:{type:"string"},desc:{type:"string"},icon:{type:"string",description:"lucide icon name"},tone:{type:"integer",description:"Accent-hue index 0\u20133 (amber/teal/rose/indigo)"},span:{type:"object",properties:{col:{type:"integer"},row:{type:"integer"}},description:"Cell span; col 1\u20134, row 1\u20133"}}},description:"Inline cells used when no BentoCell children are provided"}},usageScenarios:["Feature mosaic where one tile is hero-sized (span col 2) and the rest are small","Capability bento mixing tall and wide tiles"],constraints:["Provide either BentoCell children or items \u2014 children win when present","span.col is clamped to 1\u20134 and span.row to 1\u20133 via static class maps (no purge risk)"]},BentoCell:{name:"BentoCell",description:"A single bento tile, usable standalone inside a BentoGrid. Reads span.col / span.row and maps them to static span classes so the cell can be as wide/tall as the mosaic needs. Optional icon/title/desc plus composed children.",category:"presentation",level:"L1",tags:["bento","cell","card","marketing"],props:{title:{type:"string"},desc:{type:"string"},icon:{type:"string",description:"lucide icon name"},tone:{type:"integer",description:"Accent-hue index 0\u20133 (amber/teal/rose/indigo)"},span:{type:"object",properties:{col:{type:"integer"},row:{type:"integer"}},description:"{col?, row?} \u2014 col clamped 1\u20134, row clamped 1\u20133"}},usageScenarios:["A hero tile (span col 2, row 2) holding a rendered preview inside a BentoGrid","Custom-bodied bento tile composed from child blocks"],constraints:["Spans are clamped 1\u20134 (col) / 1\u20133 (row) and emitted as static classes","Designed to sit inside a BentoGrid; standalone it renders as a lone card"]},Callout:{name:"Callout",description:"Emphasis callout panel: a tinted box (semantic or brand colour) with an icon, optional title and body. color-mix against the chosen token keeps the wash subtle and legible in light and dark.",category:"presentation",level:"L1",tags:["callout","note","alert","marketing"],props:{variant:{type:"string",enum:["info","success","warn","accent"],default:"info",description:"Colour/role: info (indigo) \xB7 success (green) \xB7 warn (amber) \xB7 accent (brand amber)"},title:{type:"string",description:"Emphasised lead line, coloured to the variant"},body:{type:"string",description:"Supporting paragraph"},icon:{type:"string",description:"Optional lucide icon name; defaults to a sensible glyph per variant"}},usageScenarios:["Inline 'Note' / 'Tip' block inside docs or a landing section","Success confirmation or warning banner above content"],constraints:["variant falls back to 'info' when omitted or unrecognised","icon defaults per variant (info\u2192info, success\u2192check, warn\u2192alert, accent\u2192sparkles)"]},PricingTable:{name:"PricingTable",description:"Responsive 2\u20134 column pricing grid of hairline cards. The `highlighted` plan gets an amber border + 'Popular' badge + solid amber CTA; others use an outline CTA. Features list with amber check glyphs. CTAs are {label, href} anchors.",category:"presentation",level:"L3",tags:["pricing","plans","marketing","conversion"],props:{plans:{type:"array",items:{type:"object",properties:{name:{type:"string"},price:{type:"string",description:"Display price, e.g. '$29' or 'Free'"},period:{type:"string",description:"Billing period suffix, e.g. '/mo'"},description:{type:"string",description:"Short plan summary line"},features:{type:"array",items:{type:"string"},description:"Bullet feature list"},cta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 solid amber when highlighted, else outline"},highlighted:{type:"boolean",default:!1,description:"Mark the featured/popular plan"}}},description:"[{name, price, period?, description?, features[], cta{label,href}, highlighted?}]"},billingNote:{type:"string",description:"Mono note under the grid, e.g. 'Billed annually \xB7 cancel anytime'"}},usageScenarios:["Three-tier SaaS pricing section (Starter / Pro / Enterprise)","Two-up free-vs-paid comparison with a highlighted paid plan"],constraints:["Column count is derived from plans.length, clamped to 2\u20134","CTA props are {label, href}; href defaults to '#'","Mark at most one plan highlighted for a clear focal point"]},Testimonials:{name:"Testimonials",description:"Grid of testimonial cards (hairline `.mkt-card`, hover lift): optional star rating, serif italic pull-quote, and an initials avatar token + author + role. `columns` (1\u20133) controls the grid; avatar tints cycle the four accents.",category:"presentation",level:"L2",tags:["testimonials","social-proof","marketing","quotes"],props:{items:{type:"array",items:{type:"object",properties:{quote:{type:"string"},author:{type:"string"},role:{type:"string",description:"Author title / company"},avatar:{type:"string",description:"Explicit avatar token; defaults to author initials"},rating:{type:"integer",description:"Optional 1\u20135 star rating"}}},description:"[{quote, author, role?, avatar?, rating?}]"},columns:{type:"string",enum:["1","2","3"],description:"Grid column count (defaults from item count)"}},usageScenarios:["Three-up customer quote wall under a SectionHeader","Single highlighted testimonial beside a feature"],constraints:["avatar defaults to first-letter initials of author; no external images","rating is clamped to 0\u20135 and omitted when absent"]},LogoCloud:{name:"LogoCloud",description:"A single grayscale 'trusted by' logo strip. With no external images each logo is a mono wordmark (initials for long names); the row is dimmed/desaturated and lifts to full foreground on hover. Optional mono `label` above the row.",category:"presentation",level:"L1",tags:["logos","social-proof","marketing","brands"],props:{label:{type:"string",description:"Eyebrow above the row, e.g. 'Trusted by teams at'"},logos:{type:"array",items:{type:"object",properties:{name:{type:"string"}}},description:"Array of strings or [{name}] \u2014 rendered as mono wordmarks/initials"}},usageScenarios:["Logo strip directly under the hero for social proof","Press/partner row between sections"],constraints:["Text-only wordmarks \u2014 no external logo images are loaded","Names longer than 14 chars collapse to initials"]},StatBand:{name:"StatBand",description:"Big-number statistics band: oversized serif values with mono labels, divided by hairline rules. `tone` switches the surface \u2014 plain, muted (soft card panel) or inverse (ink-black panel with warm amber\u2192rose glow + grain).",category:"presentation",level:"L2",tags:["stats","metrics","marketing","band"],props:{stats:{type:"array",items:{type:"object",properties:{value:{type:"string",description:"Big display value, e.g. '99.9%' or '12k+'"},label:{type:"string"},sub:{type:"string",description:"Optional sub-label under the metric"}}},description:"[{value, label, sub?}]"},tone:{type:"string",enum:["plain","muted","inverse"],default:"plain",description:"Surface treatment: plain (transparent) \xB7 muted (card panel) \xB7 inverse (ink-black glow panel)"}},usageScenarios:["Four-up headline metrics band (uptime / users / latency / saved)","Inverse-tone impact band between marketing sections"],constraints:["Column count derives from stats.length, clamped to 1\u20134","Values are display strings; pre-format numbers/units yourself"]},Newsletter:{name:"Newsletter",description:"Email-capture band: serif title + supporting line, then a token-styled email input beside a CTA anchor. Presentational \u2014 the input is decorative and the CTA navigates via {label, href}; wire real submission at the host.",category:"presentation",level:"L2",tags:["newsletter","subscribe","marketing","email"],props:{title:{type:"string",description:"Serif headline"},subtitle:{type:"string",description:"Supporting line under the title"},placeholder:{type:"string",default:"you@example.com",description:"Email input placeholder"},cta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 solid amber submit button (defaults to 'Subscribe' / '#')"}},usageScenarios:["End-of-page 'Stay in the loop' email signup","Docs/blog newsletter band between content sections"],constraints:["Input is decorative; the form action points at cta.href \u2014 handle real submission upstream","Single email field + single CTA by design"]},Banner:{name:"Banner",description:"Slim full-width announcement bar: optional icon + message, an inline CTA link and a decorative dismiss '\xD7'. `tone` picks one of the four brand accents; `solid` fills the strip with the accent instead of a soft tint.",category:"presentation",level:"L1",tags:["banner","announcement","marketing","notice"],props:{message:{type:"string",description:"Announcement text"},icon:{type:"string",description:"lucide icon name (defaults to 'sparkles')"},tone:{type:"string",enum:["0","1","2","3"],default:"0",description:"Accent-hue index (0 amber \xB7 1 teal \xB7 2 rose \xB7 3 indigo)"},solid:{type:"boolean",default:!1,description:"Fill the strip with the accent colour"},cta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 inline mono link on the right"},dismissible:{type:"boolean",default:!0,description:"Show the decorative \xD7 (presentational only)"}},usageScenarios:["Top-of-page launch/announcement strip above the hero","Soft-tint 'new docs available' notice between sections"],constraints:["The dismiss \xD7 is decorative \u2014 wire real dismissal at the host","tone is 0\u20133; CTA href defaults to '#'"]},FeatureSplit:{name:"FeatureSplit",description:"Alternating two-column feature section: an editorial text column (eyebrow, serif title, body, bulleted benefits, optional CTA) beside a visual column. The visual renders the `visual` slot (or children) \u2014 e.g. a BrowserFrame \u2014 falling back to a tinted blueprint placeholder. `reverse` flips the column order for an alternating page rhythm.",category:"presentation",level:"L3",tags:["feature","split","two-column","marketing"],props:{eyebrow:{type:"string",description:"Mono uppercase kicker"},title:{type:"string",description:"Serif feature title"},body:{type:"string",description:"Supporting paragraph"},bullets:{type:"array",items:{type:"object",properties:{icon:{type:"string"},text:{type:"string"}}},description:"Array of strings or [{icon?, text}] benefit rows"},cta:{type:"object",properties:{label:{type:"string"},href:{type:"string"}},description:"{label, href} \u2014 solid amber button"},reverse:{type:"boolean",default:!1,description:"Place the visual on the left"},tone:{type:"string",enum:["0","1","2","3"],default:"0",description:"Accent-hue index for the bullet chips / placeholder"}},slots:{visual:{description:"Right-pane visual (BrowserFrame, rendered preview, image); falls back to children then a placeholder"}},usageScenarios:["Alternating feature rows down a landing page (reverse every other)","Text + live BrowserFrame preview feature block"],constraints:["Provide a visual slot/children for the right pane; otherwise a tinted placeholder renders","bullets accept strings or {icon?, text}; CTA href defaults to '#'"]},ComparisonTable:{name:"ComparisonTable",description:"Feature comparison table across products/plans. The header lists columns (a `highlighted` column gets an amber-washed spine); each row pairs a feature label with one value per column \u2014 booleans render as amber check / muted cross glyphs, strings render verbatim. Horizontally scrollable on small screens.",category:"presentation",level:"L3",tags:["comparison","table","pricing","marketing"],props:{featureLabel:{type:"string",description:"Header label for the feature column (often blank)"},columns:{type:"array",items:{type:"object",properties:{name:{type:"string"},highlighted:{type:"boolean"}}},description:"Array of strings or [{name, highlighted?}] \u2014 column headers"},rows:{type:"array",items:{type:"object",properties:{feature:{type:"string"},values:{type:"array",items:{},description:"One value per column (boolean \u2192 \u2713/\u2717, string \u2192 verbatim)"}}},description:"[{feature, values[]}] \u2014 values align positionally with columns"}},usageScenarios:["Plan feature comparison (Free / Pro / Enterprise) with a highlighted column","Product-vs-competitor capability matrix"],constraints:["values align by index with columns; missing/falsey values render as a muted cross","Booleans (or 'yes'/'no'/'true'/'false') become glyphs; other strings render verbatim"]},Roadmap:{name:"Roadmap",description:"Product roadmap / milestone timeline. A vertical rail with one node per milestone; node state drives the dot \u2014 a filled amber check for 'done', an amber ring + rocket for 'active', an outline flag for 'planned'. A marketing roadmap (distinct from the operational TimelineList activity log).",category:"presentation",level:"L2",tags:["roadmap","milestones","timeline","marketing"],props:{milestones:{type:"array",items:{type:"object",properties:{date:{type:"string",description:"Quarter/date label, e.g. 'Q3 2026'"},title:{type:"string"},desc:{type:"string"},state:{type:"string",enum:["done","active","planned"]}}},description:"[{date?, title, desc?, state?}] in sequence order"}},usageScenarios:["Public product roadmap section (shipped / in progress / planned)","Launch sequence with dated milestones"],constraints:["state defaults to 'planned' when omitted or unrecognised","milestones with an empty title are dropped"]},StatHighlight:{name:"StatHighlight",description:"Single big-number spotlight: an oversized serif value with an optional trend delta (up = amber, down = rose), a mono label and supporting copy. Draws the eye to one headline metric (distinct from StatBand's multi-stat row).",category:"presentation",level:"L1",tags:["stat","metric","highlight","marketing"],props:{value:{type:"string",description:"Big display value, e.g. '99.9%' or '12k+'"},label:{type:"string",description:"Mono uppercase label under the value"},body:{type:"string",description:"Supporting paragraph"},delta:{type:"string",description:"Trend delta pill text, e.g. '+12%'"},trend:{type:"string",enum:["up","down"],default:"up",description:"Delta direction: up (amber, arrow up) or down (rose, arrow down)"}},usageScenarios:["Centered headline metric between two content sections","Single KPI spotlight with a growth delta"],constraints:["Values/deltas are display strings; pre-format numbers/units yourself","trend only affects the delta pill colour/arrow; omit delta to hide the pill"]},IconList:{name:"IconList",description:"Benefit / checklist list with icons. Each item shows a tinted icon chip, a title and optional supporting line, laid into a 1\u20133 column grid; tints cycle the four accents. Lighter-weight than FeatureGrid (no card material) \u2014 for inline benefit/checklist runs.",category:"presentation",level:"L1",tags:["benefits","checklist","list","marketing"],props:{columns:{type:"string",enum:["1","2","3"],default:"2"},icon:{type:"string",description:"Default lucide icon for items without their own (defaults to 'check')"},items:{type:"array",items:{type:"object",properties:{icon:{type:"string"},title:{type:"string"},desc:{type:"string"}}},description:"Array of strings or [{icon?, title, desc?}]"}},usageScenarios:["Two-column 'what's included' benefit list","Checklist of capabilities under a SectionHeader"],constraints:["items accept plain strings (\u2192 title only) or {icon?, title, desc?}","icon falls back to the block-level `icon` (default 'check'); unknown names \u2192 dot"]},Footer:{name:"Footer",description:"Multi-column marketing footer: a brand block (serif wordmark + tagline) beside grouped link columns, with a bottom rule carrying a copyright line and small print. Pure layout off theme tokens.",category:"presentation",level:"L2",tags:["footer","navigation","marketing","layout"],props:{brand:{type:"string",description:"Brand wordmark (serif display under .marketing)"},tagline:{type:"string",description:"Short brand tagline under the wordmark"},groups:{type:"array",items:{type:"object",properties:{title:{type:"string"},links:{type:"array",items:{type:"object",properties:{label:{type:"string"},href:{type:"string"}}}}}},description:"[{title, links:[{label, href}]}] link columns"},copyright:{type:"string",description:"Bottom-left copyright line"},note:{type:"string",description:"Bottom-right mono small print"}},usageScenarios:["Site-wide marketing footer with Product / Company / Legal columns","Compact footer with brand + a single link group"],constraints:["link href defaults to '#' when omitted; empty groups/links are dropped","The bottom rule only renders when copyright or note is provided"]},AccordionList:{name:"AccordionList",description:"General-purpose content accordion on native <details>/<summary> \u2014 fully functional with zero JS. Each row is a standalone hairline card with an optional leading icon chip, a title and a body. `defaultOpenFirst` opens the first row. (Faq is the divided-single-card Q&A variant.)",category:"presentation",level:"L2",tags:["accordion","details","content","marketing"],props:{title:{type:"string",description:"Optional serif heading above the list"},defaultOpenFirst:{type:"boolean",default:!1,description:"Open the first row by default"},items:{type:"array",items:{type:"object",properties:{icon:{type:"string",description:"Optional lucide icon for the row chip"},title:{type:"string"},body:{type:"string"}}},description:"[{icon?, title, body}] \u2014 rows with an empty title are dropped"}},usageScenarios:["Expandable feature explainers (icon + title + body) on a landing page","Docs 'details' sections with one card per topic"],constraints:["Uses native <details> so multiple rows can be open at once (no single-open behaviour)","Bodies render as plain text; pass pre-formatted strings"]},MetricCard:{name:"MetricCard",description:"KPI metric card with an inline pure-SVG sparkline: a mono label, a big value, a trend delta pill (up = amber, down = rose) and a sparkline drawn from a `points` series \u2014 no chart dependency. A `.mkt-card` with hover lift; `tone` selects the accent. Designed to sit in a Grid/StatGrid for a metrics row.",category:"presentation",level:"L2",tags:["metric","kpi","sparkline","card","dashboard"],props:{label:{type:"string",description:"Mono uppercase metric label"},value:{type:"string",description:"Big display value"},delta:{type:"string",description:"Trend delta pill, e.g. '+8.2%'"},trend:{type:"string",enum:["up","down"],default:"up",description:"Delta direction: up (amber) or down (rose)"},tone:{type:"string",enum:["0","1","2","3"],default:"0",description:"Accent-hue index for the sparkline stroke/fill"},points:{type:"array",items:{type:"number"},description:"Numeric series for the inline sparkline (auto-scaled)"}},usageScenarios:["Four-up KPI metrics row inside a Grid (revenue / users / latency / churn)","Single highlighted metric with a trend sparkline"],constraints:["points are auto-scaled to the card's min/max; keep series small (~<60 points)","value/delta are display strings; the sparkline is hidden when points is empty"]},GalleryGrid:{name:"GalleryGrid",description:"Caption gallery grid. Lays image tiles (or, with no `src`, a tinted blueprint placeholder) onto a 2\u20134 column responsive grid; a tile may opt into `wide` to span two columns for a mixed-rhythm mosaic. Captions sit on a gradient scrim over each tile. Hairline framing, hover lift \u2014 no external images required.",category:"presentation",level:"L2",tags:["gallery","images","grid","marketing"],props:{columns:{type:"string",enum:["2","3","4"],default:"3"},items:{type:"array",items:{type:"object",properties:{src:{type:"string",description:"Image URL; omit for a tinted placeholder"},caption:{type:"string",description:"Caption shown over a gradient scrim"},tone:{type:"integer",description:"Accent-hue index 0\u20133 for the placeholder"},wide:{type:"boolean",description:"Span two columns"}}},description:"[{src?, caption?, tone?, wide?}] gallery tiles"}},usageScenarios:["Screenshot gallery with a wide hero tile and smaller supporting tiles","Placeholder-driven layout mock before real imagery exists"],constraints:["src is treated as an image when it looks like a URL (http(s):/data:/leading slash); otherwise a placeholder renders","wide spans two columns from the sm breakpoint up"]}};export{e as STUDIO_CATALOG_ENTRIES};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ReactRegistry } from "@uibot/renderer-react";
|
|
2
|
+
import type { RendererComponent } from "@uibot/renderer-react";
|
|
3
|
+
import type { UIBotPlugin, CatalogEntry } from "@uibot/contracts";
|
|
4
|
+
export { Grid } from "./blocks/grid.js";
|
|
5
|
+
export { TrendChart, LineChart } from "./blocks/charts.js";
|
|
6
|
+
export { KanbanBoard } from "./blocks/kanban.js";
|
|
7
|
+
export { StatGrid, DiagnosticsList, Matrix, Heatmap, TimelineList } from "./blocks/data-studio.js";
|
|
8
|
+
export { SearchableTable, SplitMasterDetail, DetailField, BadgeGroup, KeyValueGrid, } from "./blocks/interactive.js";
|
|
9
|
+
export { Hero, BrowserFrame, SectionHeader, FeatureGrid, FeatureCard, CodeShowcase, CtaBand, } from "./blocks/presentation.js";
|
|
10
|
+
export { Faq, TeamGrid, Steps, BentoGrid, BentoCell, Callout } from "./blocks/content.js";
|
|
11
|
+
export { PricingTable, Testimonials, LogoCloud, StatBand, Newsletter, } from "./blocks/marketing.js";
|
|
12
|
+
export { Banner, FeatureSplit, ComparisonTable, Roadmap, StatHighlight, IconList, Footer, AccordionList, MetricCard, GalleryGrid, } from "./blocks/sections.js";
|
|
13
|
+
export { STUDIO_CATALOG_ENTRIES } from "./catalog.js";
|
|
14
|
+
declare const BLOCK_ENTRIES: {
|
|
15
|
+
readonly Grid: RendererComponent;
|
|
16
|
+
readonly StatGrid: RendererComponent;
|
|
17
|
+
readonly TrendChart: RendererComponent;
|
|
18
|
+
readonly LineChart: RendererComponent;
|
|
19
|
+
readonly KanbanBoard: RendererComponent;
|
|
20
|
+
readonly DiagnosticsList: RendererComponent;
|
|
21
|
+
readonly Matrix: RendererComponent;
|
|
22
|
+
readonly Heatmap: RendererComponent;
|
|
23
|
+
readonly TimelineList: RendererComponent;
|
|
24
|
+
readonly SearchableTable: RendererComponent;
|
|
25
|
+
readonly SplitMasterDetail: RendererComponent;
|
|
26
|
+
readonly DetailField: RendererComponent;
|
|
27
|
+
readonly BadgeGroup: RendererComponent;
|
|
28
|
+
readonly KeyValueGrid: RendererComponent;
|
|
29
|
+
readonly Hero: RendererComponent;
|
|
30
|
+
readonly BrowserFrame: RendererComponent;
|
|
31
|
+
readonly SectionHeader: RendererComponent;
|
|
32
|
+
readonly FeatureGrid: RendererComponent;
|
|
33
|
+
readonly FeatureCard: RendererComponent;
|
|
34
|
+
readonly CodeShowcase: RendererComponent;
|
|
35
|
+
readonly CtaBand: RendererComponent;
|
|
36
|
+
readonly Faq: RendererComponent;
|
|
37
|
+
readonly TeamGrid: RendererComponent;
|
|
38
|
+
readonly Steps: RendererComponent;
|
|
39
|
+
readonly BentoGrid: RendererComponent;
|
|
40
|
+
readonly BentoCell: RendererComponent;
|
|
41
|
+
readonly Callout: RendererComponent;
|
|
42
|
+
readonly PricingTable: RendererComponent;
|
|
43
|
+
readonly Testimonials: RendererComponent;
|
|
44
|
+
readonly LogoCloud: RendererComponent;
|
|
45
|
+
readonly StatBand: RendererComponent;
|
|
46
|
+
readonly Newsletter: RendererComponent;
|
|
47
|
+
readonly Banner: RendererComponent;
|
|
48
|
+
readonly FeatureSplit: RendererComponent;
|
|
49
|
+
readonly ComparisonTable: RendererComponent;
|
|
50
|
+
readonly Roadmap: RendererComponent;
|
|
51
|
+
readonly StatHighlight: RendererComponent;
|
|
52
|
+
readonly IconList: RendererComponent;
|
|
53
|
+
readonly Footer: RendererComponent;
|
|
54
|
+
readonly AccordionList: RendererComponent;
|
|
55
|
+
readonly MetricCard: RendererComponent;
|
|
56
|
+
readonly GalleryGrid: RendererComponent;
|
|
57
|
+
};
|
|
58
|
+
export type StudioBlockName = keyof typeof BLOCK_ENTRIES;
|
|
59
|
+
/** All block names provided by this package */
|
|
60
|
+
export declare const BLOCK_NAMES: StudioBlockName[];
|
|
61
|
+
export { BLOCK_ENTRIES };
|
|
62
|
+
/**
|
|
63
|
+
* UIBot Blocks Studio plugin.
|
|
64
|
+
*
|
|
65
|
+
* Registers every studio block as both a `catalog:component` and one bundled
|
|
66
|
+
* `renderer:target` capability — mirroring `createUIBotBlocksShadcnPlugin` — so
|
|
67
|
+
* the application layer can use them for spec generation and rendering. These
|
|
68
|
+
* blocks extend the shadcn catalog; the two packages stay decoupled at runtime.
|
|
69
|
+
*/
|
|
70
|
+
export declare function createUIBotBlocksStudioPlugin(): UIBotPlugin;
|
|
71
|
+
/** Default plugin export */
|
|
72
|
+
export declare const UIBotBlocksStudioPlugin: UIBotPlugin;
|
|
73
|
+
/**
|
|
74
|
+
* Build a ReactRegistry containing all studio blocks.
|
|
75
|
+
*
|
|
76
|
+
* When a `base` registry is passed (e.g. `createShadcnReactRegistry()` from
|
|
77
|
+
* `@uibot/blocks-shadcn`) the studio blocks are merged on top of it, so a single
|
|
78
|
+
* call yields everything needed for in-process dogfood preview. blocks-studio
|
|
79
|
+
* never imports blocks-shadcn directly — the caller supplies the base — keeping
|
|
80
|
+
* the two packages decoupled.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* import { createShadcnReactRegistry } from "@uibot/blocks-shadcn";
|
|
85
|
+
* const registry = createStudioReactRegistry(createShadcnReactRegistry());
|
|
86
|
+
* return <UIBotRenderer spec={flattenBlockTree(spec)} registry={registry} />;
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare function createStudioReactRegistry(base?: ReactRegistry): ReactRegistry;
|
|
90
|
+
/**
|
|
91
|
+
* Stable API for registering third-party / studio-authored React components onto
|
|
92
|
+
* a base registry. Reuses `ReactRegistry.merge` / `composeRegistry` rather than
|
|
93
|
+
* inventing a new mechanism. Returns a new registry; the input is not mutated.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```tsx
|
|
97
|
+
* const registry = registerCustomBlocks(createStudioReactRegistry(), {
|
|
98
|
+
* MyWidget: { component: MyWidget, category: "feature" },
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare function registerCustomBlocks(base: ReactRegistry, blocks: Record<string, {
|
|
103
|
+
component: RendererComponent;
|
|
104
|
+
category?: string;
|
|
105
|
+
entry?: CatalogEntry;
|
|
106
|
+
}>): ReactRegistry;
|