easy-email-extensions 4.1.1 → 4.1.2

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.
@@ -1,6 +1,6 @@
1
1
  export declare function useFontFamily(): {
2
2
  fontList: {
3
3
  value: string;
4
- label: string;
4
+ label: JSX.Element;
5
5
  }[];
6
6
  };
package/lib/index2.js CHANGED
@@ -39793,6 +39793,21 @@ ImageManager.add(defaultImagesMap$1);
39793
39793
  function getImg$1(name) {
39794
39794
  return ImageManager.get(name);
39795
39795
  }
39796
+ const helperText = "_helperText_1m9nq_1";
39797
+ const labelHidden = "_label-hidden_1m9nq_9";
39798
+ const editTab = "_editTab_1m9nq_20";
39799
+ const inputWithUnit = "_inputWithUnit_1m9nq_27";
39800
+ const inputWithUnitSelectOption = "_inputWithUnitSelectOption_1m9nq_35";
39801
+ const colorPicker = "_colorPicker_1m9nq_40";
39802
+ var styles$3 = {
39803
+ helperText,
39804
+ "label-hidden": "_label-hidden_1m9nq_9",
39805
+ labelHidden,
39806
+ editTab,
39807
+ inputWithUnit,
39808
+ inputWithUnitSelectOption,
39809
+ colorPicker
39810
+ };
39796
39811
  function ColorPicker(props) {
39797
39812
  const { colors: presetColors, addCurrentColor } = useContext(PresetColorsContext);
39798
39813
  const [color, setColor] = useState("");
@@ -39819,12 +39834,14 @@ function ColorPicker(props) {
39819
39834
  title: props.label,
39820
39835
  trigger: "click"
39821
39836
  }, props), {
39822
- content: /* @__PURE__ */ React__default.createElement(SketchPicker, {
39837
+ content: /* @__PURE__ */ React__default.createElement("div", {
39838
+ className: styles$3.colorPicker
39839
+ }, /* @__PURE__ */ React__default.createElement(SketchPicker, {
39823
39840
  presetColors,
39824
39841
  color,
39825
39842
  disableAlpha: true,
39826
39843
  onChangeComplete
39827
- })
39844
+ }))
39828
39845
  }), children || /* @__PURE__ */ React__default.createElement("div", {
39829
39846
  style: {
39830
39847
  display: "inline-block",
@@ -39888,19 +39905,6 @@ function RadioGroup(props) {
39888
39905
  value: item2.value
39889
39906
  }, item2.label))));
39890
39907
  }
39891
- const helperText = "_helperText_k05ys_1";
39892
- const labelHidden = "_label-hidden_k05ys_9";
39893
- const editTab = "_editTab_k05ys_20";
39894
- const inputWithUnit = "_inputWithUnit_k05ys_27";
39895
- const inputWithUnitSelectOption = "_inputWithUnitSelectOption_k05ys_35";
39896
- var styles$3 = {
39897
- helperText,
39898
- "label-hidden": "_label-hidden_k05ys_9",
39899
- labelHidden,
39900
- editTab,
39901
- inputWithUnit,
39902
- inputWithUnitSelectOption
39903
- };
39904
39908
  let primaryId = 0;
39905
39909
  const parse = (v) => v;
39906
39910
  function enhancer(Component2, changeAdapter) {
@@ -40396,7 +40400,9 @@ function useFontFamily() {
40396
40400
  const options2 = addFonts.map((item2) => ({ value: item2.name, label: item2.name }));
40397
40401
  fonts.unshift(...options2);
40398
40402
  }
40399
- return fonts;
40403
+ return fonts.map((item2) => ({ value: item2.value, label: /* @__PURE__ */ React__default.createElement("span", {
40404
+ style: { fontFamily: item2.value }
40405
+ }, item2.label) }));
40400
40406
  }, [addFonts, defaultFontList]);
40401
40407
  return {
40402
40408
  fontList: fontList2