Block library: 15 blocks, registry, primitives, templates, manifest, eject
- @intecion/ipal-kit/blocks: libraryBlocks() opt-in, one builder per block, field
builders, option merging, blockLibraryManifest, faqItemsFromLayout
- @intecion/ipal-kit/blocks/rsc: createBlockRegistry, the block components and UI
primitives (token utilities only; next/image and next/link passed in)
- @intecion/ipal-kit/templates: 10 page templates as createSeeder data
- createSeeder: { $form: title } references
- ipal-blocks eject <block>
- tests: options, rendering and a11y per block, Payload + seeding, GraphQL, admin
wording, schema snapshot (versioning), eject imports
- shorter admin labels: link "New tab", table of contents "Show contents"
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7918eaf6d4
commit
2d1cc0e77d
@@ -0,0 +1,18 @@
|
||||
import type { ReactNode } from 'react'
|
||||
|
||||
import { cx } from './cx.js'
|
||||
|
||||
export type ContainerWidth = 'default' | 'narrow' | 'wide'
|
||||
|
||||
export const CONTAINER_WIDTHS: Record<ContainerWidth, string> = {
|
||||
default: 'max-w-container',
|
||||
narrow: 'max-w-narrow',
|
||||
wide: 'max-w-container-wide',
|
||||
}
|
||||
|
||||
export type ContainerProps = { children: ReactNode; className?: string; width?: ContainerWidth }
|
||||
|
||||
/** The page column: centred, the site's max width, side gutters. */
|
||||
export function Container({ children, className, width = 'default' }: ContainerProps) {
|
||||
return <div className={cx('mx-auto w-full px-gutter', CONTAINER_WIDTHS[width], className)}>{children}</div>
|
||||
}
|
||||
Reference in New Issue
Block a user