@vibes.diy/prompts 14.3.325 → 14.3.327
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/LICENSE.md +80 -0
- package/README.md +2 -2
- package/build-schema-prompt.js +0 -1
- package/chat.js +0 -1
- package/component-export-transforms.js +0 -1
- package/component-transforms.js +0 -1
- package/generation-variety.js +0 -1
- package/index.d.ts +1 -1
- package/index.js +1 -2
- package/json-docs.js +0 -1
- package/llms/access.js +0 -1
- package/llms/access.md +1 -1
- package/llms/backend.js +0 -1
- package/llms/backend.md +126 -4
- package/llms/blockly.js +0 -1
- package/llms/bluesky.js +0 -1
- package/llms/board-games.js +0 -1
- package/llms/calendar.js +0 -1
- package/llms/callai.js +0 -1
- package/llms/canvas-theme-colors.js +0 -1
- package/llms/chess-variants.js +0 -1
- package/llms/chess.js +0 -1
- package/llms/connections.js +0 -1
- package/llms/create-vibe.js +0 -1
- package/llms/cues.js +0 -1
- package/llms/d3.js +0 -1
- package/llms/fireproof.js +0 -1
- package/llms/github.js +0 -1
- package/llms/group-plan.js +0 -1
- package/llms/hydra.js +0 -1
- package/llms/image-gen.js +0 -1
- package/llms/image-gen.md +1 -1
- package/llms/index.d.ts +1 -1
- package/llms/index.js +1 -2
- package/llms/keepsake.js +0 -1
- package/llms/live-rooms.js +0 -1
- package/llms/maps.js +0 -1
- package/llms/match-style.js +0 -1
- package/llms/media-capture.js +0 -1
- package/llms/mic-capture.js +0 -1
- package/llms/motion.js +0 -1
- package/llms/needs.d.ts +2 -0
- package/llms/needs.js +12 -1
- package/llms/occasion.js +0 -1
- package/llms/owner-secret.js +0 -1
- package/llms/p5.js +0 -1
- package/llms/photo-input.js +0 -1
- package/llms/physics.js +0 -1
- package/llms/reskin.js +0 -1
- package/llms/richtext.js +0 -1
- package/llms/social-post.js +0 -1
- package/llms/sound-core.js +0 -1
- package/llms/spotify.js +0 -1
- package/llms/square.js +0 -1
- package/llms/stripe-subscriptions.js +0 -1
- package/llms/stripe.js +0 -1
- package/llms/strudel.js +0 -1
- package/llms/surface-board.js +0 -1
- package/llms/surface-play-area.js +0 -1
- package/llms/surface-presence.js +0 -1
- package/llms/surface-stage.js +0 -1
- package/llms/third-party-embed.js +0 -1
- package/llms/three-js.js +0 -1
- package/llms/touch-games.js +0 -1
- package/llms/types.d.ts +1 -0
- package/llms/types.js +0 -1
- package/llms/ui-blog.js +0 -1
- package/llms/ui-booking.js +0 -1
- package/llms/ui-calendar.js +0 -1
- package/llms/ui-chat.js +0 -1
- package/llms/ui-contact.js +0 -1
- package/llms/ui-course.js +0 -1
- package/llms/ui-crm.js +0 -1
- package/llms/ui-dashboard.js +0 -1
- package/llms/ui-editorial.js +0 -1
- package/llms/ui-event.js +0 -1
- package/llms/ui-feed.js +0 -1
- package/llms/ui-game.js +0 -1
- package/llms/ui-inbox.js +0 -1
- package/llms/ui-inventory.js +0 -1
- package/llms/ui-kanban.js +0 -1
- package/llms/ui-landing.js +0 -1
- package/llms/ui-login.js +0 -1
- package/llms/ui-music.js +0 -1
- package/llms/ui-onboarding.js +0 -1
- package/llms/ui-pricing.js +0 -1
- package/llms/ui-profile.js +0 -1
- package/llms/ui-quiz.js +0 -1
- package/llms/ui-settings.js +0 -1
- package/llms/ui-storefront.js +0 -1
- package/llms/ui-support.js +0 -1
- package/llms/ui-testimonials.js +0 -1
- package/llms/ui-todo.js +0 -1
- package/llms/ui-weather.js +0 -1
- package/llms/use-vibe.js +0 -1
- package/llms/use-viewer.js +0 -1
- package/llms/vibe-tools.js +0 -1
- package/llms/voxel.js +1 -1
- package/llms/weather.js +0 -1
- package/llms/web-audio.js +0 -1
- package/llms/web-music.js +0 -1
- package/llms/webxr.js +0 -1
- package/llms/world-controls.js +0 -1
- package/llms/worlds.js +0 -1
- package/llms/youtube.js +0 -1
- package/package.json +6 -6
- package/prompts.js +0 -1
- package/restyle.js +0 -1
- package/segment-parser.js +0 -1
- package/settings.js +0 -1
- package/style-prompts.js +0 -1
- package/system-prompt-initial-oneshot.md +1 -1
- package/system-prompt-initial.md +1 -1
- package/system-prompt.md +1 -1
- package/themes/color-math.js +0 -1
- package/themes/colorsets-bundle.js +0 -1
- package/themes/colorsets.js +0 -1
- package/themes/fonts.js +0 -1
- package/themes/index.js +0 -1
- package/themes/looks/house/field-hues.js +0 -1
- package/themes/looks/house/variety.js +0 -1
- package/themes/looks/index.js +0 -1
- package/themes/looks/pouf/catalog.generated.js +0 -1
- package/themes/looks/pouf/variety.js +0 -1
- package/themes/ornament-pad.js +0 -1
- package/themes/palette-gen.js +0 -1
- package/themes/pouf-rooms.js +0 -1
- package/themes/style-presets.js +0 -1
- package/themes/theme-slugs.js +0 -1
- package/view-state.js +0 -1
- package/build-schema-prompt.js.map +0 -1
- package/chat.js.map +0 -1
- package/component-export-transforms.js.map +0 -1
- package/component-transforms.js.map +0 -1
- package/generation-variety.js.map +0 -1
- package/index.js.map +0 -1
- package/json-docs.js.map +0 -1
- package/llms/access.js.map +0 -1
- package/llms/backend.js.map +0 -1
- package/llms/blockly.js.map +0 -1
- package/llms/bluesky.js.map +0 -1
- package/llms/board-games.js.map +0 -1
- package/llms/calendar.js.map +0 -1
- package/llms/callai.js.map +0 -1
- package/llms/canvas-theme-colors.js.map +0 -1
- package/llms/chess-variants.js.map +0 -1
- package/llms/chess.js.map +0 -1
- package/llms/connections.js.map +0 -1
- package/llms/create-vibe.js.map +0 -1
- package/llms/cues.js.map +0 -1
- package/llms/d3.js.map +0 -1
- package/llms/fireproof.js.map +0 -1
- package/llms/github.js.map +0 -1
- package/llms/group-plan.js.map +0 -1
- package/llms/hydra.js.map +0 -1
- package/llms/image-gen.js.map +0 -1
- package/llms/index.js.map +0 -1
- package/llms/keepsake.js.map +0 -1
- package/llms/live-rooms.js.map +0 -1
- package/llms/maps.js.map +0 -1
- package/llms/match-style.js.map +0 -1
- package/llms/media-capture.js.map +0 -1
- package/llms/mic-capture.js.map +0 -1
- package/llms/motion.js.map +0 -1
- package/llms/needs.js.map +0 -1
- package/llms/occasion.js.map +0 -1
- package/llms/owner-secret.js.map +0 -1
- package/llms/p5.js.map +0 -1
- package/llms/photo-input.js.map +0 -1
- package/llms/physics.js.map +0 -1
- package/llms/reskin.js.map +0 -1
- package/llms/richtext.js.map +0 -1
- package/llms/social-post.js.map +0 -1
- package/llms/sound-core.js.map +0 -1
- package/llms/spotify.js.map +0 -1
- package/llms/square.js.map +0 -1
- package/llms/stripe-subscriptions.js.map +0 -1
- package/llms/stripe.js.map +0 -1
- package/llms/strudel.js.map +0 -1
- package/llms/surface-board.js.map +0 -1
- package/llms/surface-play-area.js.map +0 -1
- package/llms/surface-presence.js.map +0 -1
- package/llms/surface-stage.js.map +0 -1
- package/llms/third-party-embed.js.map +0 -1
- package/llms/three-js.js.map +0 -1
- package/llms/touch-games.js.map +0 -1
- package/llms/types.js.map +0 -1
- package/llms/ui-blog.js.map +0 -1
- package/llms/ui-booking.js.map +0 -1
- package/llms/ui-calendar.js.map +0 -1
- package/llms/ui-chat.js.map +0 -1
- package/llms/ui-contact.js.map +0 -1
- package/llms/ui-course.js.map +0 -1
- package/llms/ui-crm.js.map +0 -1
- package/llms/ui-dashboard.js.map +0 -1
- package/llms/ui-editorial.js.map +0 -1
- package/llms/ui-event.js.map +0 -1
- package/llms/ui-feed.js.map +0 -1
- package/llms/ui-game.js.map +0 -1
- package/llms/ui-inbox.js.map +0 -1
- package/llms/ui-inventory.js.map +0 -1
- package/llms/ui-kanban.js.map +0 -1
- package/llms/ui-landing.js.map +0 -1
- package/llms/ui-login.js.map +0 -1
- package/llms/ui-music.js.map +0 -1
- package/llms/ui-onboarding.js.map +0 -1
- package/llms/ui-pricing.js.map +0 -1
- package/llms/ui-profile.js.map +0 -1
- package/llms/ui-quiz.js.map +0 -1
- package/llms/ui-settings.js.map +0 -1
- package/llms/ui-storefront.js.map +0 -1
- package/llms/ui-support.js.map +0 -1
- package/llms/ui-testimonials.js.map +0 -1
- package/llms/ui-todo.js.map +0 -1
- package/llms/ui-weather.js.map +0 -1
- package/llms/use-vibe.js.map +0 -1
- package/llms/use-viewer.js.map +0 -1
- package/llms/vibe-tools.js.map +0 -1
- package/llms/voxel.js.map +0 -1
- package/llms/weather.js.map +0 -1
- package/llms/web-audio.js.map +0 -1
- package/llms/web-music.js.map +0 -1
- package/llms/webxr.js.map +0 -1
- package/llms/world-controls.js.map +0 -1
- package/llms/worlds.js.map +0 -1
- package/llms/youtube.js.map +0 -1
- package/prompts.js.map +0 -1
- package/restyle.js.map +0 -1
- package/segment-parser.js.map +0 -1
- package/settings.js.map +0 -1
- package/style-prompts.js.map +0 -1
- package/themes/color-math.js.map +0 -1
- package/themes/colorsets-bundle.js.map +0 -1
- package/themes/colorsets.js.map +0 -1
- package/themes/fonts.js.map +0 -1
- package/themes/index.js.map +0 -1
- package/themes/looks/house/field-hues.js.map +0 -1
- package/themes/looks/house/variety.js.map +0 -1
- package/themes/looks/index.js.map +0 -1
- package/themes/looks/pouf/catalog.generated.js.map +0 -1
- package/themes/looks/pouf/variety.js.map +0 -1
- package/themes/ornament-pad.js.map +0 -1
- package/themes/palette-gen.js.map +0 -1
- package/themes/pouf-rooms.js.map +0 -1
- package/themes/style-presets.js.map +0 -1
- package/themes/theme-slugs.js.map +0 -1
- package/view-state.js.map +0 -1
package/llms/richtext.js
CHANGED
package/llms/social-post.js
CHANGED
package/llms/sound-core.js
CHANGED
|
@@ -4,4 +4,3 @@ export const soundCoreConfig = {
|
|
|
4
4
|
description: "Short sound effects that play on a phone: the AudioContext unlock inside the gesture, a synthesized blip per core action, one master gain with a mute toggle, and restraint (core actions only, never spawns or ticks).",
|
|
5
5
|
menu: false,
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=sound-core.js.map
|
package/llms/spotify.js
CHANGED
package/llms/square.js
CHANGED
package/llms/stripe.js
CHANGED
package/llms/strudel.js
CHANGED
package/llms/surface-board.js
CHANGED
|
@@ -5,4 +5,3 @@ export const surfacePlayAreaConfig = {
|
|
|
5
5
|
description: "A full-screen game wears the app's look: sky, fog, light, player and lane lines painted from the theme tokens, a day/night cycle between look colours, and the HUD as kit components on the look's surfaces.",
|
|
6
6
|
menu: false,
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=surface-play-area.js.map
|
package/llms/surface-presence.js
CHANGED
package/llms/surface-stage.js
CHANGED
package/llms/three-js.js
CHANGED
package/llms/touch-games.js
CHANGED
package/llms/types.d.ts
CHANGED
package/llms/types.js
CHANGED
package/llms/ui-blog.js
CHANGED
package/llms/ui-booking.js
CHANGED
package/llms/ui-calendar.js
CHANGED
package/llms/ui-chat.js
CHANGED
package/llms/ui-contact.js
CHANGED
package/llms/ui-course.js
CHANGED
package/llms/ui-crm.js
CHANGED
package/llms/ui-dashboard.js
CHANGED
package/llms/ui-editorial.js
CHANGED
package/llms/ui-event.js
CHANGED
package/llms/ui-feed.js
CHANGED
package/llms/ui-game.js
CHANGED
package/llms/ui-inbox.js
CHANGED
package/llms/ui-inventory.js
CHANGED
package/llms/ui-kanban.js
CHANGED
package/llms/ui-landing.js
CHANGED
package/llms/ui-login.js
CHANGED
package/llms/ui-music.js
CHANGED
package/llms/ui-onboarding.js
CHANGED
package/llms/ui-pricing.js
CHANGED
package/llms/ui-profile.js
CHANGED
package/llms/ui-quiz.js
CHANGED
package/llms/ui-settings.js
CHANGED
package/llms/ui-storefront.js
CHANGED
package/llms/ui-support.js
CHANGED
package/llms/ui-testimonials.js
CHANGED
package/llms/ui-todo.js
CHANGED
package/llms/ui-weather.js
CHANGED
package/llms/use-vibe.js
CHANGED
package/llms/use-viewer.js
CHANGED
package/llms/vibe-tools.js
CHANGED
|
@@ -4,4 +4,3 @@ export const vibeToolsConfig = {
|
|
|
4
4
|
description: "The verbs a person could ask for by text instead of tapping (vote for a place, claim a slot, book a table, add a book to the list), declared in backend.js as a static `export const tools` (at most 8) so an assistant in a group chat can do them for that person. Each tool has a one-line description, typed input fields, who it is for (anyone, members, owner), and either a handler shared with the page's button through a fetch route or a declared one-record write (`key: \"caller\"` for one record per person). A tool always acts as its caller through access.js (`user.backend` is `tool`, never admin mode) and its callAI spends the caller's credits. An app whose actions only happen on the page does not need it",
|
|
5
5
|
cues: ["text the app", "ask the assistant to", "from the group chat", "vote by text", "claim by text", "tools for the agent"],
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=vibe-tools.js.map
|
package/llms/voxel.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const voxelConfig = {
|
|
2
2
|
name: "voxel",
|
|
3
3
|
needs: ["world-controls", "live-rooms"],
|
|
4
|
+
covers: ["three-js", "world-controls"],
|
|
4
5
|
label: "Voxel",
|
|
5
6
|
description: "Any voxel or block world — Minecraft-style, an island, a city, a sandbox — walked, flown or built in. " +
|
|
6
7
|
"Build a Minecraft-style first-person voxel sandbox with Three.js: chunked block world, " +
|
|
@@ -19,4 +20,3 @@ export const voxelConfig = {
|
|
|
19
20
|
importName: "THREE",
|
|
20
21
|
importType: "namespace",
|
|
21
22
|
};
|
|
22
|
-
//# sourceMappingURL=voxel.js.map
|
package/llms/weather.js
CHANGED
package/llms/web-audio.js
CHANGED
package/llms/web-music.js
CHANGED
|
@@ -5,4 +5,3 @@ export const webMusicConfig = {
|
|
|
5
5
|
description: "Drum machines, beat makers, step sequencers, synths, theremins, drones and metronomes: a complete synthesized drum machine (kick, snare, hats, 16‑step sequencer, tempo, swing, saturation, volume) wearing a token-painted instrument face; a master bus with global Saturation and Volume; echo/delay with effects in the feedback path; mic monitoring with a metronome; audio‑clock scheduling for multi‑channel drum machines and MIDI synths with accurate voice overlap. drum machine, beat maker, step sequencer, groovebox, synth, synthesizer, keyboard, metronome, midi, melody, music toy",
|
|
6
6
|
cues: ["music", "synth", "synthesizer", "metronome", "drum machine", "drum", "drums", "midi", "melody"],
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=web-music.js.map
|
package/llms/webxr.js
CHANGED
package/llms/world-controls.js
CHANGED
package/llms/worlds.js
CHANGED
package/llms/youtube.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.327",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": {
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"J Chris Anderson",
|
|
37
37
|
"Meno Abels"
|
|
38
38
|
],
|
|
39
|
-
"license": "
|
|
39
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@adviser/cement": "~0.5.37",
|
|
42
|
-
"@vibes.diy/api-types": "14.3.
|
|
43
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
44
|
-
"@vibes.diy/identity": "14.3.
|
|
45
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
42
|
+
"@vibes.diy/api-types": "14.3.327",
|
|
43
|
+
"@vibes.diy/call-ai-v2": "14.3.327",
|
|
44
|
+
"@vibes.diy/identity": "14.3.327",
|
|
45
|
+
"@vibes.diy/use-vibes-types": "14.3.327",
|
|
46
46
|
"arktype": "~2.2.9",
|
|
47
47
|
"json-schema-faker": "~0.6.4"
|
|
48
48
|
},
|
package/prompts.js
CHANGED
package/restyle.js
CHANGED
package/segment-parser.js
CHANGED
|
@@ -137,4 +137,3 @@ export function parseContent(text, options) {
|
|
|
137
137
|
const hasSearchMarker = blocks.some((b) => SEARCH_MARKER.test(b.content));
|
|
138
138
|
return hasSearchMarker ? aiderParse(stripped, blocks) : legacyParse(stripped, blocks);
|
|
139
139
|
}
|
|
140
|
-
//# sourceMappingURL=segment-parser.js.map
|
package/settings.js
CHANGED
package/style-prompts.js
CHANGED
|
@@ -18,7 +18,7 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
20
|
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
-
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below),
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below): each card opens on its picture frame, a frame still empty carries the photo button that paints it ("Paint the bag"), and the owner's uploaded photo takes the frame when they add one. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`). A colour the subject itself names — a blue district, a red team, a traffic light's green — is painted as that colour: a hex in the stage's data (`const PAINT = { blue: "#2563eb", red: "#dc2626" }`) set with `fill={PAINT[side]}` on the shape and on its legend swatch, while theme classes carry every fill the subject leaves open. A tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
22
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
23
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
24
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
package/system-prompt-initial.md
CHANGED
|
@@ -18,7 +18,7 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
20
|
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
-
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below),
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below): each card opens on its picture frame, a frame still empty carries the photo button that paints it ("Paint the bag"), and the owner's uploaded photo takes the frame when they add one. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`). A colour the subject itself names — a blue district, a red team, a traffic light's green — is painted as that colour: a hex in the stage's data (`const PAINT = { blue: "#2563eb", red: "#dc2626" }`) set with `fill={PAINT[side]}` on the shape and on its legend swatch, while theme classes carry every fill the subject leaves open. A tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
22
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
23
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
24
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
package/system-prompt.md
CHANGED
|
@@ -18,7 +18,7 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
20
|
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
-
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below),
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture whose shapes carry the meaning — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. A picture of a thing — a product in a catalog, a bag of coffee, a mug, a dish, a creature, a cover — is a painted picture, one `<ImgGen>` saved on its record (_Pictures are content_ below): each card opens on its picture frame, a frame still empty carries the photo button that paints it ("Paint the bag"), and the owner's uploaded photo takes the frame when they add one. For a stage, pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`). A colour the subject itself names — a blue district, a red team, a traffic light's green — is painted as that colour: a hex in the stage's data (`const PAINT = { blue: "#2563eb", red: "#dc2626" }`) set with `fill={PAINT[side]}` on the shape and on its legend swatch, while theme classes carry every fill the subject leaves open. A tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
22
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
23
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
24
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
package/themes/color-math.js
CHANGED
package/themes/colorsets.js
CHANGED
package/themes/fonts.js
CHANGED
package/themes/index.js
CHANGED
|
@@ -32,4 +32,3 @@ export const HOUSE_VARIETY = {
|
|
|
32
32
|
flourishCoda: "These touches ride BESIDE the look brief above, never instead of it. Where a touch and the brief speak about the same element, the brief still governs: its cushion recipe, its ink-on-pastel pairing, its one-accent-per-view budget and its rule about what a component's `className` may carry all hold, and a touch only ever adds to them. Every mechanic above is a plain utility this theme already backs — never a literal colour, size, shadow or font stack, and never an arbitrary-value class such as `shadow-[var(--vibes-shadow)]`, because the owner restyles the whole app by swapping token values and anything frozen into a hover or focus state survives that invisibly. Where a touch styles something the component package owns, put the class on the plain `div` that wraps it, never on the component's own `className`.",
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=variety.js.map
|
package/themes/looks/index.js
CHANGED
|
@@ -886,4 +886,3 @@ export const POUF_COMPONENT_NAMES = {
|
|
|
886
886
|
charts: ["AreaChart", "BarChart", "LineChart", "PieChart"],
|
|
887
887
|
};
|
|
888
888
|
export const POUF_CATALOG_MD = '- `AlertBell` (`@vibes.diy/ui`) — A bell button with an unread count that opens the session\'s alert history. Props: `alerts` (required) AlertBellItem[]; `unread` (required) number; `connected` (required); `onOpen` (required) () => void\n- `Badge` (`@vibes.diy/ui`) — A small tonal label for a count, category or state. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Breadcrumb` (`@vibes.diy/ui`) — Shows where the current page sits in a hierarchy, with links back up. Props: `items` (required) BreadcrumbItem[]\n- `Button` (`@vibes.diy/ui`) — The action button; give one primary action per area. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `variant` solid|quiet; `block`; `disabled`; `loading`; `type` button|submit; `label` string; `tint` string\n- `CTA` (`@vibes.diy/ui`) — A call-to-action banner: a big tonal cushion with a headline and an action. Props: `title` (required) string; `description` string; `action` (required) ReactNode; `tone` purple (lead)|pink|blue|mint|yellow|surface\n- `Card` (`@vibes.diy/ui`) — The raised surface that groups related content into a panel. Props: `variant` default|flush|tight; `motion` none|lift|tilt-left|tilt-right\n- `Dot` (`@vibes.diy/ui`) — A status dot. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Empty` (`@vibes.diy/ui`) — The empty state for a list or panel with nothing in it yet. Props: `icon` IconLike; `title` (required) string\n- `ErrorBoundary` (`@vibes.diy/ui`) — Catches render crashes so one broken part can\'t blank the whole page. Props: `name` (required) string; `resetKey` string\n- `ErrorNote` (`@vibes.diy/ui`) — An inline message that says a request or action failed.\n- `Eyebrow` (`@vibes.diy/ui`) — A small uppercase label above a section heading.\n- `Field` (`@vibes.diy/ui`) — Wraps a form control with its label, hint and error text. Props: `label` (required) string; `children` (required) (id: string, describedBy: string | undefined) => ReactNode; `hint` string; `error` string\n- `Figure` (`@vibes.diy/ui`) — An image, framed in clay. Props: `src` (required) string; `alt` (required) string; `width` (required) number; `height` (required) number\n- `Footer` (`@vibes.diy/ui`) — A site footer on one big cushion: brand block plus columns of links, with an optional bottom note. Props: `brand` (required) ReactNode; `tagline` string\n- `Freshness` (`@vibes.diy/ui`) — Speaks only when the data on screen can no longer be trusted. Props: `at` (required) number; `isError`\n- `Grid` (`@vibes.diy/ui`) — Lays children out in columns, or main plus side, stacking on narrow screens. Props: `cols` 2|3|4|sidebar; `gap` 1|2|3|4|5|6\n- `Heading` (`@vibes.diy/ui`) — A page or section heading at level 1, 2 or 3. Props: `level` 1|2|3\n- `Highlight` (`@vibes.diy/ui`) — Puts a tonal swatch behind a word or short phrase to make it pop. Props: `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Icon` (`@vibes.diy/ui`) — A named glyph from the built-in icon set. Props: `name` (required) up|down|warn|info|idle|overview|chart|log|channels|activity|lab|history|performance|settings|database|menu|flat|ok|fail|off|live|draft|target|alerts|add|remove|search|close|expand|prev|next|photo|heart|heart-filled|comment|play|pause|rewind|forward|sun|cloud|rain|star|calendar|clock|user|users|mail|lock|send|home|trophy|flame|sparkle|music|cart|tag|dots|sword|shield|wand|smile|card|pin|wind|drop|gift; `size` sm|md|lg; `label` string\n- `IconButton` (`@vibes.diy/ui`) — A square, labelled icon action. Props: `icon` (required) ReactNode; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `variant` solid|quiet; `disabled`; `loading`; `type` button|submit; `tint` string\n- `IconTile` (`@vibes.diy/ui`) — A tonal icon tile that fronts a stat, list row or feature. Props: `icon` (required) IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg; `label` string\n- `Input` (`@vibes.diy/ui`) — A single-line text field; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `id` string; `name` string; `describedBy` string; `placeholder` string; `type` string; `autoComplete` string; `inputMode` none|search|email|tel|text|url|numeric|decimal; `autoCapitalize` string; `spellCheck`; `required`; `mono`; `invalid`; `disabled`; `label` string; `bare`\n- `Metric` (`@vibes.diy/ui`) — A labelled readout: small muted label, value beneath. Props: `label` (required) string; `value` (required) ReactNode; `num`; `mono`\n- `ModeBanner` (`@vibes.diy/ui`) — The draft/live (or any two-mode) indicator. Props: `live` (required)\n- `NavLink` (`@vibes.diy/ui`) — A navigation link that marks itself active on the current path. Props: `href` (required) string; `currentPath` (required) string; `icon` (required) IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Navbar` (`@vibes.diy/ui`) — A top navigation bar on a floating cushion. Props: `brand` (required) ReactNode; `label` string\n- `NumberInput` (`@vibes.diy/ui`) — A numeric field with step buttons; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `step` number; `min` number; `max` number; `id` string; `describedBy` string; `placeholder` string; `invalid`; `disabled`; `label` string\n- `Pagination` (`@vibes.diy/ui`) — Previous and next page controls with a page indicator for long lists. Props: `page` (required) number; `total` (required) number; `onChange` (required) (page: number) => void\n- `Row` (`@vibes.diy/ui`) — Lays children out horizontally with a gap, alignment and wrapping. Props: `gap` 1|2|3|4|5|6; `align` center|top; `justify` start|center|between|end; `wrap`\n- `RowCard` (`@vibes.diy/ui`) — One raised row per item in a list; clickable when given onClick. Props: `selected`\n- `Segmented` (`@vibes.diy/ui`) — A mutually-exclusive choice: grid vs list, draft vs live, and similar. Props: `value` (required) T; `onChange` (required) (value: T) => void; `options` (required) SegmentedOption<T>[]; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Shell` (`@vibes.diy/ui`) — The page frame: a sidebar column beside the main content.\n- `Sidebar` (`@vibes.diy/ui`) — The side navigation column inside Shell. Props: `mobile` show|hide\n- `Skeleton` (`@vibes.diy/ui`) — A loading placeholder shaped like the text, row or card it stands in for. Props: `variant` text|row|card; `count` number\n- `Spacer` (`@vibes.diy/ui`) — Pushes the items after it to the far end of a Row.\n- `Stack` (`@vibes.diy/ui`) — Stacks children vertically with an even gap. Props: `gap` 1|2|3|4|5|6\n- `Stat` (`@vibes.diy/ui`) — A headline figure on its own cushion. Props: `label` (required) string; `value` (required) string; `icon` (required) IconLike; `tone` (required) up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Status` (`@vibes.diy/ui`) — A labelled status dot that turns unknown when its reading goes stale. Props: `label` (required) string; `tone` (required) up|down|warn|info|idle|purple (lead)|orange (decorative); `at` number\n- `Table` (`@vibes.diy/ui`) — A data table with typed columns; rows can be clickable. Props: `columns` (required) TableColumn<T>[]; `rows` (required) T[]; `getKey` (required) (row: T) => string\n- `Text` (`@vibes.diy/ui`) — Body text: size, muted, numeric and monospace variants. Props: `size` sm|md; `muted`; `num`; `mono`; `truncate`\n- `Textarea` (`@vibes.diy/ui`) — A multi-line text field; wrap it in Field for its label. Props: `value` (required) string; `onChange` (required) (value: string) => void; `id` string; `name` string; `describedBy` string; `placeholder` string; `autoComplete` string; `spellCheck`; `required`; `rows` number; `mono`; `invalid`; `disabled`; `label` string\n- `Accordion` (`@vibes.diy/ui/interactive`) — A stack of expandable sections with one open at a time. Props: `items` (required) AccordionItem[]; `defaultValue` string\n- `AspectRatio` (`@vibes.diy/ui/interactive`) — Holds media at a fixed width-to-height ratio. Props: `ratio` number\n- `Avatar` (`@vibes.diy/ui/interactive`) — A person\'s picture, with initials or an icon when there is none. Props: `src` string; `alt` string; `fallback` string; `icon` IconLike; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `size` sm|md|lg\n- `BottomNav` (`@vibes.diy/ui/interactive`) — Mobile bottom navigation. Props: `primary` (required) NavItem[]; `groups` (required) NavGroup[]; `currentPath` (required) string\n- `Checkbox` (`@vibes.diy/ui/interactive`) — A labelled on/off checkbox. Props: `checked` (required) boolean | "indeterminate"; `onChange` (required) (checked: boolean | "indeterminate") => void; `id` string; `disabled`; `label` string; `hideLabel`\n- `Collapsible` (`@vibes.diy/ui/interactive`) — A single section that shows or hides its content from a trigger. Props: `trigger` (required) ReactNode; `open`\n- `Combobox` (`@vibes.diy/ui/interactive`) — A text field with suggestions to pick or type; its default lives in `value`, not placeholder. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) string[]; `loading`; `error` string; `id` string; `describedBy` string; `placeholder` string; `mono`; `label` string\n- `Confirm` (`@vibes.diy/ui/interactive`) — Wraps the button that opens it; asks to confirm an irreversible action such as a delete. Props: `title` (required) string; `body` (required) string; `confirmLabel` (required) string; `cancelLabel` (required) string; `onConfirm` (required) () => void; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `loading`\n- `ContextMenu` (`@vibes.diy/ui/interactive`) — A menu of actions that opens on right-click or long-press. Props: `items` (required) (MenuEntry | "separator")[]\n- `Dialog` (`@vibes.diy/ui/interactive`) — A modal window for a focused task or form. Props: `trigger` (required) ReactNode; `title` (required) string; `description` string; `open`; `size` md|lg\n- `DropdownMenu` (`@vibes.diy/ui/interactive`) — A menu of actions that opens from a trigger button. Props: `items` (required) ("separator" | MenuItem)[]; `label` string\n- `HoverCard` (`@vibes.diy/ui/interactive`) — A preview card that appears on hover over its trigger. Props: `content` (required) ReactNode; `side` top|right|bottom|left; `align` start|center|end\n- `Menubar` (`@vibes.diy/ui/interactive`) — An application menu bar (File / Edit / View…). Props: `menus` (required) MenubarMenu[]\n- `Pad` (`@vibes.diy/ui/interactive`) — A square instrument pad that toggles on and off, with a playhead light and beat-group shading. Props: `on` (required); `onPress` (required) () => void; `label` (required) string; `playhead`; `downbeat`; `group` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `disabled`\n- `Progress` (`@vibes.diy/ui/interactive`) — A progress bar for a value out of a maximum. Props: `value` (required) number; `max` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative); `label` string\n- `RadioGroup` (`@vibes.diy/ui/interactive`) — A labelled set of options where exactly one is chosen. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) RadioOption[]; `label` (required) string; `disabled`\n- `ScrollArea` (`@vibes.diy/ui/interactive`) — A fixed-height region that scrolls its own content. Props: `maxHeight` string\n- `Select` (`@vibes.diy/ui/interactive`) — A dropdown for picking one option; its default lives in `value`, not placeholder. Props: `value` (required) string; `onChange` (required) (value: string) => void; `options` (required) SelectOption[]; `id` string; `describedBy` string; `placeholder` string; `disabled`; `label` string\n- `Separator` (`@vibes.diy/ui/interactive`) — A thin divider line between groups of content.\n- `Sheet` (`@vibes.diy/ui/interactive`) — A panel that slides in from the side for secondary tasks. Props: `title` (required) string; `description` string; `open`\n- `Slider` (`@vibes.diy/ui/interactive`) — Picks a number in a range by dragging. Props: `value` (required) number[]; `onChange` (required) (value: number[]) => void; `min` number; `max` number; `step` number; `disabled`; `label` string; `hideLabel`\n- `StepGrid` (`@vibes.diy/ui/interactive`) — One sequencer row of Pads with a moving playhead and beat groups, wrapping to two lines on a phone. Props: `steps` (required) readonly (number | boolean)[]; `onToggle` (required) (index: number) => void; `label` (required) string; `playhead` number; `groupSize` number; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Switch` (`@vibes.diy/ui/interactive`) — A labelled on/off toggle for a setting that applies at once. Props: `checked` (required); `onChange` (required) (checked: boolean) => void; `id` string; `describedBy` string; `disabled`; `label` string\n- `Tabs` (`@vibes.diy/ui/interactive`) — Switches between panels of content under one heading. Props: `tabs` (required) Tab[]; `value` (required) string; `onChange` (required) (value: string) => void; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Toast` (`@vibes.diy/ui/interactive`) — One alert message with a severity and a dismiss button. Props: `id` (required) number; `severity` (required) critical|info; `onDismiss` (required) (id: number) => void\n- `ToastViewport` (`@vibes.diy/ui/interactive`) — Renders a list of alert messages your app keeps in state. Props: `toasts` (required) ToastItem[]; `onDismiss` (required) (id: number) => void\n- `Toaster` (`@vibes.diy/ui/interactive`) — Mount once in the app so toast() calls appear on screen.\n- `ToggleGroup` (`@vibes.diy/ui/interactive`) — A row of toggle buttons where several can be on at once. Props: `value` (required) string[]; `onChange` (required) (value: string[]) => void; `options` (required) ToggleOption[]; `label` (required) string; `tone` up|down|warn|info|idle|purple (lead)|orange (decorative)\n- `Tooltip` (`@vibes.diy/ui/interactive`) — Wraps an element with a short hint on hover or focus; needs a TooltipProvider above it. Props: `tip` (required) string\n- `TooltipProvider` (`@vibes.diy/ui/interactive`) — Wrap the app once; every Tooltip must sit inside it.\n- `AreaChart` (`@vibes.diy/ui/charts`) — An area chart of one or more series over a category axis. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number; `stacked`\n- `BarChart` (`@vibes.diy/ui/charts`) — A bar chart of one or more series, optionally stacked. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number; `stacked`; `toneKey` string\n- `LineChart` (`@vibes.diy/ui/charts`) — A line chart of one or more series over a category axis. Props: `data` (required) Record<string, unknown>[]; `dataKey` (required) string; `series` (required) ChartSeries[]; `height` number\n- `PieChart` (`@vibes.diy/ui/charts`) — A pie or donut chart of parts of a whole. Props: `data` (required) PieSlice[]; `height` number; `donut`; `labelled`';
|
|
889
|
-
//# sourceMappingURL=catalog.generated.js.map
|
|
@@ -33,4 +33,3 @@ export const POUF_VARIETY = {
|
|
|
33
33
|
flourishCoda: "These touches ride BESIDE the look brief above, never instead of it. Where a touch and the brief speak about the same element, the brief still governs: one lead per view, tones chosen by meaning, cushions from the package rather than by hand, and no `className` or `style` on any UI component all hold, and a touch only ever adds to them. Every touch above is a UI component and a prop it already takes; the only classes it ever writes go on a plain wrapping `div`, and never a literal colour, size or shadow, nor an arbitrary-value class such as `shadow-[var(--vibes-shadow)]`, because the room restyles the whole app by swapping token values and anything frozen into the markup survives that invisibly.",
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=variety.js.map
|