UNPKG

payload-lexical-typography

Version:
84 lines (77 loc) 3.09 kB
import * as _payloadcms_richtext_lexical from '@payloadcms/richtext-lexical'; import { ToolbarGroupItem } from '@payloadcms/richtext-lexical'; type TextColorFeatureProps = { colors?: string[] | { value: string; label: string; }[]; colorPicker?: boolean; hideAttribution?: boolean; listView?: boolean; }; type TextColorItem = ToolbarGroupItem & { command: Record<string, unknown>; current: () => string | null; } & TextColorFeatureProps; declare const TextColorClientFeature: _payloadcms_richtext_lexical.FeatureProviderProviderClient<TextColorFeatureProps, TextColorItem>; type TextSizeFeatureProps = { hideAttribution?: boolean; sizes?: { value: string; label: string; }[]; method?: "replace" | "combine"; customSize?: boolean; scroll?: boolean; }; type TextSizeItem = ToolbarGroupItem & { command: Record<string, unknown>; current: () => string | null; } & TextSizeFeatureProps; declare const TextSizeClientFeature: _payloadcms_richtext_lexical.FeatureProviderProviderClient<TextSizeFeatureProps, TextSizeItem>; type TextLetterSpacingFeatureProps = { hideAttribution?: boolean; spacings?: { value: string; label: string; }[]; method?: "replace" | "combine"; customSpacing?: boolean; scroll?: boolean; }; type TextLetterSpacingItem = ToolbarGroupItem & { command: Record<string, unknown>; current: () => string | null; } & TextLetterSpacingFeatureProps; declare const TextLetterSpacingClientFeature: _payloadcms_richtext_lexical.FeatureProviderProviderClient<TextLetterSpacingFeatureProps, TextLetterSpacingItem>; type TextLineHeightFeatureProps = { hideAttribution?: boolean; lineHeights?: { value: string; label: string; }[]; customLineHeight?: boolean; scroll?: boolean; method?: "replace" | "combine"; }; type TextLineHeightItem = ToolbarGroupItem & { command: Record<string, unknown>; current: () => string | null; } & TextLineHeightFeatureProps; declare const TextLineHeightClientFeature: _payloadcms_richtext_lexical.FeatureProviderProviderClient<TextLineHeightFeatureProps, TextLineHeightItem>; type TextFontFamilyFeatureProps = { hideAttribution?: boolean; fontFamilies?: { value: string; label: string; }[]; method?: "replace" | "combine"; customFontFamily?: boolean; scroll?: boolean; }; type TextFontFamilyItem = ToolbarGroupItem & { command: Record<string, unknown>; current: () => string | null; } & TextFontFamilyFeatureProps; declare const TextFontFamilyClientFeature: _payloadcms_richtext_lexical.FeatureProviderProviderClient<TextFontFamilyFeatureProps, TextFontFamilyItem>; export { type TextColorFeatureProps as T, type TextSizeFeatureProps as a, type TextLetterSpacingFeatureProps as b, type TextLineHeightFeatureProps as c, type TextFontFamilyFeatureProps as d, TextColorClientFeature as e, TextSizeClientFeature as f, TextLetterSpacingClientFeature as g, TextLineHeightClientFeature as h, TextFontFamilyClientFeature as i };