UNPKG

payload-lexical-typography

Version:
96 lines (92 loc) 3 kB
// src/features/textColor/feature.server.ts import { createServerFeature } from "@payloadcms/richtext-lexical"; var TextColorFeature = createServerFeature({ feature({ props }) { return { ClientFeature: "payload-lexical-typography/client#TextColorClientFeature", clientFeatureProps: { colors: props?.colors ?? [], colorPicker: props?.colorPicker, hideAttribution: props?.hideAttribution ?? false, listView: props?.listView } }; }, key: "textColor" }); // src/features/textSize/feature.server.ts import { createServerFeature as createServerFeature2 } from "@payloadcms/richtext-lexical"; var TextSizeFeature = createServerFeature2({ feature({ props }) { return { ClientFeature: "payload-lexical-typography/client#TextSizeClientFeature", clientFeatureProps: { hideAttribution: props?.hideAttribution, sizes: props?.sizes, method: props?.method, scroll: props?.scroll, customSize: props?.customSize } }; }, key: "textSize" }); // src/features/textLetterSpacing/feature.server.ts import { createServerFeature as createServerFeature3 } from "@payloadcms/richtext-lexical"; var TextLetterSpacingFeature = createServerFeature3({ feature({ props }) { return { ClientFeature: "payload-lexical-typography/client#TextLetterSpacingClientFeature", clientFeatureProps: { hideAttribution: props?.hideAttribution, spacings: props?.spacings, method: props?.method, scroll: props?.scroll, customSpacing: props?.customSpacing } }; }, key: "textLetterSpacing" }); // src/features/textLineHeight/feature.server.ts import { createServerFeature as createServerFeature4 } from "@payloadcms/richtext-lexical"; var TextLineHeightFeature = createServerFeature4({ feature({ props }) { return { ClientFeature: "payload-lexical-typography/client#TextLineHeightClientFeature", clientFeatureProps: { hideAttribution: props?.hideAttribution, lineHeights: props?.lineHeights, scroll: props?.scroll, customLineHeight: props?.customLineHeight, method: props?.method } }; }, key: "textLineHeight" }); // src/features/textFontFamily/feature.server.ts import { createServerFeature as createServerFeature5 } from "@payloadcms/richtext-lexical"; var TextFontFamilyFeature = createServerFeature5({ feature({ props }) { return { ClientFeature: "payload-lexical-typography/client#TextFontFamilyClientFeature", clientFeatureProps: { hideAttribution: props?.hideAttribution, fontFamilies: props?.fontFamilies, method: props?.method, scroll: props?.scroll, customFontFamily: props?.customFontFamily } }; }, key: "textFontFamily" }); export { TextColorFeature, TextFontFamilyFeature, TextLetterSpacingFeature, TextLineHeightFeature, TextSizeFeature }; //# sourceMappingURL=index.mjs.map