@stampui/blocks 1.0.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.
Files changed (107) hide show
  1. package/dist/components/ai-chat-shell.d.ts +1 -0
  2. package/dist/components/ai-chat-shell.js +23 -0
  3. package/dist/components/prompt-input.d.ts +5 -0
  4. package/dist/components/prompt-input.js +47 -0
  5. package/dist/components/registry-card.d.ts +6 -0
  6. package/dist/components/registry-card.js +15 -0
  7. package/dist/components/registry-explorer.d.ts +8 -0
  8. package/dist/components/registry-explorer.js +38 -0
  9. package/dist/components/token-stream.d.ts +7 -0
  10. package/dist/components/token-stream.js +21 -0
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +23 -0
  13. package/dist/manifests.d.ts +3 -0
  14. package/dist/manifests.js +1666 -0
  15. package/dist/types.d.ts +44 -0
  16. package/dist/types.js +2 -0
  17. package/package.json +28 -0
  18. package/src/components/blocks/ai-chat-shell.tsx +97 -0
  19. package/src/components/blocks/auth-panel.tsx +203 -0
  20. package/src/components/blocks/feature-grid.tsx +122 -0
  21. package/src/components/blocks/hero-section.tsx +73 -0
  22. package/src/components/blocks/notification-center.tsx +185 -0
  23. package/src/components/blocks/onboarding-flow.tsx +230 -0
  24. package/src/components/blocks/pricing-section.tsx +135 -0
  25. package/src/components/blocks/project-command-center.tsx +188 -0
  26. package/src/components/blocks/prompt-input.tsx +81 -0
  27. package/src/components/blocks/registry-card.tsx +104 -0
  28. package/src/components/blocks/registry-explorer.tsx +78 -0
  29. package/src/components/blocks/settings-layout.tsx +178 -0
  30. package/src/components/blocks/stats-strip.tsx +100 -0
  31. package/src/components/blocks/token-stream.tsx +42 -0
  32. package/src/components/blocks/usage-card.tsx +116 -0
  33. package/src/components/core/accordion.tsx +58 -0
  34. package/src/components/core/alert-dialog.tsx +113 -0
  35. package/src/components/core/alert.tsx +48 -0
  36. package/src/components/core/animated-number.tsx +77 -0
  37. package/src/components/core/aspect-ratio.tsx +20 -0
  38. package/src/components/core/avatar-stack.tsx +61 -0
  39. package/src/components/core/avatar.tsx +90 -0
  40. package/src/components/core/badge.tsx +39 -0
  41. package/src/components/core/breadcrumb.tsx +63 -0
  42. package/src/components/core/button-group.tsx +37 -0
  43. package/src/components/core/button.tsx +110 -0
  44. package/src/components/core/calendar.tsx +143 -0
  45. package/src/components/core/card.tsx +60 -0
  46. package/src/components/core/carousel.tsx +170 -0
  47. package/src/components/core/chart.tsx +377 -0
  48. package/src/components/core/checkbox.tsx +64 -0
  49. package/src/components/core/collapsible.tsx +30 -0
  50. package/src/components/core/combobox.tsx +114 -0
  51. package/src/components/core/command-box.tsx +22 -0
  52. package/src/components/core/command.tsx +165 -0
  53. package/src/components/core/confirm-action.tsx +94 -0
  54. package/src/components/core/context-menu.tsx +139 -0
  55. package/src/components/core/copy-button.tsx +41 -0
  56. package/src/components/core/data-table.tsx +173 -0
  57. package/src/components/core/date-picker.tsx +73 -0
  58. package/src/components/core/dialog.tsx +83 -0
  59. package/src/components/core/drawer.tsx +87 -0
  60. package/src/components/core/dropdown-menu.tsx +147 -0
  61. package/src/components/core/empty.tsx +34 -0
  62. package/src/components/core/field.tsx +39 -0
  63. package/src/components/core/file-upload.tsx +143 -0
  64. package/src/components/core/hover-card.tsx +31 -0
  65. package/src/components/core/inline-edit.tsx +104 -0
  66. package/src/components/core/input-group.tsx +47 -0
  67. package/src/components/core/input-otp.tsx +108 -0
  68. package/src/components/core/input.tsx +37 -0
  69. package/src/components/core/kbd.tsx +47 -0
  70. package/src/components/core/label.tsx +28 -0
  71. package/src/components/core/marquee.tsx +61 -0
  72. package/src/components/core/menubar.tsx +120 -0
  73. package/src/components/core/multi-select.tsx +145 -0
  74. package/src/components/core/native-select.tsx +27 -0
  75. package/src/components/core/navigation-menu.tsx +130 -0
  76. package/src/components/core/number-stepper.tsx +80 -0
  77. package/src/components/core/pagination.tsx +80 -0
  78. package/src/components/core/password-input.tsx +90 -0
  79. package/src/components/core/popover.tsx +34 -0
  80. package/src/components/core/progress.tsx +63 -0
  81. package/src/components/core/radio-group.tsx +77 -0
  82. package/src/components/core/resizable.tsx +250 -0
  83. package/src/components/core/scroll-area.tsx +38 -0
  84. package/src/components/core/select.tsx +128 -0
  85. package/src/components/core/separator.tsx +47 -0
  86. package/src/components/core/sheet.tsx +118 -0
  87. package/src/components/core/sidebar.tsx +129 -0
  88. package/src/components/core/skeleton.tsx +32 -0
  89. package/src/components/core/slider.tsx +97 -0
  90. package/src/components/core/sonner.tsx +29 -0
  91. package/src/components/core/spinner.tsx +60 -0
  92. package/src/components/core/status-pulse.tsx +67 -0
  93. package/src/components/core/stepper.tsx +111 -0
  94. package/src/components/core/switch.tsx +72 -0
  95. package/src/components/core/table.tsx +104 -0
  96. package/src/components/core/tabs.tsx +55 -0
  97. package/src/components/core/tag-input.tsx +93 -0
  98. package/src/components/core/textarea.tsx +44 -0
  99. package/src/components/core/timeline.tsx +81 -0
  100. package/src/components/core/toggle-group.tsx +56 -0
  101. package/src/components/core/toggle.tsx +66 -0
  102. package/src/components/core/tooltip.tsx +31 -0
  103. package/src/components/core/typing-indicator.tsx +51 -0
  104. package/src/index.ts +8 -0
  105. package/src/manifests.ts +1682 -0
  106. package/src/types.ts +58 -0
  107. package/src/ui.ts +13 -0
package/src/types.ts ADDED
@@ -0,0 +1,58 @@
1
+ /**
2
+ * The tier of a block. Determines CLI install behavior and registry visibility.
3
+ * - free: Publicly installable by anyone.
4
+ * - pro: Requires a valid StampUI license key.
5
+ * - new: Recently published free block.
6
+ * - locked: Explicitly gated (e.g. not yet released).
7
+ */
8
+ export type BlockStatus = "free" | "pro" | "new" | "locked"
9
+
10
+ /**
11
+ * A single file reference included in a block install.
12
+ */
13
+ export interface BlockFile {
14
+ path: string
15
+ type: "block" | "util" | "hook" | "registry:ui"
16
+ }
17
+
18
+ /**
19
+ * The canonical manifest for a StampUI registry block.
20
+ * This is the single source of truth consumed by the CLI, web registry, and preview system.
21
+ */
22
+ export interface BlockManifest {
23
+ // --- Identity ---
24
+ slug: string
25
+ title: string
26
+ description: string
27
+ category: string
28
+ tags: string[]
29
+
30
+ // --- Versioning ---
31
+ version: string // semver, e.g. "1.0.0"
32
+ updatedAt: string // ISO 8601 date, e.g. "2026-05-09"
33
+ minCliVersion?: string // Minimum CLI version required, e.g. "1.0.0"
34
+ changelog?: string[] // Human-readable change notes for this version
35
+
36
+ // --- Licensing ---
37
+ status: BlockStatus
38
+ licenseRequired?: boolean // Explicit flag for pro/enterprise blocks
39
+
40
+ // --- Technical ---
41
+ difficulty: "beginner" | "intermediate" | "advanced"
42
+ frameworks: string[]
43
+ dependencies: string[]
44
+ files: BlockFile[]
45
+ tokens: string[]
46
+
47
+ // --- Capabilities ---
48
+ supportsDarkMode: boolean
49
+ supportsLightMode: boolean
50
+ promptReady: boolean
51
+
52
+ // --- Preview ---
53
+ /** Relative path to a local preview asset, e.g. /previews/token-stream.svg */
54
+ previewPath?: string
55
+
56
+ /** CLI and Web specific logic, populated at runtime if needed */
57
+ source?: string
58
+ }
package/src/ui.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * UI component exports from @stampui/blocks.
3
+ *
4
+ * These components are consumed by the web app directly via Next.js transpilePackages.
5
+ * They are NOT included in the tsc dist/ output.
6
+ *
7
+ * Usage: import { RegistryCard } from "@stampui/blocks/ui"
8
+ */
9
+ export { RegistryCard } from "./components/blocks/registry-card"
10
+ export type { RegistryCardProps } from "./components/blocks/registry-card"
11
+
12
+ export { RegistryExplorer } from "./components/blocks/registry-explorer"
13
+ export type { RegistryExplorerProps } from "./components/blocks/registry-explorer"