import { __ } from "@wordpress/i18n"; import { Toggle, Layouts, SPRangeControl, SelectField, InputControl } from "../../components"; import { openLinksOptions } from "../../controls/constants"; import useLayouts from "../../hooks/useLayouts"; import ContentOrientations from "../shared/templates/templates-parts/contentOrientations"; import { AlignCenter, AlignLeft, AlignRight } from "../../icons/icons"; import SPToggleGroupControl from "../../components/toggleGroupControl/toggleGroupControl"; import ProInfo from "../../components/proInfo/proInfo"; export const PostTimelineGeneralTab = ({ attributes, setAttributes }) => { const { itemsPerPage, equalHeightEnable, blockName, generalLinkOpen, gapBetweenPosts, timelineLayout, preloaderEnable, contentOrientation, contentAlignment, postLimit, imagePosition, postCardPadding, postCardBorder, postCardBorderWidth, contentAreaPadding, metaDisplayType, paginationEnable, liveFilterEnable, } = attributes; const layouts = useLayouts(blockName, timelineLayout); const orientation_five = { postCardPadding: { ...postCardPadding, device: { ...postCardPadding.device, Desktop: { top: 15, right: 15, bottom: 15, left: 15, }, }, }, postCardBorder: { ...postCardBorder, style: "solid" }, postCardBorderWidth: { ...postCardBorderWidth, device: { ...postCardBorderWidth.device, Desktop: { top: 1, right: 1, bottom: 1, left: 1 }, }, }, contentAlignment: "left", contentAreaPadding: { ...contentAreaPadding, device: { ...contentAreaPadding.device, Desktop: { top: "", right: "", bottom: "", left: "" }, }, }, }; const orientation_other = { postCardPadding: { ...postCardPadding, device: { ...postCardPadding.device, Desktop: { top: "", right: "", bottom: "", left: "" }, }, }, postCardBorder: { ...postCardBorder, style: "none" }, contentAlignment: "left", contentAreaPadding: { ...contentAreaPadding, device: { ...contentAreaPadding.device, Desktop: { top: 0, right: 20, bottom: 15, left: 20 }, }, }, }; const orientationHandler = (newValue) => { if (newValue === contentOrientation) return; const cardValue = newValue === "orientation_five" ? orientation_five : orientation_other; const newData = { ...cardValue, contentOrientation: newValue, }; setAttributes(newData); }; return ( <> {imagePosition !== "background" && ( )} , value: "left" }, { label: , value: "center" }, { label: , value: "right" }, ]} /> Unlock exclusive layouts and advanced display controls. Upgrade to Pro! ); }; export const PostTimelineConnectorTab = ({ attributes, setAttributes }) => { const { timelineSize, timelineWidth, timelineHeight, timelineConnectorWidth } = attributes; return ( <>
Icon Source
); };