@vantageos/mosaic-blocks 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -0
- package/dist/index.cjs +1526 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +968 -0
- package/dist/index.d.ts +968 -0
- package/dist/index.js +1467 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +67 -0
- package/package.json +66 -0
- package/registry.json +351 -0
package/registry.json
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry.json",
|
|
3
|
+
"name": "mosaic-blocks",
|
|
4
|
+
"homepage": "https://vantageos.com/mosaic-blocks",
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"name": "mosaic-button",
|
|
8
|
+
"type": "registry:ui",
|
|
9
|
+
"title": "MosaicButton",
|
|
10
|
+
"description": "Accessible button atom built on @base-ui/react. Variants: default, secondary, ghost, destructive, outline, link. Sizes: default, sm, lg, icon, icon-sm, icon-lg.",
|
|
11
|
+
"dependencies": [
|
|
12
|
+
"@base-ui/react",
|
|
13
|
+
"class-variance-authority"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "src/components/button/Button.tsx",
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "mosaic-navbar",
|
|
24
|
+
"type": "registry:ui",
|
|
25
|
+
"title": "MosaicNavbar",
|
|
26
|
+
"description": "Scroll-aware fixed navbar: hide-on-scroll-down, blur backdrop, mobile hamburger menu. Props: logo, links[], cta. No hardcoded branding.",
|
|
27
|
+
"dependencies": [],
|
|
28
|
+
"files": [
|
|
29
|
+
{
|
|
30
|
+
"path": "src/components/navbar/MosaicNavbar.tsx",
|
|
31
|
+
"type": "registry:ui"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "mosaic-hero-split",
|
|
37
|
+
"type": "registry:ui",
|
|
38
|
+
"title": "MosaicHeroSplit",
|
|
39
|
+
"description": "Two-column split hero: copy left, media right. Props: eyebrow, title, subtitle, cta, ctaSecondary, media. Falls back to centered single-column when no media.",
|
|
40
|
+
"dependencies": [],
|
|
41
|
+
"files": [
|
|
42
|
+
{
|
|
43
|
+
"path": "src/components/hero-split/MosaicHeroSplit.tsx",
|
|
44
|
+
"type": "registry:ui"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "mosaic-feature-centered-media",
|
|
50
|
+
"type": "registry:ui",
|
|
51
|
+
"title": "MosaicFeatureCenteredMedia",
|
|
52
|
+
"description": "Centered feature section: heading + body + optional feature grid + centered media slot. Props: title, body, features[], media.",
|
|
53
|
+
"dependencies": [],
|
|
54
|
+
"files": [
|
|
55
|
+
{
|
|
56
|
+
"path": "src/components/feature-centered-media/MosaicFeatureCenteredMedia.tsx",
|
|
57
|
+
"type": "registry:ui"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "mosaic-stats-grid",
|
|
63
|
+
"type": "registry:ui",
|
|
64
|
+
"title": "MosaicStatsGrid",
|
|
65
|
+
"description": "Border-grid statistics section. Props: stats[] {label, value}, heading, subtext. Values are plain strings; animate at consumer level.",
|
|
66
|
+
"dependencies": [],
|
|
67
|
+
"files": [
|
|
68
|
+
{
|
|
69
|
+
"path": "src/components/stats-grid/MosaicStatsGrid.tsx",
|
|
70
|
+
"type": "registry:ui"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "mosaic-pricing-card",
|
|
76
|
+
"type": "registry:ui",
|
|
77
|
+
"title": "MosaicPricingCard",
|
|
78
|
+
"description": "Single pricing tier card. Props: tier, price, features[], cta, highlighted. Compose multiple in a grid for a full pricing section.",
|
|
79
|
+
"dependencies": [],
|
|
80
|
+
"files": [
|
|
81
|
+
{
|
|
82
|
+
"path": "src/components/pricing-card/MosaicPricingCard.tsx",
|
|
83
|
+
"type": "registry:ui"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "mosaic-logos-grid",
|
|
89
|
+
"type": "registry:ui",
|
|
90
|
+
"title": "MosaicLogosGrid",
|
|
91
|
+
"description": "Logo cloud / partner logos grid. Props: logos[] {name, src, width, height}, heading. Grayscale hover effect.",
|
|
92
|
+
"dependencies": [],
|
|
93
|
+
"files": [
|
|
94
|
+
{
|
|
95
|
+
"path": "src/components/logos-grid/MosaicLogosGrid.tsx",
|
|
96
|
+
"type": "registry:ui"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "mosaic-testimonials-grid",
|
|
102
|
+
"type": "registry:ui",
|
|
103
|
+
"title": "MosaicTestimonialsGrid",
|
|
104
|
+
"description": "Masonry-style testimonials grid: featured item spans half width, rest stack. Props: testimonials[] {id, quote, author, role, avatar?, logo?}, heading.",
|
|
105
|
+
"dependencies": [],
|
|
106
|
+
"files": [
|
|
107
|
+
{
|
|
108
|
+
"path": "src/components/testimonials-grid/MosaicTestimonialsGrid.tsx",
|
|
109
|
+
"type": "registry:ui"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "mosaic-footer-simple",
|
|
115
|
+
"type": "registry:ui",
|
|
116
|
+
"title": "MosaicFooterSimple",
|
|
117
|
+
"description": "Simple multi-column footer. Props: columns[] {id, heading, links[]}, legal, logo?, social[] {label, href, iconSrc?}.",
|
|
118
|
+
"dependencies": [],
|
|
119
|
+
"files": [
|
|
120
|
+
{
|
|
121
|
+
"path": "src/components/footer-simple/MosaicFooterSimple.tsx",
|
|
122
|
+
"type": "registry:ui"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "mosaic-counter",
|
|
128
|
+
"type": "registry:ui",
|
|
129
|
+
"title": "MosaicCounter",
|
|
130
|
+
"description": "Animated metric count-up. Counts from 0 to value on mount using requestAnimationFrame (no motion dep). Props: value, duration?, format?. Respects prefers-reduced-motion.",
|
|
131
|
+
"dependencies": [],
|
|
132
|
+
"files": [
|
|
133
|
+
{
|
|
134
|
+
"path": "src/components/counter/MosaicCounter.tsx",
|
|
135
|
+
"type": "registry:ui"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "mosaic-theme-toggle",
|
|
141
|
+
"type": "registry:ui",
|
|
142
|
+
"title": "MosaicThemeToggle",
|
|
143
|
+
"description": "Light/dark/system theme toggle. Flips data-theme on document.documentElement. Props: themes?, onChange?, label?. Theme-reactive via OKLCH CSS vars.",
|
|
144
|
+
"dependencies": [],
|
|
145
|
+
"files": [
|
|
146
|
+
{
|
|
147
|
+
"path": "src/components/theme-toggle/MosaicThemeToggle.tsx",
|
|
148
|
+
"type": "registry:ui"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "mosaic-blurred-orb",
|
|
154
|
+
"type": "registry:ui",
|
|
155
|
+
"title": "MosaicBlurredOrb",
|
|
156
|
+
"description": "Decorative blurred gradient orb background. Pure CSS (no extra dep). Props: colors?, size?, position?, blur?, opacity?. aria-hidden. No hardcoded branding.",
|
|
157
|
+
"dependencies": [],
|
|
158
|
+
"files": [
|
|
159
|
+
{
|
|
160
|
+
"path": "src/components/blurred-orb/MosaicBlurredOrb.tsx",
|
|
161
|
+
"type": "registry:ui"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "mosaic-animated-list",
|
|
167
|
+
"type": "registry:ui",
|
|
168
|
+
"title": "MosaicAnimatedList",
|
|
169
|
+
"description": "Staggered reveal list. Children animate in on mount via CSS keyframe + inline animation-delay. Props: stagger?, children, as?. No motion dep. Respects prefers-reduced-motion.",
|
|
170
|
+
"dependencies": [],
|
|
171
|
+
"files": [
|
|
172
|
+
{
|
|
173
|
+
"path": "src/components/animated-list/MosaicAnimatedList.tsx",
|
|
174
|
+
"type": "registry:ui"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "mosaic-integrations-badge",
|
|
180
|
+
"type": "registry:ui",
|
|
181
|
+
"title": "MosaicIntegrationsBadge",
|
|
182
|
+
"description": "Integration badge/pill with logo slot + label. Renders as <a> when href provided. Props: label, logo?, href?, target?. OKLCH theme-reactive. No hardcoded branding.",
|
|
183
|
+
"dependencies": [],
|
|
184
|
+
"files": [
|
|
185
|
+
{
|
|
186
|
+
"path": "src/components/integrations-badge/MosaicIntegrationsBadge.tsx",
|
|
187
|
+
"type": "registry:ui"
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "mosaic-falling-pattern",
|
|
193
|
+
"type": "registry:ui",
|
|
194
|
+
"title": "MosaicFallingPattern",
|
|
195
|
+
"description": "Animated dot-grid background pattern (SVG + CSS falling dot animation). Props: density?, color?, animationDuration?. aria-hidden. No extra deps. Respects prefers-reduced-motion.",
|
|
196
|
+
"dependencies": [],
|
|
197
|
+
"files": [
|
|
198
|
+
{
|
|
199
|
+
"path": "src/components/falling-pattern/MosaicFallingPattern.tsx",
|
|
200
|
+
"type": "registry:ui"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "mosaic-card",
|
|
206
|
+
"type": "registry:ui",
|
|
207
|
+
"title": "MosaicCard",
|
|
208
|
+
"description": "Composable card surface: Card + CardHeader + CardTitle + CardDescription + CardContent + CardFooter. Style-only, data-slot per part. OKLCH theme-reactive.",
|
|
209
|
+
"dependencies": [],
|
|
210
|
+
"files": [
|
|
211
|
+
{
|
|
212
|
+
"path": "src/components/card/MosaicCard.tsx",
|
|
213
|
+
"type": "registry:ui"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "mosaic-badge",
|
|
219
|
+
"type": "registry:ui",
|
|
220
|
+
"title": "MosaicBadge",
|
|
221
|
+
"description": "Inline status badge. cva variants: default, secondary, destructive, outline. Style-only span, data-slot=\"badge\".",
|
|
222
|
+
"dependencies": [
|
|
223
|
+
"class-variance-authority"
|
|
224
|
+
],
|
|
225
|
+
"files": [
|
|
226
|
+
{
|
|
227
|
+
"path": "src/components/badge/MosaicBadge.tsx",
|
|
228
|
+
"type": "registry:ui"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "mosaic-avatar",
|
|
234
|
+
"type": "registry:ui",
|
|
235
|
+
"title": "MosaicAvatar",
|
|
236
|
+
"description": "Avatar with image + fallback, built on @base-ui/react/avatar. Props: src, alt, fallback. data-slot=\"avatar\".",
|
|
237
|
+
"dependencies": [
|
|
238
|
+
"@base-ui/react"
|
|
239
|
+
],
|
|
240
|
+
"files": [
|
|
241
|
+
{
|
|
242
|
+
"path": "src/components/avatar/MosaicAvatar.tsx",
|
|
243
|
+
"type": "registry:ui"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "mosaic-input",
|
|
249
|
+
"type": "registry:ui",
|
|
250
|
+
"title": "MosaicInput",
|
|
251
|
+
"description": "Text input built on @base-ui/react/input. Forwards ref to native input. data-slot=\"input\".",
|
|
252
|
+
"dependencies": [
|
|
253
|
+
"@base-ui/react"
|
|
254
|
+
],
|
|
255
|
+
"files": [
|
|
256
|
+
{
|
|
257
|
+
"path": "src/components/input/MosaicInput.tsx",
|
|
258
|
+
"type": "registry:ui"
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "mosaic-input-group",
|
|
264
|
+
"type": "registry:ui",
|
|
265
|
+
"title": "MosaicInputGroup",
|
|
266
|
+
"description": "Composition wrapper laying out prefix/suffix addons around an input. data-slot=\"input-group\".",
|
|
267
|
+
"dependencies": [],
|
|
268
|
+
"files": [
|
|
269
|
+
{
|
|
270
|
+
"path": "src/components/input-group/MosaicInputGroup.tsx",
|
|
271
|
+
"type": "registry:ui"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "mosaic-field",
|
|
277
|
+
"type": "registry:ui",
|
|
278
|
+
"title": "MosaicField",
|
|
279
|
+
"description": "Accessible form field built on @base-ui/react/field: Field + Label + Control + Description + Error with wired a11y associations. data-slot=\"field\".",
|
|
280
|
+
"dependencies": [
|
|
281
|
+
"@base-ui/react"
|
|
282
|
+
],
|
|
283
|
+
"files": [
|
|
284
|
+
{
|
|
285
|
+
"path": "src/components/field/MosaicField.tsx",
|
|
286
|
+
"type": "registry:ui"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "mosaic-switch",
|
|
292
|
+
"type": "registry:ui",
|
|
293
|
+
"title": "MosaicSwitch",
|
|
294
|
+
"description": "Toggle switch built on @base-ui/react/switch. Controlled + uncontrolled, role=switch, keyboard accessible. data-slot=\"switch\".",
|
|
295
|
+
"dependencies": [
|
|
296
|
+
"@base-ui/react"
|
|
297
|
+
],
|
|
298
|
+
"files": [
|
|
299
|
+
{
|
|
300
|
+
"path": "src/components/switch/MosaicSwitch.tsx",
|
|
301
|
+
"type": "registry:ui"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "mosaic-select",
|
|
307
|
+
"type": "registry:ui",
|
|
308
|
+
"title": "MosaicSelect",
|
|
309
|
+
"description": "Listbox select built on @base-ui/react/select. Props: items[], value, onValueChange, placeholder. Keyboard + focus management. data-slot=\"select\".",
|
|
310
|
+
"dependencies": [
|
|
311
|
+
"@base-ui/react"
|
|
312
|
+
],
|
|
313
|
+
"files": [
|
|
314
|
+
{
|
|
315
|
+
"path": "src/components/select/MosaicSelect.tsx",
|
|
316
|
+
"type": "registry:ui"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "mosaic-combobox",
|
|
322
|
+
"type": "registry:ui",
|
|
323
|
+
"title": "MosaicCombobox",
|
|
324
|
+
"description": "Filterable combobox built on @base-ui/react/combobox with useFilter. Props: items[], value, onValueChange, placeholder. data-slot=\"combobox\".",
|
|
325
|
+
"dependencies": [
|
|
326
|
+
"@base-ui/react"
|
|
327
|
+
],
|
|
328
|
+
"files": [
|
|
329
|
+
{
|
|
330
|
+
"path": "src/components/combobox/MosaicCombobox.tsx",
|
|
331
|
+
"type": "registry:ui"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "mosaic-dropdown-menu",
|
|
337
|
+
"type": "registry:ui",
|
|
338
|
+
"title": "MosaicDropdownMenu",
|
|
339
|
+
"description": "Dropdown menu built on @base-ui/react/menu: Trigger + items + separators. Keyboard nav, focus-visible. data-slot=\"dropdown-menu\".",
|
|
340
|
+
"dependencies": [
|
|
341
|
+
"@base-ui/react"
|
|
342
|
+
],
|
|
343
|
+
"files": [
|
|
344
|
+
{
|
|
345
|
+
"path": "src/components/dropdown-menu/MosaicDropdownMenu.tsx",
|
|
346
|
+
"type": "registry:ui"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
}
|