@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
1 lines • 749 B
Source Map (JSON)
{"version":3,"file":"default-grid.mjs","names":[],"sources":["../../../src/utils/default-grid/default-grid.ts"],"sourcesContent":["import type { WidgetGridSettings } from '../../types';\nimport { WIDGET_DASHBOARD_COLUMN_STEPS } from '../../types';\nimport { DEFAULT_ROW_HEIGHT } from '../row-height-presets';\n\n/**\n * Canonical default grid settings. Applied by the dashboard when the\n * consumer omits `gridSettings`, and the baseline hosts should treat as\n * the factory default when persisting their own copy.\n */\nexport const DEFAULT_GRID: WidgetGridSettings = {\n\tmodel: 'grid',\n\tcolumns: WIDGET_DASHBOARD_COLUMN_STEPS,\n\trowHeight: DEFAULT_ROW_HEIGHT,\n};\n"],"mappings":";;;;;;;;AASA,MAAa,eAAmC;CAC/C,OAAO;CACP,SAAS;CACT,WAAW;AACZ"}