UNPKG

@wordpress/widget-dashboard

Version:

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

26 lines (25 loc) • 900 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); // 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 }; exports.WIDGET_DASHBOARD_COLUMN_COUNT = WIDGET_DASHBOARD_COLUMN_COUNT; exports.WIDGET_DASHBOARD_COLUMN_STEPS = WIDGET_DASHBOARD_COLUMN_STEPS; //# sourceMappingURL=types.cjs.map