import React from 'react'; /** * Section — a styled, droppable container that wraps any other widgets. * * Reuses the existing column-container synthetic area pattern: a single * `` is the section's slot, so * `loadWidgetInstances`, the page-builder drop handler, and the Layers * grouping all work without any infrastructure changes. From the * page-builder's perspective the section behaves like a 1-column Columns * widget; only the rendered shell differs (wide/boxed + background + * padding). * * Knobs: * - `width: 'wide' | 'boxed'` — `wide` breaks out edge-to-edge via the * 100vw + negative-margin trick and then re-establishes the page's content * column for its children; `boxed` caps at the page's reading width and * centers (so it's boxed even in a full-bleed area). Both take that width * from `--page-max-width` / `--page-gutter`, so they follow the theme. * - `padding: 'none' | 'sm' | 'md' | 'lg' | 'xl'` — responsive vertical pad, * same scale as the Columns widget, plus a horizontal pad only where the * section paints an edge its content would otherwise touch (see * PADDING_X_CLASS). Exposed as `data-padding` so a theme can re-proportion * the scale instead of padding the section on top of it. * - `background` — CSS color applied to the entire section. * - `backgroundImage` — image painted behind content, with optional * `overlayTint` + `overlayOpacity` scrim for legibility. */ export type SectionWidth = 'wide' | 'boxed'; export type SectionPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl'; export type SectionTint = 'none' | 'dark' | 'light' | 'gradient'; interface SectionProps { sectionWidget: { width: SectionWidth; padding: SectionPadding; background: string | null; backgroundImage: string | null; backgroundImageWidth: number | null; backgroundImageHeight: number | null; overlayTint: SectionTint; overlayOpacity: number; }; } export default function Section({ sectionWidget: { width, padding, background, backgroundImage, backgroundImageWidth, backgroundImageHeight, overlayTint, overlayOpacity } }: SectionProps): React.JSX.Element | null; export declare const query = "\n query Query(\n $width: String\n $padding: String\n $background: String\n $backgroundImage: String\n $backgroundImageWidth: Float\n $backgroundImageHeight: Float\n $overlayTint: String\n $overlayOpacity: Float\n ) {\n sectionWidget(\n width: $width\n padding: $padding\n background: $background\n backgroundImage: $backgroundImage\n backgroundImageWidth: $backgroundImageWidth\n backgroundImageHeight: $backgroundImageHeight\n overlayTint: $overlayTint\n overlayOpacity: $overlayOpacity\n ) {\n width\n padding\n background\n backgroundImage\n backgroundImageWidth\n backgroundImageHeight\n overlayTint\n overlayOpacity\n }\n }\n"; export declare const variables = "{\n width: getWidgetSetting(\"width\", \"boxed\"),\n padding: getWidgetSetting(\"padding\", \"md\"),\n background: getWidgetSetting(\"background\"),\n backgroundImage: getWidgetSetting(\"backgroundImage\"),\n backgroundImageWidth: getWidgetSetting(\"backgroundImageWidth\"),\n backgroundImageHeight: getWidgetSetting(\"backgroundImageHeight\"),\n overlayTint: getWidgetSetting(\"overlayTint\", \"none\"),\n overlayOpacity: getWidgetSetting(\"overlayOpacity\", 0.3)\n}"; export {};