UNPKG

@wordpress/widget-dashboard

Version:

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

20 lines (19 loc) • 705 B
// packages/widget-dashboard/src/types.ts /** * Column count of the default policy on a wide container. A default, not * a ceiling: the package renders whatever the host asks for. */ const WIDGET_DASHBOARD_COLUMN_COUNT = 4; /** * Column policy used when the host sets neither `gridSettings.columns` nor * `gridSettings.minColumnWidth`: one column from 0px, two from 600px and * {@link WIDGET_DASHBOARD_COLUMN_COUNT} from 960px of container width. The * steps are data the host can replace; the package applies none of its own. */ const WIDGET_DASHBOARD_COLUMN_STEPS = { 0: 1, 600: 2, 960: 4 }; export { WIDGET_DASHBOARD_COLUMN_COUNT, WIDGET_DASHBOARD_COLUMN_STEPS }; //# sourceMappingURL=types.mjs.map