easy-email-extensions 3.2.1-alpha.6 → 3.2.1-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1,3 @@
1
- export declare function FontFamily(): JSX.Element;
1
+ export declare function FontFamily({ name }: {
2
+ name?: string;
3
+ }): JSX.Element;
package/lib/index2.js CHANGED
@@ -39832,7 +39832,7 @@ function EyeIcon() {
39832
39832
  onClick: onToggleVisible
39833
39833
  });
39834
39834
  }
39835
- function FontFamily() {
39835
+ function FontFamily({ name }) {
39836
39836
  const { focusIdx: focusIdx2 } = useFocusIdx();
39837
39837
  const { fontList: fontList2 } = useFontFamily();
39838
39838
  return useMemo(() => {
@@ -39840,10 +39840,10 @@ function FontFamily() {
39840
39840
  style: { minWidth: 100, flex: 1 },
39841
39841
  showSearch: true,
39842
39842
  label: "Font family",
39843
- name: `${focusIdx2}.attributes.font-family`,
39843
+ name: name || `${focusIdx2}.attributes.font-family`,
39844
39844
  options: fontList2
39845
39845
  });
39846
- }, [focusIdx2, fontList2]);
39846
+ }, [focusIdx2, fontList2, name]);
39847
39847
  }
39848
39848
  function Page() {
39849
39849
  const { focusIdx: focusIdx2 } = useFocusIdx();
@@ -39885,7 +39885,9 @@ function Page() {
39885
39885
  spacing: "tight"
39886
39886
  }, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
39887
39887
  span: 11
39888
- }, /* @__PURE__ */ React__default.createElement(FontFamily, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
39888
+ }, /* @__PURE__ */ React__default.createElement(FontFamily, {
39889
+ name: `${focusIdx2}.data.value.font-family`
39890
+ })), /* @__PURE__ */ React__default.createElement(Grid.Col, {
39889
39891
  offset: 1,
39890
39892
  span: 11
39891
39893
  }, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {