@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 +33 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -8
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10702,6 +10702,7 @@ function Divider() {
|
|
|
10702
10702
|
function cmd(fn) {
|
|
10703
10703
|
return (e) => {
|
|
10704
10704
|
e.preventDefault();
|
|
10705
|
+
e.stopPropagation();
|
|
10705
10706
|
fn();
|
|
10706
10707
|
};
|
|
10707
10708
|
}
|
|
@@ -10874,15 +10875,27 @@ function RichEditorToolbar(props) {
|
|
|
10874
10875
|
]
|
|
10875
10876
|
}
|
|
10876
10877
|
) }),
|
|
10877
|
-
/* @__PURE__ */ jsx(
|
|
10878
|
-
|
|
10878
|
+
/* @__PURE__ */ jsx(
|
|
10879
|
+
PopoverContent,
|
|
10879
10880
|
{
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10881
|
+
className: "w-auto p-0",
|
|
10882
|
+
align: "start",
|
|
10883
|
+
position: "bottom",
|
|
10884
|
+
style: popoverStyle,
|
|
10885
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
10886
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
10887
|
+
onFocusOutside: (e) => e.preventDefault(),
|
|
10888
|
+
children: editor && /* @__PURE__ */ jsx(
|
|
10889
|
+
TextColorPicker,
|
|
10890
|
+
{
|
|
10891
|
+
editor,
|
|
10892
|
+
currentColor: state.textColor,
|
|
10893
|
+
colors: Array.isArray(toolbar.textColor) ? toolbar.textColor : void 0,
|
|
10894
|
+
onClose: () => setColorPickerOpen(false)
|
|
10895
|
+
}
|
|
10896
|
+
)
|
|
10884
10897
|
}
|
|
10885
|
-
)
|
|
10898
|
+
)
|
|
10886
10899
|
] })
|
|
10887
10900
|
] }),
|
|
10888
10901
|
showAlignGroup && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -10984,7 +10997,19 @@ function RichEditorToolbar(props) {
|
|
|
10984
10997
|
children: /* @__PURE__ */ jsx(Table$1, { size: 16 })
|
|
10985
10998
|
}
|
|
10986
10999
|
) }),
|
|
10987
|
-
/* @__PURE__ */ jsx(
|
|
11000
|
+
/* @__PURE__ */ jsx(
|
|
11001
|
+
PopoverContent,
|
|
11002
|
+
{
|
|
11003
|
+
className: "w-auto p-0",
|
|
11004
|
+
align: "start",
|
|
11005
|
+
position: "bottom",
|
|
11006
|
+
style: popoverStyle,
|
|
11007
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
11008
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
11009
|
+
onFocusOutside: (e) => e.preventDefault(),
|
|
11010
|
+
children: editor && /* @__PURE__ */ jsx(TableGridPicker, { editor, onClose: () => setTablePickerOpen(false) })
|
|
11011
|
+
}
|
|
11012
|
+
)
|
|
10988
11013
|
] }),
|
|
10989
11014
|
state.isTable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10990
11015
|
/* @__PURE__ */ jsx(
|