@sinnstack/ui 0.0.0-stage → 0.2.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 (280) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +373 -0
  3. package/README.md +186 -2
  4. package/docs/blocks.md +364 -0
  5. package/docs/data.md +128 -0
  6. package/docs/motion.md +166 -0
  7. package/docs/primitives.md +510 -0
  8. package/docs/seo.md +187 -0
  9. package/docs/tokens.md +122 -0
  10. package/package.json +141 -3
  11. package/scripts/check-contrast.mjs +180 -0
  12. package/src/blocks/BlockRenderer.astro +54 -0
  13. package/src/blocks/CTABanner.astro +121 -0
  14. package/src/blocks/CTAPair.astro +110 -0
  15. package/src/blocks/CardGrid.astro +167 -0
  16. package/src/blocks/ConsentEmbed.astro +125 -0
  17. package/src/blocks/ConsentManager.astro +147 -0
  18. package/src/blocks/ConsentScript.astro +47 -0
  19. package/src/blocks/ContactCard.astro +164 -0
  20. package/src/blocks/ContactForm.astro +224 -0
  21. package/src/blocks/ErrorPage.astro +242 -0
  22. package/src/blocks/FAQ.astro +135 -0
  23. package/src/blocks/FeatureGrid.astro +148 -0
  24. package/src/blocks/Hero.astro +171 -0
  25. package/src/blocks/HeroCarousel.astro +220 -0
  26. package/src/blocks/HighlightCards.astro +107 -0
  27. package/src/blocks/LocationHours.astro +311 -0
  28. package/src/blocks/LogoCloud.astro +135 -0
  29. package/src/blocks/MaintenancePage.astro +168 -0
  30. package/src/blocks/MediaText.astro +177 -0
  31. package/src/blocks/PageHeader.astro +126 -0
  32. package/src/blocks/ProseSection.astro +98 -0
  33. package/src/blocks/Reviews.astro +194 -0
  34. package/src/blocks/RichText.astro +57 -0
  35. package/src/blocks/StatsBand.astro +117 -0
  36. package/src/blocks/Steps.astro +141 -0
  37. package/src/blocks/Testimonials.astro +144 -0
  38. package/src/blocks/Topbar.astro +158 -0
  39. package/src/blocks/cms/card-grid.ts +80 -0
  40. package/src/blocks/cms/consent.ts +45 -0
  41. package/src/blocks/cms/contact-card.ts +88 -0
  42. package/src/blocks/cms/contact-form.ts +55 -0
  43. package/src/blocks/cms/cta-banner.ts +48 -0
  44. package/src/blocks/cms/cta-pair.ts +63 -0
  45. package/src/blocks/cms/data-base.ts +7 -0
  46. package/src/blocks/cms/data.ts +257 -0
  47. package/src/blocks/cms/faq.ts +70 -0
  48. package/src/blocks/cms/feature-grid.ts +80 -0
  49. package/src/blocks/cms/fixtures.ts +599 -0
  50. package/src/blocks/cms/hero-carousel.ts +80 -0
  51. package/src/blocks/cms/hero.ts +77 -0
  52. package/src/blocks/cms/highlight-cards.ts +76 -0
  53. package/src/blocks/cms/images.ts +38 -0
  54. package/src/blocks/cms/index.ts +87 -0
  55. package/src/blocks/cms/location-hours.ts +149 -0
  56. package/src/blocks/cms/logo-cloud.ts +62 -0
  57. package/src/blocks/cms/media-text.ts +44 -0
  58. package/src/blocks/cms/page-header.ts +49 -0
  59. package/src/blocks/cms/pages.ts +81 -0
  60. package/src/blocks/cms/prose-section.ts +45 -0
  61. package/src/blocks/cms/reviews.ts +101 -0
  62. package/src/blocks/cms/shared.ts +115 -0
  63. package/src/blocks/cms/stats-band.ts +61 -0
  64. package/src/blocks/cms/steps.ts +67 -0
  65. package/src/blocks/cms/testimonials.ts +80 -0
  66. package/src/blocks/cms/topbar.ts +64 -0
  67. package/src/blocks/cms/types.ts +63 -0
  68. package/src/blocks/consent.ts +14 -0
  69. package/src/blocks/icons.ts +47 -0
  70. package/src/blocks/index.ts +42 -0
  71. package/src/blocks/internal/Actions.astro +29 -0
  72. package/src/blocks/internal/BlockHeader.astro +45 -0
  73. package/src/blocks/internal/BlockShell.astro +58 -0
  74. package/src/blocks/internal/CarouselScript.astro +7 -0
  75. package/src/blocks/internal/ConsentEmbedScript.astro +7 -0
  76. package/src/blocks/internal/ConsentManagerScript.astro +7 -0
  77. package/src/blocks/internal/HoursScript.astro +7 -0
  78. package/src/blocks/internal/Placeholder.astro +13 -0
  79. package/src/blocks/internal/RichTextNode.astro +133 -0
  80. package/src/blocks/internal/StandaloneDocument.astro +53 -0
  81. package/src/blocks/internal/tina.ts +19 -0
  82. package/src/blocks/internal/util.ts +23 -0
  83. package/src/blocks/lib/consent.ts +96 -0
  84. package/src/blocks/lib/contact.ts +86 -0
  85. package/src/blocks/lib/error-pages.ts +119 -0
  86. package/src/blocks/lib/faq.ts +37 -0
  87. package/src/blocks/lib/hours.ts +201 -0
  88. package/src/blocks/lib/maintenance.ts +129 -0
  89. package/src/blocks/lib/reviews.ts +22 -0
  90. package/src/blocks/lib/rich-text.ts +143 -0
  91. package/src/blocks/lib/slug.ts +12 -0
  92. package/src/blocks/registry.ts +79 -0
  93. package/src/blocks/scripts/carousel.ts +218 -0
  94. package/src/blocks/scripts/consent-embed.ts +105 -0
  95. package/src/blocks/scripts/consent-manager.ts +112 -0
  96. package/src/blocks/scripts/consent-store.ts +86 -0
  97. package/src/blocks/scripts/error-page.ts +71 -0
  98. package/src/blocks/scripts/hours.ts +106 -0
  99. package/src/blocks/scripts/maintenance.ts +109 -0
  100. package/src/blocks/styles/blocks.css +1320 -0
  101. package/src/blocks/styles/consent.css +102 -0
  102. package/src/blocks/styles/faq.css +28 -0
  103. package/src/blocks/styles/location.css +92 -0
  104. package/src/blocks/styles/prose-section.css +13 -0
  105. package/src/blocks/styles/quotes.css +123 -0
  106. package/src/blocks/styles/rich-text.css +14 -0
  107. package/src/blocks/types.ts +283 -0
  108. package/src/data/ChartAxis.astro +19 -0
  109. package/src/data/ChartContainer.astro +151 -0
  110. package/src/data/ChartLegend.astro +25 -0
  111. package/src/data/ChartSeries.astro +14 -0
  112. package/src/data/ChartTable.astro +17 -0
  113. package/src/data/ChartTooltip.astro +20 -0
  114. package/src/data/Sparkline.astro +55 -0
  115. package/src/data/cms.ts +190 -0
  116. package/src/data/index.ts +10 -0
  117. package/src/data/lib/chart.ts +450 -0
  118. package/src/data/lib/render.ts +219 -0
  119. package/src/data/lib/scale.ts +107 -0
  120. package/src/data/lib/sparkline.ts +117 -0
  121. package/src/data/scripts/chart.ts +324 -0
  122. package/src/data/styles/chart.css +392 -0
  123. package/src/motion/Marquee.astro +90 -0
  124. package/src/motion/MotionProvider.astro +50 -0
  125. package/src/motion/PageTransitions.astro +61 -0
  126. package/src/motion/Parallax.astro +44 -0
  127. package/src/motion/ParallaxLayer.astro +31 -0
  128. package/src/motion/RevealOnScroll.astro +59 -0
  129. package/src/motion/SceneRegistry.astro +38 -0
  130. package/src/motion/ScrollScene.astro +81 -0
  131. package/src/motion/index.ts +12 -0
  132. package/src/motion/integration.ts +48 -0
  133. package/src/motion/runtime/page-transitions.ts +68 -0
  134. package/src/motion/runtime/runtime.ts +180 -0
  135. package/src/motion/runtime/scenes.ts +248 -0
  136. package/src/motion/runtime/types.ts +103 -0
  137. package/src/motion/styles/motion.css +332 -0
  138. package/src/motion/transitions.ts +74 -0
  139. package/src/motion/virtual.d.ts +4 -0
  140. package/src/primitives/Accordion.astro +129 -0
  141. package/src/primitives/Breadcrumbs.astro +50 -0
  142. package/src/primitives/BulletList.astro +69 -0
  143. package/src/primitives/Button.astro +73 -0
  144. package/src/primitives/ButtonGroup.astro +54 -0
  145. package/src/primitives/Callout.astro +137 -0
  146. package/src/primitives/Caption.astro +35 -0
  147. package/src/primitives/Card.astro +72 -0
  148. package/src/primitives/CardContent.astro +24 -0
  149. package/src/primitives/CardFooter.astro +36 -0
  150. package/src/primitives/CardHeader.astro +86 -0
  151. package/src/primitives/Checkbox.astro +38 -0
  152. package/src/primitives/ChoiceGroup.astro +23 -0
  153. package/src/primitives/Cluster.astro +49 -0
  154. package/src/primitives/Container.astro +44 -0
  155. package/src/primitives/DescriptionList.astro +83 -0
  156. package/src/primitives/Dialog.astro +38 -0
  157. package/src/primitives/Disclosure.astro +67 -0
  158. package/src/primitives/Divider.astro +93 -0
  159. package/src/primitives/Drawer.astro +33 -0
  160. package/src/primitives/Fieldset.astro +80 -0
  161. package/src/primitives/Flex.astro +64 -0
  162. package/src/primitives/FocusRing.astro +63 -0
  163. package/src/primitives/FocusTrap.astro +64 -0
  164. package/src/primitives/Footer.astro +155 -0
  165. package/src/primitives/Form.astro +68 -0
  166. package/src/primitives/FormDescription.astro +26 -0
  167. package/src/primitives/FormError.astro +106 -0
  168. package/src/primitives/FormField.astro +72 -0
  169. package/src/primitives/Grid.astro +64 -0
  170. package/src/primitives/Heading.astro +45 -0
  171. package/src/primitives/IconButton.astro +48 -0
  172. package/src/primitives/Image.astro +125 -0
  173. package/src/primitives/Input.astro +84 -0
  174. package/src/primitives/Label.astro +50 -0
  175. package/src/primitives/Link.astro +81 -0
  176. package/src/primitives/LinkButton.astro +66 -0
  177. package/src/primitives/List.astro +39 -0
  178. package/src/primitives/ListItem.astro +178 -0
  179. package/src/primitives/MediaObject.astro +66 -0
  180. package/src/primitives/MetricCard.astro +276 -0
  181. package/src/primitives/NavLink.astro +81 -0
  182. package/src/primitives/NavMenu.astro +109 -0
  183. package/src/primitives/Navbar.astro +197 -0
  184. package/src/primitives/Panel.astro +153 -0
  185. package/src/primitives/Picture.astro +167 -0
  186. package/src/primitives/Popover.astro +95 -0
  187. package/src/primitives/Prose.astro +45 -0
  188. package/src/primitives/Radio.astro +21 -0
  189. package/src/primitives/Rating.astro +135 -0
  190. package/src/primitives/ReducedMotion.astro +90 -0
  191. package/src/primitives/SegmentedControl.astro +132 -0
  192. package/src/primitives/Select.astro +107 -0
  193. package/src/primitives/Sheet.astro +45 -0
  194. package/src/primitives/SkipLink.astro +31 -0
  195. package/src/primitives/Slider.astro +186 -0
  196. package/src/primitives/Spacer.astro +35 -0
  197. package/src/primitives/Stack.astro +51 -0
  198. package/src/primitives/Surface.astro +70 -0
  199. package/src/primitives/Switch.astro +22 -0
  200. package/src/primitives/Table.astro +382 -0
  201. package/src/primitives/Tabs.astro +126 -0
  202. package/src/primitives/Text.astro +56 -0
  203. package/src/primitives/Textarea.astro +73 -0
  204. package/src/primitives/Thumbnail.astro +154 -0
  205. package/src/primitives/Toggle.astro +99 -0
  206. package/src/primitives/Tooltip.astro +50 -0
  207. package/src/primitives/VisuallyHidden.astro +29 -0
  208. package/src/primitives/index.ts +103 -0
  209. package/src/primitives/internal/AccordionScript.astro +7 -0
  210. package/src/primitives/internal/ChoiceField.astro +89 -0
  211. package/src/primitives/internal/FocusTrapScript.astro +8 -0
  212. package/src/primitives/internal/FormValidationScript.astro +10 -0
  213. package/src/primitives/internal/IndeterminateScript.astro +13 -0
  214. package/src/primitives/internal/ModalPanel.astro +114 -0
  215. package/src/primitives/internal/OverlayScript.astro +7 -0
  216. package/src/primitives/internal/ReducedMotionScript.astro +7 -0
  217. package/src/primitives/internal/SliderScript.astro +7 -0
  218. package/src/primitives/internal/SparklineScript.astro +7 -0
  219. package/src/primitives/internal/TableSortScript.astro +7 -0
  220. package/src/primitives/internal/TabsScript.astro +7 -0
  221. package/src/primitives/internal/TooltipScript.astro +7 -0
  222. package/src/primitives/lib/deprecate.ts +47 -0
  223. package/src/primitives/lib/focus-trap.ts +197 -0
  224. package/src/primitives/lib/focus.ts +60 -0
  225. package/src/primitives/lib/image-plan.ts +82 -0
  226. package/src/primitives/lib/image.ts +129 -0
  227. package/src/primitives/lib/motion.ts +68 -0
  228. package/src/primitives/lib/slider.ts +170 -0
  229. package/src/primitives/scripts/accordion.ts +123 -0
  230. package/src/primitives/scripts/form-validation.ts +225 -0
  231. package/src/primitives/scripts/overlay.ts +71 -0
  232. package/src/primitives/scripts/reduced-motion.ts +59 -0
  233. package/src/primitives/scripts/slider.ts +150 -0
  234. package/src/primitives/scripts/sparkline.ts +131 -0
  235. package/src/primitives/scripts/table-sort.ts +68 -0
  236. package/src/primitives/scripts/tabs.ts +151 -0
  237. package/src/primitives/scripts/tooltip.ts +28 -0
  238. package/src/primitives/styles/a11y.css +104 -0
  239. package/src/primitives/styles/accordion.css +53 -0
  240. package/src/primitives/styles/breadcrumbs.css +59 -0
  241. package/src/primitives/styles/bullet-list.css +89 -0
  242. package/src/primitives/styles/button.css +237 -0
  243. package/src/primitives/styles/choice.css +164 -0
  244. package/src/primitives/styles/cluster.css +24 -0
  245. package/src/primitives/styles/container.css +19 -0
  246. package/src/primitives/styles/data.css +849 -0
  247. package/src/primitives/styles/disclosure.css +140 -0
  248. package/src/primitives/styles/divider.css +50 -0
  249. package/src/primitives/styles/flex.css +42 -0
  250. package/src/primitives/styles/form.css +241 -0
  251. package/src/primitives/styles/grid.css +36 -0
  252. package/src/primitives/styles/media.css +247 -0
  253. package/src/primitives/styles/nav.css +792 -0
  254. package/src/primitives/styles/overlay.css +362 -0
  255. package/src/primitives/styles/prose.css +146 -0
  256. package/src/primitives/styles/scale.css +175 -0
  257. package/src/primitives/styles/segmented.css +165 -0
  258. package/src/primitives/styles/slider.css +170 -0
  259. package/src/primitives/styles/spacer.css +17 -0
  260. package/src/primitives/styles/stack.css +25 -0
  261. package/src/primitives/styles/surface.css +403 -0
  262. package/src/primitives/styles/tabs.css +223 -0
  263. package/src/primitives/styles/typography.css +144 -0
  264. package/src/primitives/styles/utilities.css +24 -0
  265. package/src/primitives/types.ts +385 -0
  266. package/src/primitives/utils.ts +254 -0
  267. package/src/seo/JSONLD.astro +35 -0
  268. package/src/seo/SEOHead.astro +47 -0
  269. package/src/seo/cms.ts +80 -0
  270. package/src/seo/index.ts +10 -0
  271. package/src/seo/integration.ts +231 -0
  272. package/src/seo/lib/jsonld.ts +334 -0
  273. package/src/seo/lib/meta.ts +205 -0
  274. package/src/seo/lib/redirects.ts +283 -0
  275. package/src/seo/lib/robots.ts +33 -0
  276. package/src/seo/lib/rss.ts +98 -0
  277. package/src/seo/lib/sitemap.ts +105 -0
  278. package/src/seo/lib/url.ts +68 -0
  279. package/src/tokens/base.css +71 -0
  280. package/src/tokens/tokens.css +210 -0
@@ -0,0 +1,117 @@
1
+ ---
2
+ /**
3
+ * StatsBand: a few headline figures in a band ("100 Lighthouse score · 24-hour support ·
4
+ * 60 years of experience · 15 counties served"), optionally over a photo under a color wash.
5
+ *
6
+ * - The figures are real text in a `<dl>` (label = term, value = description; the value is shown
7
+ * above its label). Never count up from 0 with JavaScript: crawlers, screenshots, no-JS and
8
+ * reduced-motion visitors would read zeros.
9
+ * - A strong surface in `tone` (default `accent`): text, icons and focus rings recolor themselves.
10
+ * With `image`, the photo sits under that color at 88% (`--sinn-stats-wash` changes it); keep it
11
+ * high, since text contrast over a photo can't be measured.
12
+ * - No visible heading by default: pass `label` to name the section for screen readers, or
13
+ * `heading` to show one (then `headingLevel`).
14
+ * - 2 to 6 items; they wrap to as many columns as fit (each at least 11rem).
15
+ * - Placeholder: no item with a value and label → dashed placeholder in dev/CMS preview.
16
+ *
17
+ * Use it for marketing figures. For dashboard metrics with deltas and formats, use MetricCard.
18
+ *
19
+ * @example
20
+ * <StatsBand label="At a glance" image={{ src: band, alt: '' }} items={[
21
+ * { value: '24', label: 'Hours a day' }, { value: '15', label: 'Counties served' },
22
+ * ]} />
23
+ */
24
+ import Container from '../primitives/Container.astro';
25
+ import Heading from '../primitives/Heading.astro';
26
+ import Image from '../primitives/Image.astro';
27
+ import type { HTMLAttributes } from 'astro/types';
28
+ import type { BlockProps, HeadingLevelNumber, ImageSource, StatItem } from './types';
29
+ import Placeholder from './internal/Placeholder.astro';
30
+ import { blockIcons } from './icons';
31
+ import { blockIds, PLACEHOLDER_DEFAULT } from './internal/util';
32
+ import { tf, tinaField } from './internal/tina';
33
+ import './styles/blocks.css';
34
+
35
+ type Props = Omit<HTMLAttributes<'section'>, 'title'> &
36
+ Omit<BlockProps, 'background'> & {
37
+ items?: StatItem[];
38
+ /** Optional visible heading. */
39
+ heading?: string;
40
+ headingLevel?: HeadingLevelNumber;
41
+ /** Accessible name when there's no visible heading ("At a glance"). */
42
+ label?: string;
43
+ /** Background photo (decorative; alt is ignored). */
44
+ image?: ImageSource;
45
+ /** Icon set for `items[].icon`. */
46
+ icons?: Record<string, string>;
47
+ };
48
+
49
+ const {
50
+ items = [],
51
+ heading,
52
+ headingLevel = 2,
53
+ label,
54
+ image,
55
+ icons = blockIcons as Record<string, string>,
56
+ tone = 'accent',
57
+ align = 'center',
58
+ anchor,
59
+ spacing = 'xl',
60
+ scheme,
61
+ containerSize = 'default',
62
+ placeholder = PLACEHOLDER_DEFAULT,
63
+ tina,
64
+ id,
65
+ class: className,
66
+ ...rest
67
+ } = Astro.props;
68
+
69
+ const stats = (items ?? []).filter((s) => s && String(s.value ?? '').trim() && String(s.label ?? '').trim()).slice(0, 6);
70
+ const { sectionId, headingId } = blockIds('stats', anchor, id);
71
+ const hasHeading = Boolean(heading?.trim());
72
+ ---
73
+
74
+ {
75
+ stats.length === 0 ? (
76
+ placeholder && <Placeholder label="Stats band" hint="Add at least one figure with a value and a label." tinaField={tinaField(tina, 'items')} />
77
+ ) : (
78
+ <section
79
+ id={sectionId}
80
+ class:list={['sinn-block', 'sinn-stats', className]}
81
+ aria-labelledby={hasHeading ? headingId : undefined}
82
+ aria-label={!hasHeading && label ? label : undefined}
83
+ data-surface="strong"
84
+ data-tone={tone}
85
+ data-spacing={spacing === 'l' ? undefined : spacing}
86
+ data-scheme={scheme}
87
+ data-align={align === 'center' ? 'center' : undefined}
88
+ data-has-image={image ? '' : undefined}
89
+ {...tf(tina)}
90
+ {...rest}
91
+ >
92
+ {image && (
93
+ <div class="sinn-stats__bg" aria-hidden="true" {...tf(tina, 'image')}>
94
+ <Image src={image.src} alt="" width={image.width} height={image.height} layout="full" sizes="100vw" placeholder={false} />
95
+ </div>
96
+ )}
97
+ <Container size={containerSize} class="sinn-block__container" query={false}>
98
+ {hasHeading && (
99
+ <Heading level={headingLevel} size="2xl" weight="bold" id={headingId} class="sinn-stats__title" {...tf(tina, 'heading')}>
100
+ {heading}
101
+ </Heading>
102
+ )}
103
+ <dl class="sinn-stats__list" data-count={stats.length} {...tf(tina, 'items')}>
104
+ {stats.map((s, i) => (
105
+ <div class="sinn-stats__item" {...tf(tina, 'items', i)}>
106
+ <dt class="sinn-stats__label" {...tf(s.tina, 'label')}>{s.label}</dt>
107
+ <dd class="sinn-stats__value">
108
+ {s.icon && icons[s.icon] && <span class="sinn-stats__icon" aria-hidden="true" set:html={icons[s.icon]} />}
109
+ <span {...tf(s.tina, 'value')}>{s.value}</span>
110
+ </dd>
111
+ </div>
112
+ ))}
113
+ </dl>
114
+ </Container>
115
+ </section>
116
+ )
117
+ }
@@ -0,0 +1,141 @@
1
+ ---
2
+ /**
3
+ * Steps — a short process in order: "Discovery call → Sign the brief → Kickoff workshop".
4
+ *
5
+ * - Semantic `<ol>`: the order is real, so screen readers announce "1 of 3". The visible number
6
+ * or icon badge is `aria-hidden`, so the position isn't read twice.
7
+ * - `marker`: `number` (default), `icon` (the item's icon, falling back to its number) or `none`.
8
+ * - `layout`: `row` (side by side when there's room, joined by a connector line; stacks below
9
+ * ~44rem) or `list` (always vertical, with a line down the markers: good for 4+ steps or
10
+ * longer text).
11
+ * - `variant`: `plain` or `cards` (bordered surfaces).
12
+ * - Step titles are one level below the section heading (`itemTitleLevel` overrides).
13
+ * - Placeholder: no steps → dashed placeholder in dev/CMS preview, nothing in builds.
14
+ *
15
+ * @example
16
+ * <Steps heading="Admissions process" marker="icon" items={[
17
+ * { title: 'Discovery call', description: 'We talk through your goals.', icon: 'users' },
18
+ * { title: 'Sign the brief', description: 'A fixed scope and price.', icon: 'file' },
19
+ * { title: 'Kickoff workshop', description: 'Your developer plans the site with you.', icon: 'home' },
20
+ * ]} />
21
+ */
22
+ import Heading from '../primitives/Heading.astro';
23
+ import Text from '../primitives/Text.astro';
24
+ import type { HTMLAttributes } from 'astro/types';
25
+ import type { BlockProps, HeadingLevelNumber, StepItem } from './types';
26
+ import BlockShell from './internal/BlockShell.astro';
27
+ import BlockHeader from './internal/BlockHeader.astro';
28
+ import Placeholder from './internal/Placeholder.astro';
29
+ import { blockIcons } from './icons';
30
+ import { blockIds, PLACEHOLDER_DEFAULT } from './internal/util';
31
+ import { tf, tinaField } from './internal/tina';
32
+ import { renameProp, renameValue } from '../primitives/lib/deprecate';
33
+
34
+ type Props = Omit<HTMLAttributes<'section'>, 'title'> &
35
+ BlockProps & {
36
+ eyebrow?: string;
37
+ heading?: string;
38
+ description?: string;
39
+ headingLevel?: HeadingLevelNumber;
40
+ /** Heading level of each item's title. Default: one below the section heading. */
41
+ itemTitleLevel?: HeadingLevelNumber;
42
+ /** @deprecated Use `itemTitleLevel` (item text is `title`, so its level is `itemTitleLevel`). */
43
+ itemHeadingLevel?: HeadingLevelNumber;
44
+ items?: StepItem[];
45
+ marker?: 'number' | 'icon' | 'none';
46
+ layout?: 'row' | 'list';
47
+ /** Item treatment: `plain` or `card` (each step boxed). `cards` is the deprecated spelling. */
48
+ variant?: 'plain' | 'card' | 'cards';
49
+ /** Icon set: name → trusted SVG markup. Defaults to the built-in `blockIcons`. */
50
+ icons?: Record<string, string>;
51
+ /** Number the steps from this value (a process split across two sections). */
52
+ start?: number;
53
+ };
54
+
55
+ const {
56
+ eyebrow,
57
+ heading,
58
+ description,
59
+ headingLevel = 2,
60
+ itemTitleLevel: itemTitleLevelProp,
61
+ itemHeadingLevel,
62
+ items = [],
63
+ marker = 'number',
64
+ layout = 'row',
65
+ variant: variantProp = 'plain',
66
+ icons = blockIcons as Record<string, string>,
67
+ start = 1,
68
+ align = 'start',
69
+ anchor,
70
+ spacing = 'l',
71
+ background = 'none',
72
+ tone = 'accent',
73
+ scheme,
74
+ containerSize = 'default',
75
+ placeholder = PLACEHOLDER_DEFAULT,
76
+ tina,
77
+ id,
78
+ class: className,
79
+ ...rest
80
+ } = Astro.props;
81
+ const variant = renameValue('Steps', 'variant', variantProp, { cards: 'card' });
82
+
83
+ const steps = (items ?? []).filter((s) => s && String(s.title ?? '').trim());
84
+ const { sectionId, headingId } = blockIds('steps', anchor, id);
85
+ const itemTitleLevel = renameProp('Steps', 'itemTitleLevel', itemTitleLevelProp, 'itemHeadingLevel', itemHeadingLevel);
86
+ const itemLevel = (itemTitleLevel ?? (heading ? Math.min(6, headingLevel + 1) : 3)) as HeadingLevelNumber;
87
+ const iconFor = (name?: string) => {
88
+ if (!name) return undefined;
89
+ const svg = icons[name];
90
+ if (!svg && import.meta.env?.DEV) console.warn(`[Steps] Unknown icon "${name}".`);
91
+ return svg;
92
+ };
93
+ ---
94
+
95
+ {
96
+ steps.length === 0 ? (
97
+ placeholder && <Placeholder label="Steps" hint="Add at least one step." tinaField={tinaField(tina, 'items')} />
98
+ ) : (
99
+ <BlockShell
100
+ name="steps"
101
+ id={sectionId}
102
+ class={className}
103
+ spacing={spacing}
104
+ background={background}
105
+ tone={tone}
106
+ scheme={scheme}
107
+ containerSize={containerSize}
108
+ labelledby={heading ? headingId : undefined}
109
+ align={align}
110
+ data-layout={layout}
111
+ data-marker={marker}
112
+ data-variant={variant === 'card' ? 'card' : undefined}
113
+ data-count={steps.length}
114
+ {...tf(tina)}
115
+ {...rest}
116
+ >
117
+ <BlockHeader eyebrow={eyebrow} heading={heading} headingId={headingId} headingLevel={headingLevel} description={description} tina={tina} />
118
+ <ol class="sinn-steps__list" role="list" start={start !== 1 ? start : undefined} {...tf(tina, 'items')}>
119
+ {steps.map((step, i) => {
120
+ const svg = marker === 'icon' ? iconFor(step.icon) : undefined;
121
+ return (
122
+ <li class="sinn-step" {...tf(tina, 'items', i)}>
123
+ {marker !== 'none' && (
124
+ <span class="sinn-step__marker" aria-hidden="true" data-icon={svg ? '' : undefined}>
125
+ {svg ? <Fragment set:html={svg} /> : start + i}
126
+ </span>
127
+ )}
128
+ <div class="sinn-step__body">
129
+ <Heading level={itemLevel} size="l" weight="semibold" class="sinn-step__title" {...tf(step.tina, 'title')}>
130
+ {step.title}
131
+ </Heading>
132
+ {step.description && <Text tone="muted" class="sinn-step__description" {...tf(step.tina, 'description')}>{step.description}</Text>}
133
+ </div>
134
+ </li>
135
+ );
136
+ })}
137
+ </ol>
138
+ {Astro.slots.has('footer') && <div class="sinn-block__footer"><slot name="footer" /></div>}
139
+ </BlockShell>
140
+ )
141
+ }
@@ -0,0 +1,144 @@
1
+ ---
2
+ /**
3
+ * Testimonials: what clients say about working with you, each as a quote with a name, a role
4
+ * and an optional portrait, rating and source.
5
+ *
6
+ * - Real quotes only, used with the person's permission and not reworded. Paraphrased or invented
7
+ * testimonials mislead visitors and break consumer-protection rules (e.g. the FTC's rule on
8
+ * fake reviews and testimonials).
9
+ * - Each quote is a `<figure>`: the words in a `<blockquote>`, the person in the `<figcaption>`.
10
+ * The portrait is decorative (the name is right beside it), and the opening quote mark is
11
+ * hidden from screen readers.
12
+ * - `layout="single"` shows one large quote; `grid` (default) lays out several, as many
13
+ * columns as fit (at most `columns`), sharing a height per row.
14
+ * - No carousel: rotating quotes are easy to miss, and every quote stays readable and
15
+ * indexable this way.
16
+ * - Placeholder: no item with a quote and a name → dashed placeholder in dev/CMS preview.
17
+ *
18
+ * Star ratings from a review platform belong in Reviews, which shows the source and the date.
19
+ *
20
+ * @example
21
+ * <Testimonials heading="What clients say" items={[
22
+ * { quote: 'Our bookings doubled the month the new site went live.', name: 'Dana Ortiz', role: 'Owner', organization: 'Riverside Bakery' },
23
+ * ]} />
24
+ */
25
+ import Rating from '../primitives/Rating.astro';
26
+ import Thumbnail from '../primitives/Thumbnail.astro';
27
+ import VisuallyHidden from '../primitives/VisuallyHidden.astro';
28
+ import type { HTMLAttributes } from 'astro/types';
29
+ import type { ActionItem, BlockProps, HeadingLevel, TestimonialItem } from './types';
30
+ import BlockShell from './internal/BlockShell.astro';
31
+ import BlockHeader from './internal/BlockHeader.astro';
32
+ import Actions from './internal/Actions.astro';
33
+ import Placeholder from './internal/Placeholder.astro';
34
+ import { safeHref } from './lib/contact';
35
+ import { blockIds, PLACEHOLDER_DEFAULT } from './internal/util';
36
+ import { tf, tinaField } from './internal/tina';
37
+ import './styles/blocks.css';
38
+ import './styles/quotes.css';
39
+
40
+ type Props = Omit<HTMLAttributes<'section'>, 'title'> &
41
+ BlockProps & {
42
+ eyebrow?: string;
43
+ heading?: string;
44
+ description?: string;
45
+ headingLevel?: HeadingLevel;
46
+ items?: TestimonialItem[];
47
+ /** `grid` (several quotes) or `single` (one large quote: the first item). */
48
+ layout?: 'grid' | 'single';
49
+ /** `card` (each quote boxed, default) or `plain`. */
50
+ variant?: 'card' | 'plain';
51
+ /** Most columns in a row. */
52
+ columns?: 1 | 2 | 3;
53
+ actions?: ActionItem[];
54
+ /** Link text for a quote's source; `{source}` is replaced. Translate per site. */
55
+ labels?: { readOn?: string };
56
+ };
57
+
58
+ const {
59
+ eyebrow,
60
+ heading,
61
+ description,
62
+ headingLevel = 2,
63
+ items = [],
64
+ layout = 'grid',
65
+ variant = 'card',
66
+ columns = 3,
67
+ actions = [],
68
+ labels = {},
69
+ align = 'start',
70
+ anchor,
71
+ spacing = 'l',
72
+ background = 'none',
73
+ tone = 'accent',
74
+ scheme,
75
+ containerSize = 'default',
76
+ placeholder = PLACEHOLDER_DEFAULT,
77
+ tina,
78
+ id,
79
+ class: className,
80
+ ...rest
81
+ } = Astro.props;
82
+
83
+ const quotes = (items ?? []).filter((q) => q && String(q.quote ?? '').trim() && String(q.name ?? '').trim());
84
+ const shown = layout === 'single' ? quotes.slice(0, 1) : quotes;
85
+ const { sectionId, headingId } = blockIds('testimonials', anchor, id);
86
+ const hasHeading = Boolean(heading?.trim());
87
+ const readOn = (source: string) => (labels.readOn ?? 'Read on {source}').replace('{source}', source);
88
+ const roleLine = (q: TestimonialItem) => [q.role?.trim(), q.organization?.trim()].filter(Boolean).join(', ');
89
+ ---
90
+
91
+ {
92
+ shown.length === 0 ? (
93
+ placeholder && <Placeholder label="Testimonials" hint="Add at least one quote with the person's name." tinaField={tinaField(tina, 'items')} />
94
+ ) : (
95
+ <BlockShell
96
+ name="testimonials"
97
+ id={sectionId}
98
+ class={className}
99
+ spacing={spacing}
100
+ background={background}
101
+ tone={tone}
102
+ scheme={scheme}
103
+ containerSize={containerSize}
104
+ labelledby={hasHeading ? headingId : undefined}
105
+ align={layout === 'single' ? 'center' : align}
106
+ data-layout={layout}
107
+ data-variant={variant}
108
+ {...tf(tina)}
109
+ {...rest}
110
+ >
111
+ <BlockHeader eyebrow={eyebrow} heading={heading} headingId={headingId} headingLevel={headingLevel} description={description} tina={tina} />
112
+ <ul class="sinn-quotes" role="list" data-columns={layout === 'single' ? 1 : columns} {...tf(tina, 'items')}>
113
+ {shown.map((q, i) => {
114
+ const href = q.source?.href ? safeHref(q.source.href) : undefined;
115
+ const role = roleLine(q);
116
+ return (
117
+ <li class="sinn-quotes__item" {...tf(tina, 'items', i)}>
118
+ <figure class="sinn-quote">
119
+ <svg class="sinn-quote__mark" viewBox="0 0 32 24" aria-hidden="true" focusable="false"><path fill="currentColor" d="M0 24V14.4C0 6.6 4.3 1.6 12.2 0l1.2 3.3C9 4.6 6.7 7.6 6.5 11.2H12V24H0Zm19 0V14.4C19 6.6 23.3 1.6 31.2 0l1.2 3.3C28 4.6 25.7 7.6 25.5 11.2H31V24H19Z" /></svg>
120
+ {typeof q.rating === 'number' && q.rating > 0 && <Rating value={q.rating} size="s" showValue={false} class="sinn-quote__rating" />}
121
+ <blockquote class="sinn-quote__text" {...tf(q.tina, 'quote')}>
122
+ {q.quote.trim().split(/\n\s*\n/).map((p) => <p>{p.trim()}</p>)}
123
+ </blockquote>
124
+ <figcaption class="sinn-quote__person">
125
+ {q.image && <Thumbnail src={q.image.src} width={q.image.width} height={q.image.height} alt="" size={layout === 'single' ? 'm' : 's'} shape="circle" class="sinn-quote__avatar" {...tf(q.tina, 'image')} />}
126
+ <span class="sinn-quote__who">
127
+ <span class="sinn-quote__name" {...tf(q.tina, 'name')}>{q.name}</span>
128
+ {role && <span class="sinn-quote__role">{role}</span>}
129
+ {q.source?.label && (href ? (
130
+ <a class="sinn-quote__source sinn-link" href={href} rel={/^https?:/i.test(href) ? 'noopener' : undefined}>{readOn(q.source.label)}<VisuallyHidden>{` (${q.name})`}</VisuallyHidden></a>
131
+ ) : (
132
+ <span class="sinn-quote__source">{q.source.label}</span>
133
+ ))}
134
+ </span>
135
+ </figcaption>
136
+ </figure>
137
+ </li>
138
+ );
139
+ })}
140
+ </ul>
141
+ <Actions actions={actions} size="m" class="sinn-block__footer" tina={tina} />
142
+ </BlockShell>
143
+ )
144
+ }
@@ -0,0 +1,158 @@
1
+ ---
2
+ /**
3
+ * Topbar — the thin utility strip above the Navbar: address, click-to-call phone, email, social
4
+ * links, or a short message ("Now booking new projects").
5
+ *
6
+ * Site chrome, not a page section: put it in the layout before <Navbar> (after <SkipLink>). Its
7
+ * content usually comes from site settings (`topbarField` / `topbarProps` in `@sinnstack/ui/blocks/cms`).
8
+ * It's a named region landmark (`label`, default "Contact information"), so its content isn't
9
+ * left outside every landmark.
10
+ *
11
+ * - `items`: the same contact items as ContactCard (phone → tel:, email → mailto:, fax and address
12
+ * as text). Shown inline with icons; labels are visually hidden (screen readers still hear
13
+ * "Phone: (888) 450-2884").
14
+ * - `links`: secondary links on the end side (social profiles, "Careers", "Pay a bill"). Plain text
15
+ * links; for social profiles say the network in the label ("Facebook"). Add `icon: 'facebook'`
16
+ * (any key of `icons`) to show just the icon; the label stays as its accessible name.
17
+ * - `message`: one short line at the start.
18
+ * - Narrow screens: phone items stay, the rest hide below `collapse` (default 48rem of viewport),
19
+ * so the bar never wraps into several lines on a phone. `collapse="never"` keeps everything.
20
+ * - `background` + `tone`, the same words the section blocks use: `strong` (solid strip, default),
21
+ * `tinted` (soft fill of the tone) or `subtle` (light gray, no tone). `tone`: `neutral` (dark strip,
22
+ * default) or `accent` (brand color). Strong strips recolor links and the focus ring for contrast.
23
+ * `tone="subtle"` is the deprecated spelling of `background="subtle"`.
24
+ * - Renders nothing when there are no items, links or message.
25
+ *
26
+ * @example
27
+ * <SkipLink />
28
+ * <Topbar items={[
29
+ * { type: 'address', value: '560 N Kimball Ave #140, Southlake, TX 76092' },
30
+ * { type: 'phone', value: '(888) 450-2884' },
31
+ * { type: 'email', value: 'info@example.com' },
32
+ * ]} links={[{ label: 'Facebook', href: 'https://facebook.com/example', newTab: true }]} />
33
+ * <Navbar … />
34
+ */
35
+ import Container from '../primitives/Container.astro';
36
+ import VisuallyHidden from '../primitives/VisuallyHidden.astro';
37
+ import type { HTMLAttributes } from 'astro/types';
38
+ import type { ContactItem } from './types';
39
+ import { blockIcons } from './icons';
40
+ import { contactDefaults, contactHref, lines, safeHref } from './lib/contact';
41
+ import './styles/blocks.css';
42
+ import { warnOnce } from '../primitives/lib/deprecate';
43
+
44
+ /** `icon`: a key of `icons` (e.g. 'facebook'); the link then shows only the icon and its label is visually hidden. */
45
+ type TopbarLink = { label: string; href: string; newTab?: boolean; icon?: string };
46
+
47
+ type Props = HTMLAttributes<'section'> & {
48
+ items?: ContactItem[];
49
+ links?: TopbarLink[];
50
+ message?: string;
51
+ /** Accessible name of the strip (a region landmark). */
52
+ label?: string;
53
+ /** Accessible name of the links nav. */
54
+ linksLabel?: string;
55
+ /** Strip fill: `strong` (default), `tinted` or `subtle`. */
56
+ background?: 'strong' | 'tinted' | 'subtle';
57
+ /** Colour family for `strong` / `tinted`. `subtle` is deprecated here: use `background="subtle"`. */
58
+ tone?: 'neutral' | 'accent' | 'subtle';
59
+ /** Below this viewport width only phone items stay visible. */
60
+ collapse?: 's' | 'm' | 'l' | 'never';
61
+ containerSize?: 'narrow' | 'default' | 'wide' | 'full';
62
+ countryCode?: string;
63
+ icons?: Record<string, string>;
64
+ newTabLabel?: string;
65
+ };
66
+
67
+ const {
68
+ items = [],
69
+ links = [],
70
+ message,
71
+ label = 'Contact information',
72
+ linksLabel = 'Social and quick links',
73
+ background: backgroundProp,
74
+ tone: toneProp = 'neutral',
75
+ collapse = 'm',
76
+ containerSize = 'default',
77
+ countryCode = '1',
78
+ icons = blockIcons as Record<string, string>,
79
+ newTabLabel = 'opens in a new tab',
80
+ class: className,
81
+ ...rest
82
+ } = Astro.props;
83
+
84
+ const entries = (items ?? [])
85
+ .filter((item) => item && contactDefaults[item.type] && String(item.value ?? '').trim())
86
+ .map((item) => ({
87
+ item,
88
+ label: item.label ?? contactDefaults[item.type].label,
89
+ icon: icons[item.icon ?? contactDefaults[item.type].icon],
90
+ href: contactHref(item, countryCode),
91
+ text: lines(item.value).join(', '),
92
+ }));
93
+ const quickLinks = (links ?? [])
94
+ .map((l) => ({ ...l, href: safeHref(l?.href) }))
95
+ .filter((l) => l.href && String(l.label ?? '').trim());
96
+ const text = message?.trim();
97
+ // tone="subtle" mixed a strength into the colour prop; it is background="subtle" now.
98
+ if (toneProp === 'subtle') warnOnce('Topbar', 'tone="subtle" is deprecated; use background="subtle".');
99
+ const background = toneProp === 'subtle' ? 'subtle' : (backgroundProp ?? 'strong');
100
+ const tone = toneProp === 'subtle' ? 'neutral' : toneProp;
101
+ const surface = background === 'subtle' ? undefined : background;
102
+ ---
103
+
104
+ {
105
+ (entries.length > 0 || quickLinks.length > 0 || text) && (
106
+ <section
107
+ class:list={['sinn-topbar', className]}
108
+ aria-label={label}
109
+ data-surface={surface}
110
+ data-tone={surface ? tone : undefined}
111
+ data-subtle={background === 'subtle' ? '' : undefined}
112
+ data-collapse={collapse === 'never' ? undefined : collapse}
113
+ {...rest}
114
+ >
115
+ <Container size={containerSize} class="sinn-topbar__inner" query={false}>
116
+ {text && <p class="sinn-topbar__message">{text}</p>}
117
+ {entries.length > 0 && (
118
+ <ul class="sinn-topbar__items" role="list">
119
+ {entries.map(({ item, label: itemLabel, icon, href, text: value }) => (
120
+ <li class="sinn-topbar__item" data-type={item.type}>
121
+ {icon && <span class="sinn-topbar__icon" set:html={icon} />}
122
+ {itemLabel && <VisuallyHidden>{itemLabel}: </VisuallyHidden>}
123
+ {item.type === 'address' ? (
124
+ <address class="sinn-topbar__value">{value}</address>
125
+ ) : href ? (
126
+ <a class="sinn-topbar__value sinn-topbar__link" href={href}>{value}</a>
127
+ ) : (
128
+ <span class="sinn-topbar__value">{value}</span>
129
+ )}
130
+ </li>
131
+ ))}
132
+ </ul>
133
+ )}
134
+ {quickLinks.length > 0 && (
135
+ <nav class="sinn-topbar__links" aria-label={linksLabel}>
136
+ <ul role="list">
137
+ {quickLinks.map((l) => (
138
+ <li>
139
+ {l.icon && icons[l.icon] ? (
140
+ <a class="sinn-topbar__link" data-icon-only href={l.href} target={l.newTab ? '_blank' : undefined} rel={l.newTab ? 'noopener noreferrer' : undefined}>
141
+ <span class="sinn-topbar__icon" set:html={icons[l.icon]} />
142
+ <VisuallyHidden>{l.label}{l.newTab && ` (${newTabLabel})`}</VisuallyHidden>
143
+ </a>
144
+ ) : (
145
+ <a class="sinn-topbar__link" href={l.href} target={l.newTab ? '_blank' : undefined} rel={l.newTab ? 'noopener noreferrer' : undefined}>
146
+ {l.label}
147
+ {l.newTab && <VisuallyHidden> ({newTabLabel})</VisuallyHidden>}
148
+ </a>
149
+ )}
150
+ </li>
151
+ ))}
152
+ </ul>
153
+ </nav>
154
+ )}
155
+ </Container>
156
+ </section>
157
+ )
158
+ }
@@ -0,0 +1,80 @@
1
+ import type { CardGridData } from './data';
2
+ import type { MapContext, TinaTemplate } from './types';
3
+ import { clean, compact, longTextField, mapImage, mapSettings, settingsField, textField, upgrade } from './shared';
4
+
5
+ export const cardGridDefaults: CardGridData = {
6
+ _template: 'cardGrid',
7
+ heading: 'Latest',
8
+ variant: 'outline',
9
+ layout: 'grid',
10
+ items: [
11
+ { title: 'First card', description: 'A short summary.', href: '/' },
12
+ { title: 'Second card', description: 'A short summary.', href: '/' },
13
+ { title: 'Third card', description: 'A short summary.', href: '/' },
14
+ ],
15
+ };
16
+
17
+ export const cardGridTemplate: TinaTemplate = {
18
+ name: 'cardGrid',
19
+ label: 'Card grid',
20
+ ui: { defaultItem: cardGridDefaults, itemProps: (item: CardGridData) => ({ label: `Cards: ${item?.heading ?? ''}` }) },
21
+ fields: [
22
+ textField('eyebrow', 'Eyebrow'),
23
+ textField('heading', 'Heading'),
24
+ longTextField('description', 'Intro text'),
25
+ {
26
+ type: 'object',
27
+ name: 'items',
28
+ label: 'Cards',
29
+ list: true,
30
+ ui: { itemProps: (item: { title?: string }) => ({ label: item?.title || 'Card' }), defaultItem: { title: 'New card' } },
31
+ fields: [
32
+ textField('title', 'Title', { required: true }),
33
+ longTextField('description', 'Summary'),
34
+ textField('href', 'Link'),
35
+ { type: 'image', name: 'image', label: 'Image' },
36
+ textField('imageAlt', 'Image description (alt text)', { description: 'Leave empty if the image only decorates the card.' }),
37
+ textField('eyebrow', 'Label above the title'),
38
+ textField('meta', 'Detail line', { description: 'A date, read time or author.' }),
39
+ ],
40
+ },
41
+ { type: 'string', name: 'layout', label: 'Layout', options: [{ value: 'grid', label: 'Grid' }, { value: 'list', label: 'List' }] },
42
+ { type: 'boolean', name: 'featured', label: 'Feature the first card' },
43
+ { type: 'string', name: 'variant', label: 'Card style', options: [{ value: 'outline', label: 'Outline' }, { value: 'elevated', label: 'Shadow' }, { value: 'filled', label: 'Filled' }] },
44
+ { type: 'string', name: 'columns', label: 'Columns (maximum)', options: ['2', '3', '4'] },
45
+ { type: 'string', name: 'mediaAspect', label: 'Image shape', options: [{ value: '16/9', label: 'Wide 16:9' }, { value: '3/2', label: '3:2' }, { value: '4/3', label: '4:3' }, { value: '1/1', label: 'Square' }] },
46
+ textField('emptyMessage', 'Message when there are no cards'),
47
+ settingsField(),
48
+ ],
49
+ };
50
+
51
+ export function cardGridToProps(d: CardGridData, ctx: MapContext) {
52
+ const items = (d.items ?? [])
53
+ .filter((i) => clean(i?.title))
54
+ .map((i) =>
55
+ compact({
56
+ title: clean(i.title)!,
57
+ description: clean(i.description),
58
+ href: clean(i.href),
59
+ image: mapImage(i.image, i.imageAlt, ctx),
60
+ eyebrow: clean(i.eyebrow),
61
+ meta: clean(i.meta),
62
+ tina: i as never,
63
+ }),
64
+ );
65
+ return compact({
66
+ ...mapSettings(d.settings),
67
+ eyebrow: clean(d.eyebrow),
68
+ heading: clean(d.heading),
69
+ description: clean(d.description),
70
+ items,
71
+ layout: d.layout,
72
+ featured: d.featured ?? undefined,
73
+ variant: d.variant,
74
+ columns: d.columns ? (Number(d.columns) as 2 | 3 | 4) : undefined,
75
+ mediaAspect: upgrade(d.mediaAspect, { '16-9': '16/9', '3-2': '3/2', '4-3': '4/3', '1-1': '1/1' }),
76
+ emptyMessage: typeof d.emptyMessage === 'string' ? d.emptyMessage : undefined,
77
+ headingLevel: 2 as const,
78
+ placeholder: ctx.placeholder,
79
+ });
80
+ }