@fileverse-dev/fortune-react 1.0.2-mod-108 → 1.0.2-mod-110
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/components/Toolbar/Combo.d.ts +1 -0
- package/dist/index.css +4 -16
- package/dist/index.esm.css +4 -16
- package/dist/index.esm.js +20 -11
- package/dist/index.js +20 -11
- package/dist/index.umd.css +4 -16
- package/dist/index.umd.js +20 -11
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ type Props = {
|
|
|
6
6
|
showArrow?: boolean;
|
|
7
7
|
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
8
8
|
children: (setOpen: React.Dispatch<React.SetStateAction<boolean>>) => React.ReactNode;
|
|
9
|
+
fillColor?: string;
|
|
9
10
|
};
|
|
10
11
|
declare const Combo: React.FC<Props>;
|
|
11
12
|
export default Combo;
|
package/dist/index.css
CHANGED
|
@@ -1627,28 +1627,12 @@ line-height: 16px; /* 133.333% */
|
|
|
1627
1627
|
|
|
1628
1628
|
.fortune-insert-button {
|
|
1629
1629
|
width: 100% !important;
|
|
1630
|
-
background-color: #000 !important;
|
|
1631
|
-
color: white !important;
|
|
1632
1630
|
border: none !important;
|
|
1633
1631
|
border-radius: 6px !important;
|
|
1634
1632
|
padding: 12px !important;
|
|
1635
1633
|
font-weight: 500 !important;
|
|
1636
1634
|
}
|
|
1637
1635
|
|
|
1638
|
-
.fortune-insert-button:hover {
|
|
1639
|
-
background-color: #333 !important;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
.fortune-insert-button:disabled {
|
|
1643
|
-
background-color: #ccc !important;
|
|
1644
|
-
color: #666 !important;
|
|
1645
|
-
cursor: not-allowed !important;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
.fortune-insert-button:disabled:hover {
|
|
1649
|
-
background-color: #ccc !important;
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
1636
|
.fortune-link-modify-modal.link-toolbar {
|
|
1653
1637
|
display: flex;
|
|
1654
1638
|
flex-direction: row;
|
|
@@ -2672,6 +2656,10 @@ input[type="number"].condition-rules-project-input {
|
|
|
2672
2656
|
gap: 4px;
|
|
2673
2657
|
}
|
|
2674
2658
|
|
|
2659
|
+
.custom-color-button > svg > path:first-child {
|
|
2660
|
+
display: none !important;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2675
2663
|
#fortune-split-column {
|
|
2676
2664
|
/* position: absolute;
|
|
2677
2665
|
padding: 30px 42px;
|
package/dist/index.esm.css
CHANGED
|
@@ -1627,28 +1627,12 @@ line-height: 16px; /* 133.333% */
|
|
|
1627
1627
|
|
|
1628
1628
|
.fortune-insert-button {
|
|
1629
1629
|
width: 100% !important;
|
|
1630
|
-
background-color: #000 !important;
|
|
1631
|
-
color: white !important;
|
|
1632
1630
|
border: none !important;
|
|
1633
1631
|
border-radius: 6px !important;
|
|
1634
1632
|
padding: 12px !important;
|
|
1635
1633
|
font-weight: 500 !important;
|
|
1636
1634
|
}
|
|
1637
1635
|
|
|
1638
|
-
.fortune-insert-button:hover {
|
|
1639
|
-
background-color: #333 !important;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
.fortune-insert-button:disabled {
|
|
1643
|
-
background-color: #ccc !important;
|
|
1644
|
-
color: #666 !important;
|
|
1645
|
-
cursor: not-allowed !important;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
.fortune-insert-button:disabled:hover {
|
|
1649
|
-
background-color: #ccc !important;
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
1636
|
.fortune-link-modify-modal.link-toolbar {
|
|
1653
1637
|
display: flex;
|
|
1654
1638
|
flex-direction: row;
|
|
@@ -2672,6 +2656,10 @@ input[type="number"].condition-rules-project-input {
|
|
|
2672
2656
|
gap: 4px;
|
|
2673
2657
|
}
|
|
2674
2658
|
|
|
2659
|
+
.custom-color-button > svg > path:first-child {
|
|
2660
|
+
display: none !important;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2675
2663
|
#fortune-split-column {
|
|
2676
2664
|
/* position: absolute;
|
|
2677
2665
|
padding: 30px 42px;
|
package/dist/index.esm.js
CHANGED
|
@@ -1942,7 +1942,7 @@ var SearchReplace = function SearchReplace(_ref) {
|
|
|
1942
1942
|
}), /*#__PURE__*/React.createElement("span", null, findAndReplace.wholeTextbox)))), /*#__PURE__*/React.createElement(Divider$2, {
|
|
1943
1943
|
className: "w-full border-t-[1px]"
|
|
1944
1944
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1945
|
-
className: "flex flex-row gap-2 justify-
|
|
1945
|
+
className: "flex flex-row gap-2 justify-end items-center mb-4"
|
|
1946
1946
|
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
1947
1947
|
id: "replaceAllBtn",
|
|
1948
1948
|
variant: "secondary",
|
|
@@ -4564,7 +4564,7 @@ var Button = function Button(_ref) {
|
|
|
4564
4564
|
tabIndex: 0,
|
|
4565
4565
|
role: "button",
|
|
4566
4566
|
style: selected ? {
|
|
4567
|
-
backgroundColor: "#
|
|
4567
|
+
backgroundColor: "#FFDF0A"
|
|
4568
4568
|
} : style
|
|
4569
4569
|
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
4570
4570
|
name: getLucideIcon(iconId),
|
|
@@ -4594,7 +4594,8 @@ var Combo = function Combo(_ref) {
|
|
|
4594
4594
|
iconId = _ref.iconId,
|
|
4595
4595
|
_ref$showArrow = _ref.showArrow,
|
|
4596
4596
|
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
4597
|
-
children = _ref.children
|
|
4597
|
+
children = _ref.children,
|
|
4598
|
+
fillColor = _ref.fillColor;
|
|
4598
4599
|
var style = {
|
|
4599
4600
|
userSelect: "none"
|
|
4600
4601
|
};
|
|
@@ -4604,7 +4605,7 @@ var Combo = function Combo(_ref) {
|
|
|
4604
4605
|
setOpen = _useState2[1];
|
|
4605
4606
|
var buttonRef = useRef(null);
|
|
4606
4607
|
var isLucideIcon = useMemo(function () {
|
|
4607
|
-
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(iconId);
|
|
4608
|
+
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template", "font-color", "background"].includes(iconId);
|
|
4608
4609
|
}, [iconId]);
|
|
4609
4610
|
var trigger = !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
4610
4611
|
text: tooltip,
|
|
@@ -4635,7 +4636,12 @@ var Combo = function Combo(_ref) {
|
|
|
4635
4636
|
onClick: function onClick() {
|
|
4636
4637
|
return setOpen(!open);
|
|
4637
4638
|
},
|
|
4638
|
-
className: "fortune-toolbar-combo-button"
|
|
4639
|
+
className: cn("fortune-toolbar-combo-button", {
|
|
4640
|
+
"custom-color-button": iconId === "font-color" && fillColor
|
|
4641
|
+
}),
|
|
4642
|
+
style: {
|
|
4643
|
+
color: iconId === "font-color" ? fillColor : undefined
|
|
4644
|
+
}
|
|
4639
4645
|
})));
|
|
4640
4646
|
return /*#__PURE__*/React.createElement("div", {
|
|
4641
4647
|
ref: buttonRef,
|
|
@@ -5342,7 +5348,7 @@ var CustomButton = function CustomButton(_ref) {
|
|
|
5342
5348
|
tabIndex: 0,
|
|
5343
5349
|
role: "button",
|
|
5344
5350
|
style: selected ? {
|
|
5345
|
-
backgroundColor: "#
|
|
5351
|
+
backgroundColor: "#FFDF0A"
|
|
5346
5352
|
} : {}
|
|
5347
5353
|
}, /*#__PURE__*/React.createElement(CustomIcon, {
|
|
5348
5354
|
width: 16,
|
|
@@ -5623,7 +5629,9 @@ var MoreItemsContaier = function MoreItemsContaier(_ref) {
|
|
|
5623
5629
|
children = _ref.children;
|
|
5624
5630
|
var containerRef = useRef(null);
|
|
5625
5631
|
useOutsideClick(containerRef, function () {
|
|
5626
|
-
|
|
5632
|
+
setTimeout(function () {
|
|
5633
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
5634
|
+
}, 100);
|
|
5627
5635
|
}, [containerRef, onClose]);
|
|
5628
5636
|
return /*#__PURE__*/React.createElement("div", {
|
|
5629
5637
|
ref: containerRef,
|
|
@@ -5876,18 +5884,19 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5876
5884
|
key: name
|
|
5877
5885
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5878
5886
|
style: {
|
|
5879
|
-
width:
|
|
5880
|
-
height:
|
|
5887
|
+
width: 24,
|
|
5888
|
+
height: 4,
|
|
5881
5889
|
backgroundColor: name === "font-color" ? refs.globalCache.recentTextColor : refs.globalCache.recentBackgroundColor,
|
|
5882
5890
|
position: "absolute",
|
|
5883
|
-
bottom:
|
|
5884
|
-
left:
|
|
5891
|
+
bottom: 2,
|
|
5892
|
+
left: 3,
|
|
5885
5893
|
zIndex: 100
|
|
5886
5894
|
}
|
|
5887
5895
|
}), /*#__PURE__*/React.createElement(Combo, {
|
|
5888
5896
|
iconId: name,
|
|
5889
5897
|
tooltip: tooltip,
|
|
5890
5898
|
showArrow: false,
|
|
5899
|
+
fillColor: name === "font-color" ? refs.globalCache.recentTextColor : undefined,
|
|
5891
5900
|
onClick: function onClick() {
|
|
5892
5901
|
var color = name === "font-color" ? refs.globalCache.recentTextColor : refs.globalCache.recentBackgroundColor;
|
|
5893
5902
|
if (color) pick(color);
|
package/dist/index.js
CHANGED
|
@@ -1954,7 +1954,7 @@ var SearchReplace = function SearchReplace(_ref) {
|
|
|
1954
1954
|
}), /*#__PURE__*/React__default['default'].createElement("span", null, findAndReplace.wholeTextbox)))), /*#__PURE__*/React__default['default'].createElement(ui.Divider, {
|
|
1955
1955
|
className: "w-full border-t-[1px]"
|
|
1956
1956
|
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1957
|
-
className: "flex flex-row gap-2 justify-
|
|
1957
|
+
className: "flex flex-row gap-2 justify-end items-center mb-4"
|
|
1958
1958
|
}, /*#__PURE__*/React__default['default'].createElement(ui.Button, {
|
|
1959
1959
|
id: "replaceAllBtn",
|
|
1960
1960
|
variant: "secondary",
|
|
@@ -4576,7 +4576,7 @@ var Button = function Button(_ref) {
|
|
|
4576
4576
|
tabIndex: 0,
|
|
4577
4577
|
role: "button",
|
|
4578
4578
|
style: selected ? {
|
|
4579
|
-
backgroundColor: "#
|
|
4579
|
+
backgroundColor: "#FFDF0A"
|
|
4580
4580
|
} : style
|
|
4581
4581
|
}, /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
4582
4582
|
name: getLucideIcon(iconId),
|
|
@@ -4606,7 +4606,8 @@ var Combo = function Combo(_ref) {
|
|
|
4606
4606
|
iconId = _ref.iconId,
|
|
4607
4607
|
_ref$showArrow = _ref.showArrow,
|
|
4608
4608
|
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
4609
|
-
children = _ref.children
|
|
4609
|
+
children = _ref.children,
|
|
4610
|
+
fillColor = _ref.fillColor;
|
|
4610
4611
|
var style = {
|
|
4611
4612
|
userSelect: "none"
|
|
4612
4613
|
};
|
|
@@ -4616,7 +4617,7 @@ var Combo = function Combo(_ref) {
|
|
|
4616
4617
|
setOpen = _useState2[1];
|
|
4617
4618
|
var buttonRef = React.useRef(null);
|
|
4618
4619
|
var isLucideIcon = React.useMemo(function () {
|
|
4619
|
-
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(iconId);
|
|
4620
|
+
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template", "font-color", "background"].includes(iconId);
|
|
4620
4621
|
}, [iconId]);
|
|
4621
4622
|
var trigger = !isLucideIcon ? (/*#__PURE__*/React__default['default'].createElement(ui.Tooltip, {
|
|
4622
4623
|
text: tooltip,
|
|
@@ -4647,7 +4648,12 @@ var Combo = function Combo(_ref) {
|
|
|
4647
4648
|
onClick: function onClick() {
|
|
4648
4649
|
return setOpen(!open);
|
|
4649
4650
|
},
|
|
4650
|
-
className: "fortune-toolbar-combo-button"
|
|
4651
|
+
className: ui.cn("fortune-toolbar-combo-button", {
|
|
4652
|
+
"custom-color-button": iconId === "font-color" && fillColor
|
|
4653
|
+
}),
|
|
4654
|
+
style: {
|
|
4655
|
+
color: iconId === "font-color" ? fillColor : undefined
|
|
4656
|
+
}
|
|
4651
4657
|
})));
|
|
4652
4658
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4653
4659
|
ref: buttonRef,
|
|
@@ -5354,7 +5360,7 @@ var CustomButton = function CustomButton(_ref) {
|
|
|
5354
5360
|
tabIndex: 0,
|
|
5355
5361
|
role: "button",
|
|
5356
5362
|
style: selected ? {
|
|
5357
|
-
backgroundColor: "#
|
|
5363
|
+
backgroundColor: "#FFDF0A"
|
|
5358
5364
|
} : {}
|
|
5359
5365
|
}, /*#__PURE__*/React__default['default'].createElement(CustomIcon, {
|
|
5360
5366
|
width: 16,
|
|
@@ -5635,7 +5641,9 @@ var MoreItemsContaier = function MoreItemsContaier(_ref) {
|
|
|
5635
5641
|
children = _ref.children;
|
|
5636
5642
|
var containerRef = React.useRef(null);
|
|
5637
5643
|
useOutsideClick(containerRef, function () {
|
|
5638
|
-
|
|
5644
|
+
setTimeout(function () {
|
|
5645
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
5646
|
+
}, 100);
|
|
5639
5647
|
}, [containerRef, onClose]);
|
|
5640
5648
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5641
5649
|
ref: containerRef,
|
|
@@ -5888,18 +5896,19 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5888
5896
|
key: name
|
|
5889
5897
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5890
5898
|
style: {
|
|
5891
|
-
width:
|
|
5892
|
-
height:
|
|
5899
|
+
width: 24,
|
|
5900
|
+
height: 4,
|
|
5893
5901
|
backgroundColor: name === "font-color" ? refs.globalCache.recentTextColor : refs.globalCache.recentBackgroundColor,
|
|
5894
5902
|
position: "absolute",
|
|
5895
|
-
bottom:
|
|
5896
|
-
left:
|
|
5903
|
+
bottom: 2,
|
|
5904
|
+
left: 3,
|
|
5897
5905
|
zIndex: 100
|
|
5898
5906
|
}
|
|
5899
5907
|
}), /*#__PURE__*/React__default['default'].createElement(Combo, {
|
|
5900
5908
|
iconId: name,
|
|
5901
5909
|
tooltip: tooltip,
|
|
5902
5910
|
showArrow: false,
|
|
5911
|
+
fillColor: name === "font-color" ? refs.globalCache.recentTextColor : undefined,
|
|
5903
5912
|
onClick: function onClick() {
|
|
5904
5913
|
var color = name === "font-color" ? refs.globalCache.recentTextColor : refs.globalCache.recentBackgroundColor;
|
|
5905
5914
|
if (color) pick(color);
|
package/dist/index.umd.css
CHANGED
|
@@ -1627,28 +1627,12 @@ line-height: 16px; /* 133.333% */
|
|
|
1627
1627
|
|
|
1628
1628
|
.fortune-insert-button {
|
|
1629
1629
|
width: 100% !important;
|
|
1630
|
-
background-color: #000 !important;
|
|
1631
|
-
color: white !important;
|
|
1632
1630
|
border: none !important;
|
|
1633
1631
|
border-radius: 6px !important;
|
|
1634
1632
|
padding: 12px !important;
|
|
1635
1633
|
font-weight: 500 !important;
|
|
1636
1634
|
}
|
|
1637
1635
|
|
|
1638
|
-
.fortune-insert-button:hover {
|
|
1639
|
-
background-color: #333 !important;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
.fortune-insert-button:disabled {
|
|
1643
|
-
background-color: #ccc !important;
|
|
1644
|
-
color: #666 !important;
|
|
1645
|
-
cursor: not-allowed !important;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
.fortune-insert-button:disabled:hover {
|
|
1649
|
-
background-color: #ccc !important;
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
1636
|
.fortune-link-modify-modal.link-toolbar {
|
|
1653
1637
|
display: flex;
|
|
1654
1638
|
flex-direction: row;
|
|
@@ -2672,6 +2656,10 @@ input[type="number"].condition-rules-project-input {
|
|
|
2672
2656
|
gap: 4px;
|
|
2673
2657
|
}
|
|
2674
2658
|
|
|
2659
|
+
.custom-color-button > svg > path:first-child {
|
|
2660
|
+
display: none !important;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2675
2663
|
#fortune-split-column {
|
|
2676
2664
|
/* position: absolute;
|
|
2677
2665
|
padding: 30px 42px;
|
package/dist/index.umd.js
CHANGED
|
@@ -106747,7 +106747,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
106747
106747
|
}), /*#__PURE__*/React__default['default'].createElement("span", null, findAndReplace.wholeTextbox)))), /*#__PURE__*/React__default['default'].createElement(o8, {
|
|
106748
106748
|
className: "w-full border-t-[1px]"
|
|
106749
106749
|
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
106750
|
-
className: "flex flex-row gap-2 justify-
|
|
106750
|
+
className: "flex flex-row gap-2 justify-end items-center mb-4"
|
|
106751
106751
|
}, /*#__PURE__*/React__default['default'].createElement(_t, {
|
|
106752
106752
|
id: "replaceAllBtn",
|
|
106753
106753
|
variant: "secondary",
|
|
@@ -109369,7 +109369,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
109369
109369
|
tabIndex: 0,
|
|
109370
109370
|
role: "button",
|
|
109371
109371
|
style: selected ? {
|
|
109372
|
-
backgroundColor: "#
|
|
109372
|
+
backgroundColor: "#FFDF0A"
|
|
109373
109373
|
} : style
|
|
109374
109374
|
}, /*#__PURE__*/React__default['default'].createElement(Ce, {
|
|
109375
109375
|
name: getLucideIcon(iconId),
|
|
@@ -109399,7 +109399,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
109399
109399
|
iconId = _ref.iconId,
|
|
109400
109400
|
_ref$showArrow = _ref.showArrow,
|
|
109401
109401
|
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
109402
|
-
children = _ref.children
|
|
109402
|
+
children = _ref.children,
|
|
109403
|
+
fillColor = _ref.fillColor;
|
|
109403
109404
|
var style = {
|
|
109404
109405
|
userSelect: "none"
|
|
109405
109406
|
};
|
|
@@ -109409,7 +109410,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
109409
109410
|
setOpen = _useState2[1];
|
|
109410
109411
|
var buttonRef = React.useRef(null);
|
|
109411
109412
|
var isLucideIcon = React.useMemo(function () {
|
|
109412
|
-
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(iconId);
|
|
109413
|
+
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template", "font-color", "background"].includes(iconId);
|
|
109413
109414
|
}, [iconId]);
|
|
109414
109415
|
var trigger = !isLucideIcon ? (/*#__PURE__*/React__default['default'].createElement(Ts, {
|
|
109415
109416
|
text: tooltip,
|
|
@@ -109440,7 +109441,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
109440
109441
|
onClick: function onClick() {
|
|
109441
109442
|
return setOpen(!open);
|
|
109442
109443
|
},
|
|
109443
|
-
className: "fortune-toolbar-combo-button"
|
|
109444
|
+
className: S$1("fortune-toolbar-combo-button", {
|
|
109445
|
+
"custom-color-button": iconId === "font-color" && fillColor
|
|
109446
|
+
}),
|
|
109447
|
+
style: {
|
|
109448
|
+
color: iconId === "font-color" ? fillColor : undefined
|
|
109449
|
+
}
|
|
109444
109450
|
})));
|
|
109445
109451
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
109446
109452
|
ref: buttonRef,
|
|
@@ -110147,7 +110153,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
110147
110153
|
tabIndex: 0,
|
|
110148
110154
|
role: "button",
|
|
110149
110155
|
style: selected ? {
|
|
110150
|
-
backgroundColor: "#
|
|
110156
|
+
backgroundColor: "#FFDF0A"
|
|
110151
110157
|
} : {}
|
|
110152
110158
|
}, /*#__PURE__*/React__default['default'].createElement(CustomIcon, {
|
|
110153
110159
|
width: 16,
|
|
@@ -110428,7 +110434,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
110428
110434
|
children = _ref.children;
|
|
110429
110435
|
var containerRef = React.useRef(null);
|
|
110430
110436
|
useOutsideClick(containerRef, function () {
|
|
110431
|
-
|
|
110437
|
+
setTimeout(function () {
|
|
110438
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
110439
|
+
}, 100);
|
|
110432
110440
|
}, [containerRef, onClose]);
|
|
110433
110441
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
110434
110442
|
ref: containerRef,
|
|
@@ -110681,18 +110689,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
110681
110689
|
key: name
|
|
110682
110690
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
110683
110691
|
style: {
|
|
110684
|
-
width:
|
|
110685
|
-
height:
|
|
110692
|
+
width: 24,
|
|
110693
|
+
height: 4,
|
|
110686
110694
|
backgroundColor: name === "font-color" ? refs.globalCache.recentTextColor : refs.globalCache.recentBackgroundColor,
|
|
110687
110695
|
position: "absolute",
|
|
110688
|
-
bottom:
|
|
110689
|
-
left:
|
|
110696
|
+
bottom: 2,
|
|
110697
|
+
left: 3,
|
|
110690
110698
|
zIndex: 100
|
|
110691
110699
|
}
|
|
110692
110700
|
}), /*#__PURE__*/React__default['default'].createElement(Combo, {
|
|
110693
110701
|
iconId: name,
|
|
110694
110702
|
tooltip: tooltip,
|
|
110695
110703
|
showArrow: false,
|
|
110704
|
+
fillColor: name === "font-color" ? refs.globalCache.recentTextColor : undefined,
|
|
110696
110705
|
onClick: function onClick() {
|
|
110697
110706
|
var color = name === "font-color" ? refs.globalCache.recentTextColor : refs.globalCache.recentBackgroundColor;
|
|
110698
110707
|
if (color) pick(color);
|