import React from 'react'; export type ColumnAnchor = 'tl' | 'tc' | 'tr' | 'ml' | 'mc' | 'mr' | 'bl' | 'bc' | 'br'; interface ColumnsProps { columnsWidget: { columnCount: number; gap: number; ratio?: string | null; background?: string | null; padding?: string | null; /** 9-anchor content alignment applied uniformly to every column. The * inner Area is wrapped in a flex container; the anchor maps to * `justify-*` (main axis) + `items-*` (cross axis) classes. */ contentPosition?: ColumnAnchor | null; }; } /** * Container widget. Renders one Area per column with synthetic id * `columnsContainer__col_`. `loadWidgetInstances` emits this * widget's children with matching `areaId` values, so child widgets * render inside their column via the standard Area mechanism. * * Layout knobs (all optional, sane fallbacks): * - `ratio` — e.g. "1-1", "1-2-1". Drives column count + proportions. * Falls back to evenly-split `columnCount` for back-compat with widgets * saved before the ratio field existed. * - `gap` — pixel gap between columns. * - `background` — hex color applied to the row container. * - `padding` — preset (`none|sm|md|lg|xl`) mapped to responsive * Tailwind classes so mobile breakpoints don't crush the layout. * * Responsive behavior: below `md` (768px) all columns stack full-width * (single-column grid) regardless of `ratio`/`columnCount` — a narrow * viewport can't fit multiple ratio-based columns without crushing their * content. The ratio grid only applies from `md` up, via a CSS custom * property (`--evershop-columns-grid`) read by an injected media-query * rule, matching the pattern used by FooterMenu / TieredCategories. * * Outside the page builder, `useWidgetUid` returns the widget's uuid via * the `WidgetContextProvider` mounted by `WidgetChrome` for every widget * (also outside the iframe — chrome's outer branch always wraps in * provider, no DOM overhead). */ export default function Columns({ columnsWidget: { columnCount, gap, ratio, background, padding, contentPosition } }: ColumnsProps): React.JSX.Element | null; export declare const query = "\n query Query(\n $columnCount: Int\n $gap: Float\n $ratio: String\n $background: String\n $padding: String\n $contentPosition: String\n ) {\n columnsWidget(\n columnCount: $columnCount\n gap: $gap\n ratio: $ratio\n background: $background\n padding: $padding\n contentPosition: $contentPosition\n ) {\n columnCount\n gap\n ratio\n background\n padding\n contentPosition\n }\n }\n"; export declare const variables = "{\n columnCount: getWidgetSetting(\"columnCount\", 2),\n gap: getWidgetSetting(\"gap\", 16),\n ratio: getWidgetSetting(\"ratio\"),\n background: getWidgetSetting(\"background\"),\n padding: getWidgetSetting(\"padding\"),\n contentPosition: getWidgetSetting(\"contentPosition\")\n}"; export {};