@uibot/blocks-studio 0.18.1 → 0.20.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 +1 -6
- package/dist/catalog.js +1 -1
- package/dist/index.js +2 -2
- package/dist/solution-recipes.d.ts +13 -0
- package/package.json +4 -4
- package/src/blocks/charts.tsx +186 -78
package/dist/blocks/charts.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
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
2
|
export declare const TrendChart: RendererComponent;
|
|
8
|
-
/** Alias
|
|
3
|
+
/** Alias for specs that prefer the LineChart name. */
|
|
9
4
|
export declare const LineChart: RendererComponent;
|
package/dist/catalog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
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};
|
|
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:"SVG line/area chart: shared axes, pointer/keyboard values and crosshair. Alias: LineChart.",category:"composite",level:"L2",tags:["chart","trend","line","svg"],props:{variant:{type:"string",enum:["card","plain"],default:"card"},title:{type:"string"},series:{type:"array",items:{type:"object",properties:{name:{type:"string"},points:{type:"array",items:{type:"number"}},area:{type:"boolean",default:!1}}}},labels:{type:"array",items:{type:"string"}},width:{type:"integer",default:480},height:{type:"integer",default:160}},usageScenarios:["Evolution score trend over versions","Daily active users line chart"],constraints:["Max ~200 points/series"]},LineChart:{name:"LineChart",description:"Alias of TrendChart, including pointer/keyboard inspection.",category:"composite",level:"L2",tags:["chart","line","svg"],props:{variant:{type:"string",enum:["card","plain"],default:"card"},labels:{type:"array",items:{type:"string"}},title:{type:"string"},series:{type:"array",items:{type:"object",properties:{name:{type:"string"},points:{type:"array",items:{type:"number"}},area:{type:"boolean",default:!1}}}},width:{type:"integer",default:480},height:{type:"integer",default:160}},usageScenarios:["Same as TrendChart; use whichever name reads better in the spec"],constraints:["Same as 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};
|