import {
generateDimensionsAttributes,
generateTypographyAttributes,
generateBackgroundAttributes,
generateBorderShadowAttributes,
generateResponsiveRangeAttributes,
} from "@essential-blocks/controls";
import {
WRAPPER_MARGIN,
WRAPPER_PADDING,
WRAPPER_BORDER_SHADOW,
WRAPPER_BG,
LABEL_MARGIN,
FIELD_BORDER,
FIELD_PADDING,
ICON_SIZE,
} from "./constants";
import {
LABEL_TYPOGRAPHY,
FIELD_TEXT_VALIDATION,
FIELD_TEXT
} from "./constants/typographyPrefixConstants";
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 ⬇
parentBlockId: {
type: "string",
},
parentBlockPaddingLeft: {
type: "string",
},
parentBlockPaddingUnit: {
type: "string",
},
parentBlockIconSize: {
type: "string",
},
parentIconColor: {
type: "string",
},
blockId: {
type: "string",
},
blockRoot: {
type: "string",
default: "essential_block",
},
// blockMeta is for keeping all the styles ⬇
blockMeta: {
type: "object",
},
formStyle: {
type: "string",
},
showLabel: {
type: "boolean",
default: true,
},
labelText: {
type: "string",
default: "Field Title",
},
options: {
type: "array",
default: [
{ name: "Select Item", value: "" },
{ name: "Option 1", value: "option_1" },
{ name: "Option 2", value: "option_2" },
{ name: "Option 3", value: "option_3" },
],
},
fieldType: {
type: "string",
default: "select",
},
dynamicValue: {
type: "string",
},
dynamicOptionType: {
type: "string",
default: "normal"
},
dynamicValueLoader: {
type: 'boolean',
default: false,
},
fieldName: {
type: "string",
},
defaultValue: {
type: "string",
},
isRequired: {
type: "boolean",
default: true,
},
validationRules: {
type: "object",
},
validationMessage: {
type: "string",
default: "This field is required.",
},
labelColor: {
type: "string",
},
requiredColor: {
type: "string",
},
fieldColor: {
type: "string",
},
fieldPlaceholderColor: {
type: "string",
},
fieldBgColor: {
type: "string",
},
fieldValidationColor: {
type: "string",
},
fieldValidationBorderColor: {
type: "string",
},
isIcon: {
type: "boolean",
default: true,
},
icon: {
type: "string",
default: "far fa-list-alt",
},
iconColor: {
type: "string",
},
// typography attributes ⬇
...generateTypographyAttributes(LABEL_TYPOGRAPHY),
...generateTypographyAttributes(FIELD_TEXT_VALIDATION),
...generateTypographyAttributes(FIELD_TEXT),
...generateDimensionsAttributes(WRAPPER_MARGIN),
...generateDimensionsAttributes(WRAPPER_PADDING),
...generateBackgroundAttributes(WRAPPER_BG),
...generateBorderShadowAttributes(WRAPPER_BORDER_SHADOW),
...generateDimensionsAttributes(FIELD_PADDING),
...generateBorderShadowAttributes(FIELD_BORDER),
...generateDimensionsAttributes(LABEL_MARGIN),
...generateResponsiveRangeAttributes(ICON_SIZE),
};
export default attributes;
Gift And Flowers Discount Code | Voucher Code Nest In UK
Category: Gift And Flowers Discount Code
-
Enjoy Free Shipping and Returns on All Orders Over £25 with Pomchick’s Site-Wide Free Shipping Offer
-
Unlock Greater Savings with our Pomchick Discount! Personalized Gifts For Her, Starting at Just £4!
-
Grab the ultimate deal on Customized Gifts for Mom from just £4 with this exclusive Pomchick Deal!
-
Pomchick Discount Code : Personalized Gifts For Him Starting at Just £4!
-
Exclusive Pomchick Discount: Personalized Teacher Gifts from £5!
-
Personalised Wooden Cake Toppers, starting at just £9 with the exclusive Pomchick Discount Code.
-
Get the greatest deals on Tote Bags with this incredible Pomchick Discount Code!
-
Subscribe to our newsletter for exclusive offers and receive a 10% discount with coupon codes at Pomchick Discount Code.
-
Get free delivery and returns on your entire order over £60 at printable heaven
-
Get Up To 80% OFF On Baking Products at printable heaven Discount Offer.