easy-email-pro-theme 1.59.7 → 1.59.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -32435,6 +32435,12 @@ function BackgroundImage(props) {
32435
32435
  label: t("Position"),
32436
32436
  name: props.name + ".background-position"
32437
32437
  })
32438
+ ), /* @__PURE__ */ React__default.createElement(
32439
+ AttributeField.BackgroundRepeat,
32440
+ __spreadProps(__spreadValues({}, props), {
32441
+ label: t("Repeat"),
32442
+ name: props.name + ".background-repeat"
32443
+ })
32438
32444
  )));
32439
32445
  }, [
32440
32446
  enabledGradientImage,
@@ -34118,6 +34124,46 @@ function ButtonIcon(props) {
34118
34124
  ))));
34119
34125
  }, [handleChangeEnabled, isEnabledBorder, label, name, path2, props.name]);
34120
34126
  }
34127
+ const fullWidthAdapter = {
34128
+ formatter(val) {
34129
+ return Boolean(val);
34130
+ },
34131
+ normalize(val) {
34132
+ return val ? "full-width" : void 0;
34133
+ }
34134
+ };
34135
+ function FullWidth(props) {
34136
+ const { label = t("Full width") } = props;
34137
+ return useMemo(() => {
34138
+ return /* @__PURE__ */ React__default.createElement(
34139
+ AttributeField.SwitchField,
34140
+ __spreadProps(__spreadValues({}, props), {
34141
+ label,
34142
+ formItem: __spreadValues({}, fullWidthAdapter)
34143
+ })
34144
+ );
34145
+ }, [label, props]);
34146
+ }
34147
+ const backgroundRepeatAdapter = {
34148
+ formatter(val) {
34149
+ return Boolean(val === "repeat");
34150
+ },
34151
+ normalize(val) {
34152
+ return val ? "repeat" : "no-repeat";
34153
+ }
34154
+ };
34155
+ function BackgroundRepeat(props) {
34156
+ const { label = t("Background repeat") } = props;
34157
+ return useMemo(() => {
34158
+ return /* @__PURE__ */ React__default.createElement(
34159
+ AttributeField.SwitchField,
34160
+ __spreadProps(__spreadValues({}, props), {
34161
+ label,
34162
+ formItem: __spreadValues({}, backgroundRepeatAdapter)
34163
+ })
34164
+ );
34165
+ }, [label, props]);
34166
+ }
34121
34167
  const defaultAttributeFields = {
34122
34168
  // Basic Form Field
34123
34169
  WatchField,
@@ -34176,7 +34222,9 @@ const defaultAttributeFields = {
34176
34222
  RichTextField,
34177
34223
  FieldItem,
34178
34224
  GradientGeneratorField,
34179
- ButtonIcon
34225
+ ButtonIcon,
34226
+ FullWidth,
34227
+ BackgroundRepeat
34180
34228
  };
34181
34229
  const AttributeField = __spreadValues({}, defaultAttributeFields);
34182
34230
  const index$5 = "";
@@ -35802,6 +35850,13 @@ function AttributesContainer$7({
35802
35850
  path: nodePath,
35803
35851
  name: ""
35804
35852
  }
35853
+ ), /* @__PURE__ */ React__default.createElement(
35854
+ ResponsiveField,
35855
+ {
35856
+ component: AttributeField.FullWidth,
35857
+ path: nodePath,
35858
+ name: "full-width"
35859
+ }
35805
35860
  )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
35806
35861
  ResponsiveField,
35807
35862
  {
@@ -0,0 +1,5 @@
1
+ import React, { ComponentProps } from "react";
2
+ import { AttributeField } from ".";
3
+ export declare function BackgroundRepeat(props: Omit<ComponentProps<typeof AttributeField.SwitchField>, "label" | "options"> & {
4
+ label?: React.ReactNode;
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React, { ComponentProps } from "react";
2
+ import { AttributeField } from ".";
3
+ export declare function FullWidth(props: Omit<ComponentProps<typeof AttributeField.SwitchField>, "label" | "options"> & {
4
+ label?: React.ReactNode;
5
+ }): React.JSX.Element;
@@ -38,6 +38,8 @@ import { RTLDirection } from "./RTLDirection";
38
38
  import { TableLayout } from "./TableLayout";
39
39
  import { BackgroundGradient } from "./BackgroundGradient";
40
40
  import { ButtonIcon } from "./ButtonIcon";
41
+ import { FullWidth } from './FullWidth';
42
+ import { BackgroundRepeat } from './BackgroundRepeat';
41
43
  export declare const defaultAttributeFields: {
42
44
  WatchField: (props: import("../../../Form/WatchField").WatchFieldProps) => import("react").JSX.Element;
43
45
  SyncChildrenField: (props: import("../../../Form/SyncChildrenField").SyncChildrenFieldProps) => import("react").JSX.Element;
@@ -130,5 +132,7 @@ export declare const defaultAttributeFields: {
130
132
  FieldItem: typeof FieldItem;
131
133
  GradientGeneratorField: (props: import("../../../Form/enhancer").EnhancerProps & Omit<import("../../../Form/GradientGenerator").GradientGeneratorProps, "onChange" | "value">) => import("react").JSX.Element;
132
134
  ButtonIcon: typeof ButtonIcon;
135
+ FullWidth: typeof FullWidth;
136
+ BackgroundRepeat: typeof BackgroundRepeat;
133
137
  };
134
138
  export declare const AttributeField: AttributeFieldsMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.59.7",
3
+ "version": "1.59.9",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"