@the-smithy/hearth 0.31.0 → 0.33.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/block-catalog.json +96 -1
- package/block-reference.html +1 -1
- package/package.json +2 -2
package/block-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"about": "Hearth's block catalog: every block the template draws, with its theme slots, their starting Tailwind classes, sample content and unstyled markup (data-slot names each element's slot), plus the brand tokens and every other part of a site. Generated from the template by pnpm blocks:reference.",
|
|
3
|
-
"inputs": "
|
|
3
|
+
"inputs": "8aaa33322a1aff2e",
|
|
4
4
|
"blockSchemaVersion": 1,
|
|
5
5
|
"variants": "Every slot Hearth's code draws, and the Tailwind classes it starts with. Don't edit this file in a site: set the\nslots you want to change in src/theme/index.ts, which replaces them (or extends them with a function).\n\nEach slot styles one element on its own, so a slot's classes never fight another's. Variants come from the\nelement's state, set as attributes by the code, so they're plain Tailwind variants in the slot:\n on-dark: on an inverse or accent ground (sections with a dark tone, the hero, the footer)\n data-[size=full]: data-[size=small]: data-[width=narrow]: data-[columns=4]: data-[fit=contain]:\n data-highlight: data-cancelled: data-full: data-flip: aria-invalid: aria-[current=page]: has-checked:\n in-data-[…]: the same, set on an ancestor (Tailwind's in-* variant)\nFor CSS that picks out something in particular (site CSS in src/theme/theme.css, or in-data-[…]: in a slot):\n [data-block=\"hero\"] a block's type, with [data-tone] and, on a hero, [data-size] beside it\n [data-page=\"events\"] the pages the code serves (events, fundraisers, donate, thank-you, registered, not-found)\n [data-card=\"our-history\"] a card in a Cards block, by its title; [data-icon=\"graduation-cap\"] by its Icon in Hearth\nSlots named `tone` aren't classes: they pick the ground (default, muted, inverse or accent) a block sits on.\nSlots under `text` are the words the code shows (labels, buttons), for sites that word them differently; {name} marks a\nvalue the code fills in. A few others hold a setting, not classes: `page.themeColor`, `page.externalLinks`,\n`page.navMatch`, `page.dateStyle` and `map.style`.",
|
|
6
6
|
"tokens": {
|
|
@@ -337,6 +337,11 @@
|
|
|
337
337
|
"classes": "bg-accent text-accent-ink"
|
|
338
338
|
}
|
|
339
339
|
],
|
|
340
|
+
"overrideParts": [
|
|
341
|
+
"hero.heading",
|
|
342
|
+
"hero.actions",
|
|
343
|
+
"hero.media"
|
|
344
|
+
],
|
|
340
345
|
"samples": [
|
|
341
346
|
{
|
|
342
347
|
"label": "Full size, with image and both buttons",
|
|
@@ -538,6 +543,11 @@
|
|
|
538
543
|
"classes": "mx-auto max-w-site px-4 py-20 sm:px-6 sm:py-24"
|
|
539
544
|
}
|
|
540
545
|
],
|
|
546
|
+
"overrideParts": [
|
|
547
|
+
"cta.heading",
|
|
548
|
+
"cta.actions",
|
|
549
|
+
"cta.media"
|
|
550
|
+
],
|
|
541
551
|
"samples": [
|
|
542
552
|
{
|
|
543
553
|
"label": "Brand color",
|
|
@@ -661,6 +671,7 @@
|
|
|
661
671
|
"classes": "prose text-lg data-[width=narrow]:max-w-3xl"
|
|
662
672
|
}
|
|
663
673
|
],
|
|
674
|
+
"overrideParts": [],
|
|
664
675
|
"samples": [
|
|
665
676
|
{
|
|
666
677
|
"label": "Narrow, with every kind of formatting",
|
|
@@ -743,6 +754,11 @@
|
|
|
743
754
|
"classes": "aspect-[4/3] w-full rounded-xl object-cover data-[fit=contain]:aspect-auto data-[fit=contain]:max-h-96 data-[fit=contain]:object-contain"
|
|
744
755
|
}
|
|
745
756
|
],
|
|
757
|
+
"overrideParts": [
|
|
758
|
+
"mediaText.heading",
|
|
759
|
+
"mediaText.actions",
|
|
760
|
+
"mediaText.media"
|
|
761
|
+
],
|
|
746
762
|
"samples": [
|
|
747
763
|
{
|
|
748
764
|
"label": "Image on the right, with a button",
|
|
@@ -850,6 +866,10 @@
|
|
|
850
866
|
"classes": "text-5xl font-bold"
|
|
851
867
|
}
|
|
852
868
|
],
|
|
869
|
+
"overrideParts": [
|
|
870
|
+
"stats.heading",
|
|
871
|
+
"stats.item"
|
|
872
|
+
],
|
|
853
873
|
"samples": [
|
|
854
874
|
{
|
|
855
875
|
"label": "With a heading",
|
|
@@ -969,6 +989,10 @@
|
|
|
969
989
|
"classes": "bg-accent text-accent-ink"
|
|
970
990
|
}
|
|
971
991
|
],
|
|
992
|
+
"overrideParts": [
|
|
993
|
+
"cardGrid.heading",
|
|
994
|
+
"cardGrid.item"
|
|
995
|
+
],
|
|
972
996
|
"samples": [
|
|
973
997
|
{
|
|
974
998
|
"label": "Images and links, Standard background",
|
|
@@ -1190,6 +1214,10 @@
|
|
|
1190
1214
|
"classes": "prose mt-2 text-lg opacity-85"
|
|
1191
1215
|
}
|
|
1192
1216
|
],
|
|
1217
|
+
"overrideParts": [
|
|
1218
|
+
"faq.heading",
|
|
1219
|
+
"faq.item"
|
|
1220
|
+
],
|
|
1193
1221
|
"samples": [
|
|
1194
1222
|
{
|
|
1195
1223
|
"label": "Answers open on click (the first is open here)",
|
|
@@ -1344,6 +1372,10 @@
|
|
|
1344
1372
|
"classes": "bg-inverse text-inverse-ink"
|
|
1345
1373
|
}
|
|
1346
1374
|
],
|
|
1375
|
+
"overrideParts": [
|
|
1376
|
+
"pricing.heading",
|
|
1377
|
+
"pricing.item"
|
|
1378
|
+
],
|
|
1347
1379
|
"samples": [
|
|
1348
1380
|
{
|
|
1349
1381
|
"label": "Three plans, one highlighted",
|
|
@@ -1625,6 +1657,10 @@
|
|
|
1625
1657
|
"classes": "flex flex-col gap-3 p-7 rounded-2xl bg-surface ring-1 ring-line on-dark:bg-white/10 on-dark:ring-0"
|
|
1626
1658
|
}
|
|
1627
1659
|
],
|
|
1660
|
+
"overrideParts": [
|
|
1661
|
+
"projects.heading",
|
|
1662
|
+
"projects.item"
|
|
1663
|
+
],
|
|
1628
1664
|
"samples": [
|
|
1629
1665
|
{
|
|
1630
1666
|
"label": "Showcase (large images, alternating sides)",
|
|
@@ -1803,6 +1839,7 @@
|
|
|
1803
1839
|
"classes": "bg-accent text-accent-ink"
|
|
1804
1840
|
}
|
|
1805
1841
|
],
|
|
1842
|
+
"overrideParts": [],
|
|
1806
1843
|
"samples": [
|
|
1807
1844
|
{
|
|
1808
1845
|
"label": "With photo, Standard background",
|
|
@@ -1926,6 +1963,10 @@
|
|
|
1926
1963
|
"classes": "leading-relaxed opacity-85"
|
|
1927
1964
|
}
|
|
1928
1965
|
],
|
|
1966
|
+
"overrideParts": [
|
|
1967
|
+
"people.heading",
|
|
1968
|
+
"people.item"
|
|
1969
|
+
],
|
|
1929
1970
|
"samples": [
|
|
1930
1971
|
{
|
|
1931
1972
|
"label": "Photos, roles and bios",
|
|
@@ -2045,6 +2086,10 @@
|
|
|
2045
2086
|
"classes": "text-lg font-semibold"
|
|
2046
2087
|
}
|
|
2047
2088
|
],
|
|
2089
|
+
"overrideParts": [
|
|
2090
|
+
"logos.heading",
|
|
2091
|
+
"logos.item"
|
|
2092
|
+
],
|
|
2048
2093
|
"samples": [
|
|
2049
2094
|
{
|
|
2050
2095
|
"label": "Logos, some linked",
|
|
@@ -2230,6 +2275,10 @@
|
|
|
2230
2275
|
"classes": "text-lg opacity-75"
|
|
2231
2276
|
}
|
|
2232
2277
|
],
|
|
2278
|
+
"overrideParts": [
|
|
2279
|
+
"collectionList.heading",
|
|
2280
|
+
"collectionList.item"
|
|
2281
|
+
],
|
|
2233
2282
|
"samples": [
|
|
2234
2283
|
{
|
|
2235
2284
|
"label": "Cards with images",
|
|
@@ -2444,6 +2493,10 @@
|
|
|
2444
2493
|
"classes": "mt-2 text-sm opacity-75"
|
|
2445
2494
|
}
|
|
2446
2495
|
],
|
|
2496
|
+
"overrideParts": [
|
|
2497
|
+
"gallery.heading",
|
|
2498
|
+
"gallery.item"
|
|
2499
|
+
],
|
|
2447
2500
|
"samples": [
|
|
2448
2501
|
{
|
|
2449
2502
|
"label": "3 across, with captions",
|
|
@@ -2622,6 +2675,9 @@
|
|
|
2622
2675
|
"classes": "mt-3 opacity-75"
|
|
2623
2676
|
}
|
|
2624
2677
|
],
|
|
2678
|
+
"overrideParts": [
|
|
2679
|
+
"video.heading"
|
|
2680
|
+
],
|
|
2625
2681
|
"samples": [
|
|
2626
2682
|
{
|
|
2627
2683
|
"label": "With heading and caption",
|
|
@@ -2666,6 +2722,7 @@
|
|
|
2666
2722
|
"classes": "mt-3 opacity-75"
|
|
2667
2723
|
}
|
|
2668
2724
|
],
|
|
2725
|
+
"overrideParts": [],
|
|
2669
2726
|
"samples": [
|
|
2670
2727
|
{
|
|
2671
2728
|
"label": "Narrow",
|
|
@@ -2775,6 +2832,10 @@
|
|
|
2775
2832
|
"classes": "aspect-[4/3]"
|
|
2776
2833
|
}
|
|
2777
2834
|
],
|
|
2835
|
+
"overrideParts": [
|
|
2836
|
+
"location.heading",
|
|
2837
|
+
"location.details"
|
|
2838
|
+
],
|
|
2778
2839
|
"samples": [
|
|
2779
2840
|
{
|
|
2780
2841
|
"label": "With a map",
|
|
@@ -2891,6 +2952,10 @@
|
|
|
2891
2952
|
"classes": "divide-y divide-line border-y border-line grid gap-x-10 sm:grid-cols-2 sm:divide-y-0 sm:border-y-0"
|
|
2892
2953
|
}
|
|
2893
2954
|
],
|
|
2955
|
+
"overrideParts": [
|
|
2956
|
+
"locations.heading",
|
|
2957
|
+
"locations.item"
|
|
2958
|
+
],
|
|
2894
2959
|
"samples": [
|
|
2895
2960
|
{
|
|
2896
2961
|
"label": "With a map",
|
|
@@ -3059,6 +3124,10 @@
|
|
|
3059
3124
|
"classes": "mt-1 opacity-80"
|
|
3060
3125
|
}
|
|
3061
3126
|
],
|
|
3127
|
+
"overrideParts": [
|
|
3128
|
+
"schedule.heading",
|
|
3129
|
+
"schedule.item"
|
|
3130
|
+
],
|
|
3062
3131
|
"samples": [
|
|
3063
3132
|
{
|
|
3064
3133
|
"label": "With details on some items",
|
|
@@ -3186,6 +3255,9 @@
|
|
|
3186
3255
|
"classes": "text-lg opacity-75"
|
|
3187
3256
|
}
|
|
3188
3257
|
],
|
|
3258
|
+
"overrideParts": [
|
|
3259
|
+
"upcomingEvents.heading"
|
|
3260
|
+
],
|
|
3189
3261
|
"samples": [
|
|
3190
3262
|
{
|
|
3191
3263
|
"label": "Register button, sold out, and cancelled without an image",
|
|
@@ -3428,6 +3500,9 @@
|
|
|
3428
3500
|
"classes": "text-lg opacity-75"
|
|
3429
3501
|
}
|
|
3430
3502
|
],
|
|
3503
|
+
"overrideParts": [
|
|
3504
|
+
"pastEvents.heading"
|
|
3505
|
+
],
|
|
3431
3506
|
"samples": [
|
|
3432
3507
|
{
|
|
3433
3508
|
"label": "Past events (Subtle background by default)",
|
|
@@ -3590,6 +3665,10 @@
|
|
|
3590
3665
|
"classes": "aspect-[4/3] w-full rounded-xl object-cover"
|
|
3591
3666
|
}
|
|
3592
3667
|
],
|
|
3668
|
+
"overrideParts": [
|
|
3669
|
+
"eventSpotlight.actions",
|
|
3670
|
+
"eventSpotlight.media"
|
|
3671
|
+
],
|
|
3593
3672
|
"samples": [
|
|
3594
3673
|
{
|
|
3595
3674
|
"label": "With a label and image",
|
|
@@ -3749,6 +3828,7 @@
|
|
|
3749
3828
|
"classes": "opacity-80"
|
|
3750
3829
|
}
|
|
3751
3830
|
],
|
|
3831
|
+
"overrideParts": [],
|
|
3752
3832
|
"samples": [
|
|
3753
3833
|
{
|
|
3754
3834
|
"label": "Open, with shifts (one is full)",
|
|
@@ -3987,6 +4067,9 @@
|
|
|
3987
4067
|
"classes": "rounded-lg bg-accent px-6 py-3.5 font-semibold text-accent-ink hover:opacity-90 disabled:opacity-60"
|
|
3988
4068
|
}
|
|
3989
4069
|
],
|
|
4070
|
+
"overrideParts": [
|
|
4071
|
+
"form.heading"
|
|
4072
|
+
],
|
|
3990
4073
|
"samples": [
|
|
3991
4074
|
{
|
|
3992
4075
|
"label": "Every kind of field",
|
|
@@ -4128,6 +4211,10 @@
|
|
|
4128
4211
|
"classes": "aspect-[4/3] w-full rounded-xl object-cover"
|
|
4129
4212
|
}
|
|
4130
4213
|
],
|
|
4214
|
+
"overrideParts": [
|
|
4215
|
+
"fundraiserSpotlight.actions",
|
|
4216
|
+
"fundraiserSpotlight.media"
|
|
4217
|
+
],
|
|
4131
4218
|
"samples": [
|
|
4132
4219
|
{
|
|
4133
4220
|
"label": "Active, with a goal",
|
|
@@ -4293,6 +4380,9 @@
|
|
|
4293
4380
|
"classes": "text-lg opacity-75"
|
|
4294
4381
|
}
|
|
4295
4382
|
],
|
|
4383
|
+
"overrideParts": [
|
|
4384
|
+
"fundraiserGrid.heading"
|
|
4385
|
+
],
|
|
4296
4386
|
"samples": [
|
|
4297
4387
|
{
|
|
4298
4388
|
"label": "With a goal, without a goal or image, and completed",
|
|
@@ -4470,6 +4560,9 @@
|
|
|
4470
4560
|
"classes": "mb-6 font-semibold"
|
|
4471
4561
|
}
|
|
4472
4562
|
],
|
|
4563
|
+
"overrideParts": [
|
|
4564
|
+
"donate.heading"
|
|
4565
|
+
],
|
|
4473
4566
|
"samples": [
|
|
4474
4567
|
{
|
|
4475
4568
|
"label": "General, with a choice of fundraiser",
|
|
@@ -4536,10 +4629,12 @@
|
|
|
4536
4629
|
},
|
|
4537
4630
|
"sharedBlock": {
|
|
4538
4631
|
"slots": [],
|
|
4632
|
+
"overrideParts": [],
|
|
4539
4633
|
"samples": []
|
|
4540
4634
|
},
|
|
4541
4635
|
"custom": {
|
|
4542
4636
|
"slots": [],
|
|
4637
|
+
"overrideParts": [],
|
|
4543
4638
|
"samples": []
|
|
4544
4639
|
}
|
|
4545
4640
|
},
|
package/block-reference.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
6
6
|
<meta name="claude:viewport-fit-sides" content="cover">
|
|
7
|
-
<meta name="hearth-block-reference-inputs" content="
|
|
7
|
+
<meta name="hearth-block-reference-inputs" content="8aaa33322a1aff2e">
|
|
8
8
|
<title>Hearth Block Reference</title>
|
|
9
9
|
<style>/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
10
10
|
@layer properties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-smithy/hearth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Typed client for the Hearth Delivery API: content, SEO, forms and publish webhooks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"block-catalog.json"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@the-smithy/hearth-schema": "^0.
|
|
54
|
+
"@the-smithy/hearth-schema": "^0.33.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"next": ">=15",
|