UNPKG

@wordpress/global-styles-ui

Version:
19 lines (18 loc) • 678 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let __preview_hooks_tsx = require("./preview-hooks.cjs"); let react_jsx_runtime = require("react/jsx-runtime"); // packages/global-styles-ui/src/preset-colors.tsx function PresetColors() { const { paletteColors } = (0, __preview_hooks_tsx.useStylesPreviewColors)(); return paletteColors.slice(0, 4).map(({ slug, color }, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: { flexGrow: 1, height: "100%", background: color } }, `${slug}-${index}`)); } exports.default = PresetColors; //# sourceMappingURL=preset-colors.cjs.map