@elementor/editor-controls 4.1.0-761 → 4.1.0-763

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/dist/index.mjs CHANGED
@@ -6753,14 +6753,7 @@ import { CollapsibleContent } from "@elementor/editor-ui";
6753
6753
  import { Box as Box24, Divider as Divider5, Grid as Grid29, Stack as Stack17 } from "@elementor/ui";
6754
6754
  import { __ as __51 } from "@wordpress/i18n";
6755
6755
  var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React102.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React102.createElement(Grid29, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React102.createElement(Grid29, { item: true }, /* @__PURE__ */ React102.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React102.createElement(Grid29, { item: true }, /* @__PURE__ */ React102.createElement(TextControl, { placeholder }))));
6756
- var SendToField = () => /* @__PURE__ */ React102.createElement(
6757
- EmailField,
6758
- {
6759
- bind: "to",
6760
- label: __51("Send to", "elementor"),
6761
- placeholder: __51("Where should we send new submissions?", "elementor")
6762
- }
6763
- );
6756
+ var SendToField = ({ placeholder }) => /* @__PURE__ */ React102.createElement(EmailField, { bind: "to", label: __51("Send to", "elementor"), placeholder });
6764
6757
  var SubjectField = () => /* @__PURE__ */ React102.createElement(
6765
6758
  EmailField,
6766
6759
  {
@@ -6819,9 +6812,9 @@ var SendAsField = () => /* @__PURE__ */ React102.createElement(PropKeyProvider,
6819
6812
  }
6820
6813
  ))));
6821
6814
  var AdvancedSettings = () => /* @__PURE__ */ React102.createElement(CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React102.createElement(Box24, { sx: { pt: 2 } }, /* @__PURE__ */ React102.createElement(Stack17, { gap: 2 }, /* @__PURE__ */ React102.createElement(FromNameField, null), /* @__PURE__ */ React102.createElement(ReplyToField, null), /* @__PURE__ */ React102.createElement(CcField, null), /* @__PURE__ */ React102.createElement(BccField, null), /* @__PURE__ */ React102.createElement(Divider5, null), /* @__PURE__ */ React102.createElement(MetaDataField, null), /* @__PURE__ */ React102.createElement(SendAsField, null))));
6822
- var EmailFormActionControl = createControl(() => {
6815
+ var EmailFormActionControl = createControl(({ toPlaceholder }) => {
6823
6816
  const { value, setValue, ...propContext } = useBoundProp(emailPropTypeUtil);
6824
- return /* @__PURE__ */ React102.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React102.createElement(Stack17, { gap: 2 }, /* @__PURE__ */ React102.createElement(ControlLabel, null, __51("Email settings", "elementor")), /* @__PURE__ */ React102.createElement(SendToField, null), /* @__PURE__ */ React102.createElement(SubjectField, null), /* @__PURE__ */ React102.createElement(MessageField, null), /* @__PURE__ */ React102.createElement(FromEmailField, null), /* @__PURE__ */ React102.createElement(AdvancedSettings, null)));
6817
+ return /* @__PURE__ */ React102.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React102.createElement(Stack17, { gap: 2 }, /* @__PURE__ */ React102.createElement(ControlLabel, null, __51("Email settings", "elementor")), /* @__PURE__ */ React102.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React102.createElement(SubjectField, null), /* @__PURE__ */ React102.createElement(MessageField, null), /* @__PURE__ */ React102.createElement(FromEmailField, null), /* @__PURE__ */ React102.createElement(AdvancedSettings, null)));
6825
6818
  });
6826
6819
 
6827
6820
  // src/controls/size-control/unstable-size-control.tsx