UNPKG

@wordpress/widget-dashboard

Version:

Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.

16 lines (15 loc) • 586 B
import { WIDGET_DASHBOARD_COLUMN_STEPS } from "../../types.mjs"; import { DEFAULT_ROW_HEIGHT } from "../row-height-presets/index.mjs"; // packages/widget-dashboard/src/utils/default-grid/default-grid.ts /** * Canonical default grid settings. Applied by the dashboard when the * consumer omits `gridSettings`, and the baseline hosts should treat as * the factory default when persisting their own copy. */ const DEFAULT_GRID = { model: "grid", columns: WIDGET_DASHBOARD_COLUMN_STEPS, rowHeight: DEFAULT_ROW_HEIGHT }; export { DEFAULT_GRID }; //# sourceMappingURL=default-grid.mjs.map