UNPKG

@wordpress/global-styles-ui

Version:
66 lines (65 loc) • 3.63 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); // \0rolldown/runtime.js var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { key = keys[i]; if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: ((k) => from[k]).bind(null, key), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); let _wordpress_i18n = require("@wordpress/i18n"); let _wordpress_ui = require("@wordpress/ui"); let _wordpress_element = require("@wordpress/element"); let __screen_header_tsx = require("./screen-header.cjs"); let __screen_body_tsx = require("./screen-body.cjs"); let __typography_elements_tsx = require("./typography-elements.cjs"); __typography_elements_tsx = __toESM(__typography_elements_tsx); let __variations_variations_typography_tsx = require("./variations/variations-typography.cjs"); __variations_variations_typography_tsx = __toESM(__variations_variations_typography_tsx); let __font_families_tsx = require("./font-families.cjs"); __font_families_tsx = __toESM(__font_families_tsx); let __font_sizes_font_sizes_count_tsx = require("./font-sizes/font-sizes-count.cjs"); __font_sizes_font_sizes_count_tsx = __toESM(__font_sizes_font_sizes_count_tsx); let __text_shadows_tsx = require("./text-shadows.cjs"); __text_shadows_tsx = __toESM(__text_shadows_tsx); let __context_ts = require("./context.cjs"); let __hooks_ts = require("./hooks.cjs"); let react_jsx_runtime = require("react/jsx-runtime"); // packages/global-styles-ui/src/screen-typography.tsx function ScreenTypography() { const { fontLibraryEnabled } = (0, _wordpress_element.useContext)(__context_ts.GlobalStylesContext); const [hasTextShadowControl] = (0, __hooks_ts.useSetting)("typography.textShadow"); return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__screen_header_tsx.ScreenHeader, { title: (0, _wordpress_i18n.__)("Typography"), description: (0, _wordpress_i18n.__)("Manage the fonts and typographic styles available across the site.") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__screen_body_tsx.ScreenBody, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_wordpress_ui.Stack, { direction: "column", gap: "xl", children: [ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__variations_variations_typography_tsx.default, { title: (0, _wordpress_i18n.__)("Typesets") }), fontLibraryEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__font_families_tsx.default, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__typography_elements_tsx.default, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__font_sizes_font_sizes_count_tsx.default, {}), hasTextShadowControl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__text_shadows_tsx.default, {}) ] }) })] }); } exports.default = ScreenTypography; //# sourceMappingURL=screen-typography.cjs.map