@kubuild/components 0.0.1 → 0.1.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/LICENSE +21 -0
- package/dist/blocks.d.ts +16 -0
- package/dist/blocks.d.ts.map +1 -0
- package/dist/index.cjs +520 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +519 -0
- package/dist/index.js.map +1 -1
- package/package.json +11 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kustora
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/blocks.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Node } from '@kubuild/schema';
|
|
2
|
+
export interface BlockDefinition {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
category: 'layout' | 'sections' | 'ui' | 'pricing' | 'cta' | 'forms' | string;
|
|
6
|
+
categoryLabel?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
thumbnailSvg?: string;
|
|
10
|
+
createNodeTree: (generateId?: (prefix?: string) => string) => Node;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Predefined Starter Layout Blocks (STORA-241) and Pre-composed UI Blocks (STORA-242).
|
|
14
|
+
*/
|
|
15
|
+
export declare const STARTER_BLOCKS: BlockDefinition[];
|
|
16
|
+
//# sourceMappingURL=blocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../src/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,KAAK,IAAI,CAAC;CACpE;AAOD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,eAAe,EAigB3C,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
ComponentRegistry: () => ComponentRegistry,
|
|
24
|
+
STARTER_BLOCKS: () => STARTER_BLOCKS,
|
|
24
25
|
TRAIT_GROUP_LABELS: () => TRAIT_GROUP_LABELS,
|
|
25
26
|
TRAIT_GROUP_ORDER: () => TRAIT_GROUP_ORDER,
|
|
26
27
|
actionTrait: () => actionTrait,
|
|
@@ -2363,9 +2364,528 @@ function primitiveTypeForField(field) {
|
|
|
2363
2364
|
function isBindableField(field) {
|
|
2364
2365
|
return primitiveTypeForField(field) !== void 0;
|
|
2365
2366
|
}
|
|
2367
|
+
|
|
2368
|
+
// src/blocks.ts
|
|
2369
|
+
var nextId = 1;
|
|
2370
|
+
function defaultGenId(prefix = "node") {
|
|
2371
|
+
return `${prefix}-${Date.now().toString(36)}-${(nextId++).toString(36)}`;
|
|
2372
|
+
}
|
|
2373
|
+
var STARTER_BLOCKS = [
|
|
2374
|
+
// --- Layout Blocks (STORA-241) ---
|
|
2375
|
+
{
|
|
2376
|
+
id: "layout-1-col",
|
|
2377
|
+
name: "1 Column",
|
|
2378
|
+
category: "layout",
|
|
2379
|
+
categoryLabel: "Layout Blocks",
|
|
2380
|
+
description: "Full-width single column container inside a section",
|
|
2381
|
+
icon: "layout",
|
|
2382
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2383
|
+
id: gen("section"),
|
|
2384
|
+
type: "section",
|
|
2385
|
+
styles: { base: { padding: "40px 20px", width: "100%" } },
|
|
2386
|
+
children: [
|
|
2387
|
+
{
|
|
2388
|
+
id: gen("container"),
|
|
2389
|
+
type: "container",
|
|
2390
|
+
props: { tag: "div" },
|
|
2391
|
+
styles: { base: { maxWidth: "1200px", margin: "0 auto", width: "100%" } },
|
|
2392
|
+
children: []
|
|
2393
|
+
}
|
|
2394
|
+
]
|
|
2395
|
+
})
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
id: "layout-2-col-50-50",
|
|
2399
|
+
name: "2 Columns (50/50)",
|
|
2400
|
+
category: "layout",
|
|
2401
|
+
categoryLabel: "Layout Blocks",
|
|
2402
|
+
description: "Two equal-width 50/50 columns with flexible layout",
|
|
2403
|
+
icon: "columns",
|
|
2404
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2405
|
+
id: gen("section"),
|
|
2406
|
+
type: "section",
|
|
2407
|
+
styles: { base: { padding: "40px 20px", width: "100%" } },
|
|
2408
|
+
children: [
|
|
2409
|
+
{
|
|
2410
|
+
id: gen("columns"),
|
|
2411
|
+
type: "columns",
|
|
2412
|
+
props: { columns: 2, gap: "24px" },
|
|
2413
|
+
styles: { base: { display: "flex", gap: "24px", width: "100%", maxWidth: "1200px", margin: "0 auto" } },
|
|
2414
|
+
children: [
|
|
2415
|
+
{
|
|
2416
|
+
id: gen("container"),
|
|
2417
|
+
type: "container",
|
|
2418
|
+
props: { tag: "div" },
|
|
2419
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2420
|
+
children: []
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
id: gen("container"),
|
|
2424
|
+
type: "container",
|
|
2425
|
+
props: { tag: "div" },
|
|
2426
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2427
|
+
children: []
|
|
2428
|
+
}
|
|
2429
|
+
]
|
|
2430
|
+
}
|
|
2431
|
+
]
|
|
2432
|
+
})
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
id: "layout-2-col-30-70",
|
|
2436
|
+
name: "2 Columns (30/70)",
|
|
2437
|
+
category: "layout",
|
|
2438
|
+
categoryLabel: "Layout Blocks",
|
|
2439
|
+
description: "Two asymmetric columns: 30% sidebar and 70% main area",
|
|
2440
|
+
icon: "columns",
|
|
2441
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2442
|
+
id: gen("section"),
|
|
2443
|
+
type: "section",
|
|
2444
|
+
styles: { base: { padding: "40px 20px", width: "100%" } },
|
|
2445
|
+
children: [
|
|
2446
|
+
{
|
|
2447
|
+
id: gen("columns"),
|
|
2448
|
+
type: "columns",
|
|
2449
|
+
props: { columns: 2, gap: "24px" },
|
|
2450
|
+
styles: { base: { display: "flex", gap: "24px", width: "100%", maxWidth: "1200px", margin: "0 auto" } },
|
|
2451
|
+
children: [
|
|
2452
|
+
{
|
|
2453
|
+
id: gen("container"),
|
|
2454
|
+
type: "container",
|
|
2455
|
+
props: { tag: "div" },
|
|
2456
|
+
styles: { base: { flex: "0 0 30%", minWidth: "0" } },
|
|
2457
|
+
children: []
|
|
2458
|
+
},
|
|
2459
|
+
{
|
|
2460
|
+
id: gen("container"),
|
|
2461
|
+
type: "container",
|
|
2462
|
+
props: { tag: "div" },
|
|
2463
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2464
|
+
children: []
|
|
2465
|
+
}
|
|
2466
|
+
]
|
|
2467
|
+
}
|
|
2468
|
+
]
|
|
2469
|
+
})
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
id: "layout-3-col",
|
|
2473
|
+
name: "3 Columns",
|
|
2474
|
+
category: "layout",
|
|
2475
|
+
categoryLabel: "Layout Blocks",
|
|
2476
|
+
description: "Three equal-width columns for grid showcases or card groups",
|
|
2477
|
+
icon: "grid",
|
|
2478
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2479
|
+
id: gen("section"),
|
|
2480
|
+
type: "section",
|
|
2481
|
+
styles: { base: { padding: "40px 20px", width: "100%" } },
|
|
2482
|
+
children: [
|
|
2483
|
+
{
|
|
2484
|
+
id: gen("columns"),
|
|
2485
|
+
type: "columns",
|
|
2486
|
+
props: { columns: 3, gap: "24px" },
|
|
2487
|
+
styles: { base: { display: "flex", gap: "24px", width: "100%", maxWidth: "1200px", margin: "0 auto" } },
|
|
2488
|
+
children: [
|
|
2489
|
+
{
|
|
2490
|
+
id: gen("container"),
|
|
2491
|
+
type: "container",
|
|
2492
|
+
props: { tag: "div" },
|
|
2493
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2494
|
+
children: []
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
id: gen("container"),
|
|
2498
|
+
type: "container",
|
|
2499
|
+
props: { tag: "div" },
|
|
2500
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2501
|
+
children: []
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
id: gen("container"),
|
|
2505
|
+
type: "container",
|
|
2506
|
+
props: { tag: "div" },
|
|
2507
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2508
|
+
children: []
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
}
|
|
2512
|
+
]
|
|
2513
|
+
})
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
id: "layout-4-col",
|
|
2517
|
+
name: "4 Columns",
|
|
2518
|
+
category: "layout",
|
|
2519
|
+
categoryLabel: "Layout Blocks",
|
|
2520
|
+
description: "Four equal columns for metric stats, logos, or compact feature cards",
|
|
2521
|
+
icon: "grid",
|
|
2522
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2523
|
+
id: gen("section"),
|
|
2524
|
+
type: "section",
|
|
2525
|
+
styles: { base: { padding: "40px 20px", width: "100%" } },
|
|
2526
|
+
children: [
|
|
2527
|
+
{
|
|
2528
|
+
id: gen("columns"),
|
|
2529
|
+
type: "columns",
|
|
2530
|
+
props: { columns: 4, gap: "16px" },
|
|
2531
|
+
styles: { base: { display: "flex", gap: "16px", width: "100%", maxWidth: "1200px", margin: "0 auto" } },
|
|
2532
|
+
children: [
|
|
2533
|
+
{
|
|
2534
|
+
id: gen("container"),
|
|
2535
|
+
type: "container",
|
|
2536
|
+
props: { tag: "div" },
|
|
2537
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2538
|
+
children: []
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
id: gen("container"),
|
|
2542
|
+
type: "container",
|
|
2543
|
+
props: { tag: "div" },
|
|
2544
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2545
|
+
children: []
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
id: gen("container"),
|
|
2549
|
+
type: "container",
|
|
2550
|
+
props: { tag: "div" },
|
|
2551
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2552
|
+
children: []
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
id: gen("container"),
|
|
2556
|
+
type: "container",
|
|
2557
|
+
props: { tag: "div" },
|
|
2558
|
+
styles: { base: { flex: "1 1 0%", minWidth: "0" } },
|
|
2559
|
+
children: []
|
|
2560
|
+
}
|
|
2561
|
+
]
|
|
2562
|
+
}
|
|
2563
|
+
]
|
|
2564
|
+
})
|
|
2565
|
+
},
|
|
2566
|
+
// --- Pre-composed UI Blocks (STORA-242) ---
|
|
2567
|
+
{
|
|
2568
|
+
id: "hero-section",
|
|
2569
|
+
name: "Hero Section",
|
|
2570
|
+
category: "sections",
|
|
2571
|
+
categoryLabel: "Hero & Headers",
|
|
2572
|
+
description: "Engaging hero banner with headline, lead paragraph, and call-to-action button",
|
|
2573
|
+
icon: "layout",
|
|
2574
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2575
|
+
id: gen("section"),
|
|
2576
|
+
type: "section",
|
|
2577
|
+
styles: {
|
|
2578
|
+
base: {
|
|
2579
|
+
padding: "80px 24px",
|
|
2580
|
+
backgroundColor: "#f8fafc",
|
|
2581
|
+
textAlign: "center",
|
|
2582
|
+
width: "100%"
|
|
2583
|
+
}
|
|
2584
|
+
},
|
|
2585
|
+
children: [
|
|
2586
|
+
{
|
|
2587
|
+
id: gen("container"),
|
|
2588
|
+
type: "container",
|
|
2589
|
+
props: { tag: "div" },
|
|
2590
|
+
styles: { base: { maxWidth: "768px", margin: "0 auto" } },
|
|
2591
|
+
children: [
|
|
2592
|
+
{
|
|
2593
|
+
id: gen("heading"),
|
|
2594
|
+
type: "heading",
|
|
2595
|
+
props: { text: "Build Remarkable Experiences", level: 1 },
|
|
2596
|
+
styles: {
|
|
2597
|
+
base: {
|
|
2598
|
+
fontSize: "44px",
|
|
2599
|
+
fontWeight: "800",
|
|
2600
|
+
color: "#0f172a",
|
|
2601
|
+
marginBottom: "16px",
|
|
2602
|
+
lineHeight: "1.2"
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
id: gen("paragraph"),
|
|
2608
|
+
type: "paragraph",
|
|
2609
|
+
props: {
|
|
2610
|
+
content: "A visual builder designed for maximum craft, responsiveness, and performance."
|
|
2611
|
+
},
|
|
2612
|
+
styles: {
|
|
2613
|
+
base: {
|
|
2614
|
+
fontSize: "18px",
|
|
2615
|
+
color: "#475569",
|
|
2616
|
+
marginBottom: "32px",
|
|
2617
|
+
lineHeight: "1.6"
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
id: gen("button"),
|
|
2623
|
+
type: "button",
|
|
2624
|
+
props: { label: "Get Started Today", href: "#explore" },
|
|
2625
|
+
styles: {
|
|
2626
|
+
base: {
|
|
2627
|
+
backgroundColor: "#2563eb",
|
|
2628
|
+
color: "#ffffff",
|
|
2629
|
+
padding: "12px 28px",
|
|
2630
|
+
borderRadius: "8px",
|
|
2631
|
+
fontWeight: "600",
|
|
2632
|
+
display: "inline-block"
|
|
2633
|
+
},
|
|
2634
|
+
states: {
|
|
2635
|
+
":hover": { backgroundColor: "#1d4ed8" }
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
]
|
|
2640
|
+
}
|
|
2641
|
+
]
|
|
2642
|
+
})
|
|
2643
|
+
},
|
|
2644
|
+
{
|
|
2645
|
+
id: "feature-card",
|
|
2646
|
+
name: "Feature Card",
|
|
2647
|
+
category: "ui",
|
|
2648
|
+
categoryLabel: "UI Blocks",
|
|
2649
|
+
description: "Clean elevated feature card with badge, title, text, and action link",
|
|
2650
|
+
icon: "box",
|
|
2651
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2652
|
+
id: gen("container"),
|
|
2653
|
+
type: "container",
|
|
2654
|
+
props: { tag: "div" },
|
|
2655
|
+
styles: {
|
|
2656
|
+
base: {
|
|
2657
|
+
padding: "24px",
|
|
2658
|
+
backgroundColor: "#ffffff",
|
|
2659
|
+
borderRadius: "12px",
|
|
2660
|
+
border: "1px solid #e2e8f0",
|
|
2661
|
+
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.05)"
|
|
2662
|
+
}
|
|
2663
|
+
},
|
|
2664
|
+
children: [
|
|
2665
|
+
{
|
|
2666
|
+
id: gen("badge"),
|
|
2667
|
+
type: "badge",
|
|
2668
|
+
props: { label: "PRO FEATURE", variant: "primary" },
|
|
2669
|
+
styles: { base: { marginBottom: "12px", display: "inline-block" } }
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
id: gen("heading"),
|
|
2673
|
+
type: "heading",
|
|
2674
|
+
props: { text: "Next-Gen Performance", level: 3 },
|
|
2675
|
+
styles: {
|
|
2676
|
+
base: { fontSize: "20px", fontWeight: "700", color: "#1e293b", marginBottom: "8px" }
|
|
2677
|
+
}
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
id: gen("paragraph"),
|
|
2681
|
+
type: "paragraph",
|
|
2682
|
+
props: {
|
|
2683
|
+
content: "Engineered for sub-millisecond render updates and zero runtime overhead."
|
|
2684
|
+
},
|
|
2685
|
+
styles: { base: { fontSize: "14px", color: "#64748b", lineHeight: "1.5" } }
|
|
2686
|
+
}
|
|
2687
|
+
]
|
|
2688
|
+
})
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
id: "media-object",
|
|
2692
|
+
name: "Media Object",
|
|
2693
|
+
category: "ui",
|
|
2694
|
+
categoryLabel: "UI Blocks",
|
|
2695
|
+
description: "Horizontal media layout with image beside text content",
|
|
2696
|
+
icon: "image",
|
|
2697
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2698
|
+
id: gen("container"),
|
|
2699
|
+
type: "container",
|
|
2700
|
+
props: { tag: "div" },
|
|
2701
|
+
styles: {
|
|
2702
|
+
base: {
|
|
2703
|
+
display: "flex",
|
|
2704
|
+
gap: "16px",
|
|
2705
|
+
alignItems: "flex-start",
|
|
2706
|
+
padding: "16px",
|
|
2707
|
+
backgroundColor: "#ffffff",
|
|
2708
|
+
borderRadius: "8px",
|
|
2709
|
+
border: "1px solid #e2e8f0"
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
children: [
|
|
2713
|
+
{
|
|
2714
|
+
id: gen("image"),
|
|
2715
|
+
type: "image",
|
|
2716
|
+
props: {
|
|
2717
|
+
src: "https://images.unsplash.com/photo-1579546929518-9e396f3cc809?w=160&auto=format&fit=crop&q=80",
|
|
2718
|
+
alt: "Visual preview"
|
|
2719
|
+
},
|
|
2720
|
+
styles: {
|
|
2721
|
+
base: {
|
|
2722
|
+
width: "80px",
|
|
2723
|
+
height: "80px",
|
|
2724
|
+
borderRadius: "8px",
|
|
2725
|
+
objectFit: "cover",
|
|
2726
|
+
flexShrink: "0"
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
id: gen("container"),
|
|
2732
|
+
type: "container",
|
|
2733
|
+
props: { tag: "div" },
|
|
2734
|
+
styles: { base: { flex: "1 1 0%" } },
|
|
2735
|
+
children: [
|
|
2736
|
+
{
|
|
2737
|
+
id: gen("heading"),
|
|
2738
|
+
type: "heading",
|
|
2739
|
+
props: { text: "Creative Studio Asset", level: 4 },
|
|
2740
|
+
styles: {
|
|
2741
|
+
base: { fontSize: "16px", fontWeight: "600", color: "#0f172a", marginBottom: "4px" }
|
|
2742
|
+
}
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
id: gen("paragraph"),
|
|
2746
|
+
type: "paragraph",
|
|
2747
|
+
props: { content: "High dynamic range gradients crafted for modern presentations." },
|
|
2748
|
+
styles: { base: { fontSize: "13px", color: "#64748b", lineHeight: "1.4" } }
|
|
2749
|
+
}
|
|
2750
|
+
]
|
|
2751
|
+
}
|
|
2752
|
+
]
|
|
2753
|
+
})
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
id: "pricing-table",
|
|
2757
|
+
name: "Pricing Table",
|
|
2758
|
+
category: "pricing",
|
|
2759
|
+
categoryLabel: "Pricing",
|
|
2760
|
+
description: "Highlighted subscription pricing plan with price, feature list, and buy button",
|
|
2761
|
+
icon: "table",
|
|
2762
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2763
|
+
id: gen("container"),
|
|
2764
|
+
type: "container",
|
|
2765
|
+
props: { tag: "div" },
|
|
2766
|
+
styles: {
|
|
2767
|
+
base: {
|
|
2768
|
+
padding: "32px 24px",
|
|
2769
|
+
backgroundColor: "#ffffff",
|
|
2770
|
+
borderRadius: "16px",
|
|
2771
|
+
border: "2px solid #3b82f6",
|
|
2772
|
+
boxShadow: "0 10px 15px -3px rgba(59, 130, 246, 0.1)",
|
|
2773
|
+
textAlign: "center",
|
|
2774
|
+
maxWidth: "360px"
|
|
2775
|
+
}
|
|
2776
|
+
},
|
|
2777
|
+
children: [
|
|
2778
|
+
{
|
|
2779
|
+
id: gen("badge"),
|
|
2780
|
+
type: "badge",
|
|
2781
|
+
props: { label: "MOST POPULAR", variant: "primary" },
|
|
2782
|
+
styles: { base: { marginBottom: "12px", display: "inline-block" } }
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
id: gen("heading"),
|
|
2786
|
+
type: "heading",
|
|
2787
|
+
props: { text: "Professional", level: 3 },
|
|
2788
|
+
styles: { base: { fontSize: "22px", fontWeight: "700", color: "#0f172a" } }
|
|
2789
|
+
},
|
|
2790
|
+
{
|
|
2791
|
+
id: gen("heading"),
|
|
2792
|
+
type: "heading",
|
|
2793
|
+
props: { text: "$29 / mo", level: 2 },
|
|
2794
|
+
styles: {
|
|
2795
|
+
base: { fontSize: "36px", fontWeight: "800", color: "#2563eb", margin: "16px 0 24px 0" }
|
|
2796
|
+
}
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
id: gen("paragraph"),
|
|
2800
|
+
type: "paragraph",
|
|
2801
|
+
props: { content: "Includes unlimited pages, custom domains, and team collaboration." },
|
|
2802
|
+
styles: { base: { fontSize: "14px", color: "#64748b", marginBottom: "24px" } }
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
id: gen("button"),
|
|
2806
|
+
type: "button",
|
|
2807
|
+
props: { label: "Upgrade to Pro", href: "#checkout" },
|
|
2808
|
+
styles: {
|
|
2809
|
+
base: {
|
|
2810
|
+
width: "100%",
|
|
2811
|
+
backgroundColor: "#2563eb",
|
|
2812
|
+
color: "#ffffff",
|
|
2813
|
+
padding: "12px",
|
|
2814
|
+
borderRadius: "8px",
|
|
2815
|
+
fontWeight: "600",
|
|
2816
|
+
display: "block"
|
|
2817
|
+
},
|
|
2818
|
+
states: {
|
|
2819
|
+
":hover": { backgroundColor: "#1d4ed8" }
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
]
|
|
2824
|
+
})
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
id: "cta-banner",
|
|
2828
|
+
name: "CTA Banner",
|
|
2829
|
+
category: "cta",
|
|
2830
|
+
categoryLabel: "Call to Action",
|
|
2831
|
+
description: "High-contrast conversion banner with title and action button",
|
|
2832
|
+
icon: "layout",
|
|
2833
|
+
createNodeTree: (gen = defaultGenId) => ({
|
|
2834
|
+
id: gen("section"),
|
|
2835
|
+
type: "section",
|
|
2836
|
+
styles: {
|
|
2837
|
+
base: {
|
|
2838
|
+
padding: "60px 24px",
|
|
2839
|
+
backgroundColor: "#0f172a",
|
|
2840
|
+
color: "#ffffff",
|
|
2841
|
+
borderRadius: "16px",
|
|
2842
|
+
textAlign: "center",
|
|
2843
|
+
width: "100%"
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
children: [
|
|
2847
|
+
{
|
|
2848
|
+
id: gen("heading"),
|
|
2849
|
+
type: "heading",
|
|
2850
|
+
props: { text: "Ready to boost your workflow?", level: 2 },
|
|
2851
|
+
styles: {
|
|
2852
|
+
base: { fontSize: "32px", fontWeight: "700", color: "#ffffff", marginBottom: "12px" }
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
id: gen("paragraph"),
|
|
2857
|
+
type: "paragraph",
|
|
2858
|
+
props: { content: "Start building with zero installation and instant live preview." },
|
|
2859
|
+
styles: {
|
|
2860
|
+
base: { fontSize: "16px", color: "#94a3b8", marginBottom: "24px", maxWidth: "600px", margin: "0 auto 24px auto" }
|
|
2861
|
+
}
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
id: gen("button"),
|
|
2865
|
+
type: "button",
|
|
2866
|
+
props: { label: "Start Free Trial", href: "#signup" },
|
|
2867
|
+
styles: {
|
|
2868
|
+
base: {
|
|
2869
|
+
backgroundColor: "#ffffff",
|
|
2870
|
+
color: "#0f172a",
|
|
2871
|
+
padding: "12px 28px",
|
|
2872
|
+
borderRadius: "8px",
|
|
2873
|
+
fontWeight: "700",
|
|
2874
|
+
display: "inline-block"
|
|
2875
|
+
},
|
|
2876
|
+
states: {
|
|
2877
|
+
":hover": { backgroundColor: "#f1f5f9" }
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
]
|
|
2882
|
+
})
|
|
2883
|
+
}
|
|
2884
|
+
];
|
|
2366
2885
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2367
2886
|
0 && (module.exports = {
|
|
2368
2887
|
ComponentRegistry,
|
|
2888
|
+
STARTER_BLOCKS,
|
|
2369
2889
|
TRAIT_GROUP_LABELS,
|
|
2370
2890
|
TRAIT_GROUP_ORDER,
|
|
2371
2891
|
actionTrait,
|