UNPKG

@wordpress/global-styles-ui

Version:
35 lines (34 loc) • 1.62 kB
import { __ } from "@wordpress/i18n"; import { Stack } from "@wordpress/ui"; import { useContext } from "@wordpress/element"; import { ScreenHeader } from "./screen-header.mjs"; import { ScreenBody } from "./screen-body.mjs"; import TypographyElements from "./typography-elements.mjs"; import TypographyVariations from "./variations/variations-typography.mjs"; import FontFamilies from "./font-families.mjs"; import FontSizesCount from "./font-sizes/font-sizes-count.mjs"; import TextShadows from "./text-shadows.mjs"; import { GlobalStylesContext } from "./context.mjs"; import { useSetting } from "./hooks.mjs"; import { Fragment, jsx, jsxs } from "react/jsx-runtime"; // packages/global-styles-ui/src/screen-typography.tsx function ScreenTypography() { const { fontLibraryEnabled } = useContext(GlobalStylesContext); const [hasTextShadowControl] = useSetting("typography.textShadow"); return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ScreenHeader, { title: __("Typography"), description: __("Manage the fonts and typographic styles available across the site.") }), /* @__PURE__ */ jsx(ScreenBody, { children: /* @__PURE__ */ jsxs(Stack, { direction: "column", gap: "xl", children: [ /* @__PURE__ */ jsx(TypographyVariations, { title: __("Typesets") }), fontLibraryEnabled && /* @__PURE__ */ jsx(FontFamilies, {}), /* @__PURE__ */ jsx(TypographyElements, {}), /* @__PURE__ */ jsx(FontSizesCount, {}), hasTextShadowControl && /* @__PURE__ */ jsx(TextShadows, {}) ] }) })] }); } export { ScreenTypography as default }; //# sourceMappingURL=screen-typography.mjs.map