__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import {
WRAPPER_BG,
WRAPPER_MARGIN,
WRAPPER_PADDING,
WRAPPER_BORDER_SHADOW,
ICON_SIZE,
ICON_BG,
BORDER,
BORDER_WIDTH,
} from "./constants";
import {
generateDimensionsAttributes,
generateTypographyAttributes,
generateBackgroundAttributes,
generateBorderShadowAttributes,
generateResponsiveRangeAttributes,
} from "@essential-blocks/controls";
const 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",
},
iconAlign: {
type: "string",
default: "center",
},
icon: {
type: "string",
default: "far fa-check-circle",
},
iconPrimaryColor: {
type: "string",
default: "var(--eb-global-primary-color)",
},
iconPrimaryHoverColor: {
type: "string",
default: "var(--eb-global-secondary-color)",
},
iconSecondaryColor: {
type: "string",
default: "var(--eb-global-secondary-color)",
},
iconSecondaryHoverColor: {
type: "string",
default: "var(--eb-global-primary-color)",
},
iconView: {
type: "string",
default: "default",
},
iconShape: { type: "string", default: "circle" },
iconLink: {
type: "string",
},
linkNewTab: {
type: "boolean",
default: false,
},
linkNoFollow: {
type: "boolean",
default: false,
},
iconPadding: {
type: "number",
},
iconColorType: {
type: "string",
default: "normal",
},
// margin padding attributes ⬇
...generateDimensionsAttributes(WRAPPER_MARGIN),
...generateDimensionsAttributes(WRAPPER_PADDING),
...generateDimensionsAttributes(BORDER, { styleFor: "border-radius" }),
...generateDimensionsAttributes(BORDER_WIDTH),
// border shadow attributes ⬇
...generateBorderShadowAttributes(WRAPPER_BORDER_SHADOW, {
bdrDefaults: {
top: 0,
bottom: 0,
right: 0,
left: 0,
},
// noShadow: true,
// noBorder: true,
}),
// background attributes ⬇
...generateBackgroundAttributes(WRAPPER_BG, {
defaultBgGradient: "linear-gradient(45deg,#ffffff,#ffffff)",
}),
...generateBackgroundAttributes(ICON_BG, {
noOverlay: true,
noMainBgi: true,
}),
// range controller Separator Icon Size
...generateResponsiveRangeAttributes(ICON_SIZE, {
defaultRange: 32,
}),
};
export default attributes;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| constants | Folder | 0750 |
|
|
| attributes.js | File | 2.72 KB | 0640 |
|
| deprecated.js | File | 2.38 KB | 0640 |
|
| edit.js | File | 1.89 KB | 0640 |
|
| example.js | File | 65 B | 0640 |
|
| icon.svg | File | 2.36 KB | 0640 |
|
| index.js | File | 644 B | 0640 |
|
| inspector.js | File | 7.59 KB | 0640 |
|
| save.js | File | 950 B | 0640 |
|
| style.js | File | 7.58 KB | 0640 |
|
| style.scss | File | 904 B | 0640 |
|