easy-email-extensions 4.15.0 → 4.16.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index2.js CHANGED
@@ -34518,95 +34518,6 @@ function Direction() {
34518
34518
  }));
34519
34519
  }, [focusIdx2]);
34520
34520
  }
34521
- function Link() {
34522
- const { focusIdx: focusIdx2 } = useFocusIdx();
34523
- return useMemo(() => {
34524
- return /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
34525
- span: 11
34526
- }, /* @__PURE__ */ React__default.createElement(TextField, {
34527
- prefix: /* @__PURE__ */ React__default.createElement(IconLink$1, null),
34528
- label: /* @__PURE__ */ React__default.createElement("span", null, t("Href"), "\xA0\xA0\xA0"),
34529
- name: `${focusIdx2}.attributes.href`
34530
- })), /* @__PURE__ */ React__default.createElement(Grid.Col, {
34531
- offset: 1,
34532
- span: 11
34533
- }, /* @__PURE__ */ React__default.createElement(SelectField, {
34534
- label: t("Target"),
34535
- name: `${focusIdx2}.attributes.target`,
34536
- options: [
34537
- {
34538
- value: "",
34539
- label: t("_self")
34540
- },
34541
- {
34542
- value: "_blank",
34543
- label: t("_blank")
34544
- }
34545
- ]
34546
- })));
34547
- }, [focusIdx2]);
34548
- }
34549
- function Margin() {
34550
- const { focusIdx: focusIdx2 } = useFocusIdx();
34551
- return useMemo(() => {
34552
- return /* @__PURE__ */ React__default.createElement(Stack$4, {
34553
- vertical: true,
34554
- spacing: "extraTight"
34555
- }, /* @__PURE__ */ React__default.createElement(TextStyle, {
34556
- size: "large"
34557
- }, t("Margin")), /* @__PURE__ */ React__default.createElement(Stack$4, {
34558
- wrap: false
34559
- }, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34560
- fill: true
34561
- }, /* @__PURE__ */ React__default.createElement(TextField, {
34562
- label: t("Top"),
34563
- quickchange: true,
34564
- name: `${focusIdx2}.attributes.marginTop`,
34565
- inline: true
34566
- })), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34567
- fill: true
34568
- }, /* @__PURE__ */ React__default.createElement(TextField, {
34569
- label: t("Bottom"),
34570
- quickchange: true,
34571
- name: `${focusIdx2}.attributes.marginBottom`,
34572
- inline: true
34573
- }))), /* @__PURE__ */ React__default.createElement(Stack$4, {
34574
- wrap: false
34575
- }, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34576
- fill: true
34577
- }, /* @__PURE__ */ React__default.createElement(TextField, {
34578
- label: t("Left"),
34579
- quickchange: true,
34580
- name: `${focusIdx2}.attributes.marginLeft`,
34581
- inline: true
34582
- })), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34583
- fill: true
34584
- }, /* @__PURE__ */ React__default.createElement(TextField, {
34585
- label: t("Right"),
34586
- quickchange: true,
34587
- name: `${focusIdx2}.attributes.marginRight`,
34588
- inline: true
34589
- }))));
34590
- }, [focusIdx2]);
34591
- }
34592
- function BorderColor() {
34593
- const { focusIdx: focusIdx2 } = useFocusIdx();
34594
- return useMemo(() => {
34595
- return /* @__PURE__ */ React__default.createElement(ColorPickerField, {
34596
- label: t("Color"),
34597
- name: `${focusIdx2}.attributes.border-color`
34598
- });
34599
- }, [focusIdx2]);
34600
- }
34601
- function FontSize$1() {
34602
- const { focusIdx: focusIdx2 } = useFocusIdx();
34603
- return /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
34604
- label: t("Font size (px)"),
34605
- name: `${focusIdx2}.attributes.font-size`,
34606
- config: pixelAdapter,
34607
- autoComplete: "off"
34608
- });
34609
- }
34610
34521
  function getContextMergeTags(mergeTags2, context, idx) {
34611
34522
  const loop = (currentIdx, combineMergeTags) => {
34612
34523
  var _a, _b;
@@ -34717,6 +34628,109 @@ const MergeTags$1 = React__default.memo((props) => {
34717
34628
  }
34718
34629
  }));
34719
34630
  });
34631
+ function Link() {
34632
+ const { focusIdx: focusIdx2 } = useFocusIdx();
34633
+ const { input } = useField(`${focusIdx2}.attributes.href`, {
34634
+ parse: (v) => v
34635
+ });
34636
+ return useMemo(() => {
34637
+ return /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
34638
+ span: 11
34639
+ }, /* @__PURE__ */ React__default.createElement(TextField, {
34640
+ prefix: /* @__PURE__ */ React__default.createElement(IconLink$1, null),
34641
+ label: /* @__PURE__ */ React__default.createElement(Space$1, null, /* @__PURE__ */ React__default.createElement("span", null, t("Href"), "\xA0\xA0\xA0"), /* @__PURE__ */ React__default.createElement(Popover$1, {
34642
+ trigger: "click",
34643
+ content: /* @__PURE__ */ React__default.createElement(MergeTags$1, {
34644
+ value: input.value,
34645
+ onChange: input.onChange
34646
+ })
34647
+ }, /* @__PURE__ */ React__default.createElement(Button$4, {
34648
+ type: "text",
34649
+ icon: /* @__PURE__ */ React__default.createElement(IconFont, {
34650
+ iconName: "icon-merge-tags"
34651
+ })
34652
+ }))),
34653
+ name: `${focusIdx2}.attributes.href`
34654
+ })), /* @__PURE__ */ React__default.createElement(Grid.Col, {
34655
+ offset: 1,
34656
+ span: 11
34657
+ }, /* @__PURE__ */ React__default.createElement(SelectField, {
34658
+ label: t("Target"),
34659
+ name: `${focusIdx2}.attributes.target`,
34660
+ options: [
34661
+ {
34662
+ value: "",
34663
+ label: t("_self")
34664
+ },
34665
+ {
34666
+ value: "_blank",
34667
+ label: t("_blank")
34668
+ }
34669
+ ]
34670
+ })));
34671
+ }, [focusIdx2]);
34672
+ }
34673
+ function Margin() {
34674
+ const { focusIdx: focusIdx2 } = useFocusIdx();
34675
+ return useMemo(() => {
34676
+ return /* @__PURE__ */ React__default.createElement(Stack$4, {
34677
+ vertical: true,
34678
+ spacing: "extraTight"
34679
+ }, /* @__PURE__ */ React__default.createElement(TextStyle, {
34680
+ size: "large"
34681
+ }, t("Margin")), /* @__PURE__ */ React__default.createElement(Stack$4, {
34682
+ wrap: false
34683
+ }, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34684
+ fill: true
34685
+ }, /* @__PURE__ */ React__default.createElement(TextField, {
34686
+ label: t("Top"),
34687
+ quickchange: true,
34688
+ name: `${focusIdx2}.attributes.marginTop`,
34689
+ inline: true
34690
+ })), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34691
+ fill: true
34692
+ }, /* @__PURE__ */ React__default.createElement(TextField, {
34693
+ label: t("Bottom"),
34694
+ quickchange: true,
34695
+ name: `${focusIdx2}.attributes.marginBottom`,
34696
+ inline: true
34697
+ }))), /* @__PURE__ */ React__default.createElement(Stack$4, {
34698
+ wrap: false
34699
+ }, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34700
+ fill: true
34701
+ }, /* @__PURE__ */ React__default.createElement(TextField, {
34702
+ label: t("Left"),
34703
+ quickchange: true,
34704
+ name: `${focusIdx2}.attributes.marginLeft`,
34705
+ inline: true
34706
+ })), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
34707
+ fill: true
34708
+ }, /* @__PURE__ */ React__default.createElement(TextField, {
34709
+ label: t("Right"),
34710
+ quickchange: true,
34711
+ name: `${focusIdx2}.attributes.marginRight`,
34712
+ inline: true
34713
+ }))));
34714
+ }, [focusIdx2]);
34715
+ }
34716
+ function BorderColor() {
34717
+ const { focusIdx: focusIdx2 } = useFocusIdx();
34718
+ return useMemo(() => {
34719
+ return /* @__PURE__ */ React__default.createElement(ColorPickerField, {
34720
+ label: t("Color"),
34721
+ name: `${focusIdx2}.attributes.border-color`
34722
+ });
34723
+ }, [focusIdx2]);
34724
+ }
34725
+ function FontSize$1() {
34726
+ const { focusIdx: focusIdx2 } = useFocusIdx();
34727
+ return /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
34728
+ label: t("Font size (px)"),
34729
+ name: `${focusIdx2}.attributes.font-size`,
34730
+ config: pixelAdapter,
34731
+ autoComplete: "off"
34732
+ });
34733
+ }
34720
34734
  const borderStyleOptions = [
34721
34735
  {
34722
34736
  value: "dashed",