__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
import {
	rMinHConst,
	rMaxWConst,
	rColsGapConst,
	rColsNumber
} from "./constants/rangeNames";

// import {
// 	generateDimensionsAttributes,
// 	generateTypographyAttributes,
// 	generateBackgroundAttributes,
// 	generateBorderShadowAttributes,
// 	generateResponsiveRangeAttributes,
// } from "../../../util/helpers";

import {
	generateDimensionsAttributes,
	// generateTypographyAttributes,
	generateBackgroundAttributes,
	generateBorderShadowAttributes,
	generateResponsiveRangeAttributes,

	//
	generateResponsiveSelectControlAttributes,
 } from "@essential-blocks/controls";

import {
	rWrapMarginConst,
	rWrapPaddingConst,
} from "./constants/dimensionsNames";
import { WrpBgConst } from "./constants/backgroundsConstants";
import { WrpBdShadowConst } from "./constants/borderShadowConstants";
import { rowOverflowPrefix, columnsOrderPrefix } from "./constants/selectControlPrefixs";

const attributes = {
	// the following 4 attributes is must required for responsive options and asset generation for frontend
	// responsive control attributes ⬇
	resOption: {
		type: "string",
		default: "Desktop",
	},

	// blockId attribute for making unique className and other uniqueness
	blockId: {
		type: "string",
	},
	blockRoot: {
		type: "string",
		default: "essential_block",
	},
	blockMeta: {
		type: "object",
	},

	align: {
		type: "string",
		default: "full",
	},

	//
	isLayoutSelected: {
		type: "boolean",
		default: false,
	},

	//
	rowWidthName: {
		type: "string",
		default: "boxed",
	},

	//
	rowHeightName: {
		type: "string",
		default: "default",
	},

	//
	rowOverFlow: {
		type: "string",
	},

	//
	rowAli: {
		type: "string",
	},

	//
	...generateResponsiveRangeAttributes(rMinHConst, {
		// defaultRange: 18,
		// defaultUnit: "%", // if 'noUnits: true' is also passed here then 'defaultUnit' won't work, also it doesn't make sense to pass a defaultUnit when No units given
	}),

	//
	...generateResponsiveRangeAttributes(rColsGapConst, {
		defaultRange: 20,
		noUnits: true,
	}),

	//
	...generateResponsiveRangeAttributes(rMaxWConst, {
		defaultRange: 1170,
		// defaultUnit: "%", // if 'noUnits: true' is also passed here then 'defaultUnit' won't work, also it doesn't make sense to pass a defaultUnit when No units given
		noUnits: true,
	}),

	//Column Number
	...generateResponsiveRangeAttributes(rColsNumber, {
		// defaultRange: 2,
		// defaultUnit: "%", // if 'noUnits: true' is also passed here then 'defaultUnit' won't work, also it doesn't make sense to pass a defaultUnit when No units given
		noUnits: true,
	}),

	//  BorderShadow attributes  ⬇
	...generateBorderShadowAttributes(WrpBdShadowConst, {
		// noShadow: true,
		// noBorder: true,
	}),

	//  background attributes ⬇
	...generateBackgroundAttributes(WrpBgConst, {
		defaultBgGradient: "linear-gradient(45deg,#7967ff,#c277f2)",
		// noOverlayBgi: true, // if 'noOverlay : true' is given then there's no need to give 'noOverlayBgi : true'
	}),

	// dimensions Control related Attributes ⬇
	...generateDimensionsAttributes(rWrapMarginConst, {
		disableLeftRight: true,
	}),
	...generateDimensionsAttributes(rWrapPaddingConst),

	//
	...generateResponsiveSelectControlAttributes(rowOverflowPrefix),
	...generateResponsiveSelectControlAttributes(columnsOrderPrefix),
};

export default attributes;

Filemanager

Name Type Size Permission Actions
constants Folder 0750
attributes.js File 3.22 KB 0640
deprecated.js File 3.16 KB 0640
edit.js File 24.06 KB 0640
example.js File 90 B 0640
icon.svg File 774 B 0640
index.js File 730 B 0640
inspector.js File 5.32 KB 0640
save.js File 775 B 0640
style.js File 14.19 KB 0640
style.scss File 994 B 0640
Filemanager