@farmzone/fz-react-ui 1.1.10 → 1.1.11

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.cjs CHANGED
@@ -10739,6 +10739,7 @@ function Divider() {
10739
10739
  function cmd(fn) {
10740
10740
  return (e) => {
10741
10741
  e.preventDefault();
10742
+ e.stopPropagation();
10742
10743
  fn();
10743
10744
  };
10744
10745
  }
@@ -10911,15 +10912,27 @@ function RichEditorToolbar(props) {
10911
10912
  ]
10912
10913
  }
10913
10914
  ) }),
10914
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0", align: "start", position: "bottom", style: popoverStyle, children: editor && /* @__PURE__ */ jsxRuntime.jsx(
10915
- TextColorPicker,
10915
+ /* @__PURE__ */ jsxRuntime.jsx(
10916
+ PopoverContent,
10916
10917
  {
10917
- editor,
10918
- currentColor: state.textColor,
10919
- colors: Array.isArray(toolbar.textColor) ? toolbar.textColor : void 0,
10920
- onClose: () => setColorPickerOpen(false)
10918
+ className: "w-auto p-0",
10919
+ align: "start",
10920
+ position: "bottom",
10921
+ style: popoverStyle,
10922
+ onMouseDown: (e) => e.stopPropagation(),
10923
+ onOpenAutoFocus: (e) => e.preventDefault(),
10924
+ onFocusOutside: (e) => e.preventDefault(),
10925
+ children: editor && /* @__PURE__ */ jsxRuntime.jsx(
10926
+ TextColorPicker,
10927
+ {
10928
+ editor,
10929
+ currentColor: state.textColor,
10930
+ colors: Array.isArray(toolbar.textColor) ? toolbar.textColor : void 0,
10931
+ onClose: () => setColorPickerOpen(false)
10932
+ }
10933
+ )
10921
10934
  }
10922
- ) })
10935
+ )
10923
10936
  ] })
10924
10937
  ] }),
10925
10938
  showAlignGroup && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -11021,7 +11034,19 @@ function RichEditorToolbar(props) {
11021
11034
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Table, { size: 16 })
11022
11035
  }
11023
11036
  ) }),
11024
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0", align: "start", position: "bottom", style: popoverStyle, children: editor && /* @__PURE__ */ jsxRuntime.jsx(TableGridPicker, { editor, onClose: () => setTablePickerOpen(false) }) })
11037
+ /* @__PURE__ */ jsxRuntime.jsx(
11038
+ PopoverContent,
11039
+ {
11040
+ className: "w-auto p-0",
11041
+ align: "start",
11042
+ position: "bottom",
11043
+ style: popoverStyle,
11044
+ onMouseDown: (e) => e.stopPropagation(),
11045
+ onOpenAutoFocus: (e) => e.preventDefault(),
11046
+ onFocusOutside: (e) => e.preventDefault(),
11047
+ children: editor && /* @__PURE__ */ jsxRuntime.jsx(TableGridPicker, { editor, onClose: () => setTablePickerOpen(false) })
11048
+ }
11049
+ )
11025
11050
  ] }),
11026
11051
  state.isTable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
11027
11052
  /* @__PURE__ */ jsxRuntime.jsx(