@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
33 lines (32 loc) • 1.19 kB
JavaScript
import { __, isRTL } from "@wordpress/i18n";
import { __experimentalItemGroup } from "@wordpress/components";
import { Stack } from "@wordpress/ui";
import { Icon, chevronLeft, chevronRight } from "@wordpress/icons";
import { Subtitle } from "./subtitle.mjs";
import { NavigationButtonAsItem } from "./navigation-button.mjs";
import { jsx, jsxs } from "react/jsx-runtime";
// packages/global-styles-ui/src/text-shadows.tsx
function TextShadows() {
return /* @__PURE__ */ jsxs(Stack, {
direction: "column",
gap: "sm",
children: [/* @__PURE__ */ jsx(Subtitle, {
level: 3,
children: __("Text shadows")
}), /* @__PURE__ */ jsx(__experimentalItemGroup, {
isBordered: true,
isSeparated: true,
children: /* @__PURE__ */ jsx(NavigationButtonAsItem, {
path: "/typography/text-shadows",
children: /* @__PURE__ */ jsxs(Stack, {
direction: "row",
justify: "space-between",
align: "center",
children: [/* @__PURE__ */ jsx("span", { children: __("Text shadow presets") }), /* @__PURE__ */ jsx(Icon, { icon: isRTL() ? chevronLeft : chevronRight })]
})
})
})]
});
}
export { TextShadows as default };
//# sourceMappingURL=text-shadows.mjs.map