@fileverse-dev/fortune-react 1.2.77 → 1.2.78-cf
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/es/components/ConditionFormat/ConditionRules.js +15 -5
- package/es/components/ConditionFormat/formating.css +8 -10
- package/es/components/Workbook/index.js +12 -1
- package/lib/components/ConditionFormat/ConditionRules.js +15 -5
- package/lib/components/ConditionFormat/formating.css +8 -10
- package/lib/components/Workbook/index.js +12 -1
- package/package.json +2 -2
|
@@ -47,8 +47,8 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
47
47
|
protection = _j.protection,
|
|
48
48
|
generalDialog = _j.generalDialog;
|
|
49
49
|
var _k = useState({
|
|
50
|
-
textColor: "#
|
|
51
|
-
cellColor: "#
|
|
50
|
+
textColor: "#177E23",
|
|
51
|
+
cellColor: "#DDFBDF"
|
|
52
52
|
}),
|
|
53
53
|
colorRules = _k[0],
|
|
54
54
|
setColorRules = _k[1];
|
|
@@ -595,9 +595,19 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
595
595
|
}, "Formatting styles"), /*#__PURE__*/React.createElement("div", {
|
|
596
596
|
className: "toolbar-container"
|
|
597
597
|
}, /*#__PURE__*/React.createElement("div", {
|
|
598
|
-
className: "toolbar-header"
|
|
598
|
+
className: "toolbar-header",
|
|
599
|
+
style: {
|
|
600
|
+
backgroundColor: colorRules.cellColor,
|
|
601
|
+
color: colorRules.textColor,
|
|
602
|
+
textDecoration: underline ? "underline" : "",
|
|
603
|
+
textDecorationLine: strikethrough ? "line-through" : ""
|
|
604
|
+
}
|
|
599
605
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
600
|
-
className: "toolbar-title"
|
|
606
|
+
className: "toolbar-title",
|
|
607
|
+
style: {
|
|
608
|
+
fontWeight: bold ? "bold" : "",
|
|
609
|
+
fontStyle: italic ? "italic" : ""
|
|
610
|
+
}
|
|
601
611
|
}, "Formatting styles preview")), /*#__PURE__*/React.createElement("div", {
|
|
602
612
|
className: "toolbar-content"
|
|
603
613
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -774,7 +784,7 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
774
784
|
close("edit");
|
|
775
785
|
},
|
|
776
786
|
tabIndex: 0
|
|
777
|
-
}, "
|
|
787
|
+
}, "Update rule")) : (/*#__PURE__*/React.createElement(Button, {
|
|
778
788
|
variant: "default",
|
|
779
789
|
style: {
|
|
780
790
|
minWidth: "80px"
|
|
@@ -8,20 +8,18 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.toolbar-header {
|
|
11
|
-
background-color: #dcfce7;
|
|
12
11
|
padding: 4px 16px;
|
|
13
12
|
border-radius: var(--border-radius-sm, 4px) var(--border-radius-sm, 4px) var(--border-radius-none, 0) var(--border-radius-none, 0);
|
|
14
|
-
border-bottom: 1px solid hsl(var(--color-border-default, #E8EBEC));
|
|
15
|
-
background: hsl(var(--color-bg-success-light, #DDFBDF));
|
|
13
|
+
border-bottom: 1px solid hsl(var(--color-border-default, #E8EBEC));
|
|
14
|
+
background: hsl(var(--color-bg-success-light, #DDFBDF));
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
.toolbar-title {
|
|
19
|
-
|
|
20
|
-
font-
|
|
21
|
-
font-
|
|
22
|
-
font-
|
|
23
|
-
|
|
24
|
-
line-height: 20px;
|
|
18
|
+
font-family: "Helvetica Neue";
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
line-height: 20px;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
.toolbar-content {
|
|
@@ -100,4 +98,4 @@ line-height: 20px;
|
|
|
100
98
|
width: 24px;
|
|
101
99
|
height: 24px;
|
|
102
100
|
color: #1f2937;
|
|
103
|
-
}
|
|
101
|
+
}
|
|
@@ -680,7 +680,18 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
680
680
|
}
|
|
681
681
|
return /*#__PURE__*/React.createElement(WorkbookContext.Provider, {
|
|
682
682
|
value: providerValue
|
|
683
|
-
}, /*#__PURE__*/React.createElement(
|
|
683
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
684
|
+
id: "placeholder-conditional-format",
|
|
685
|
+
style: {
|
|
686
|
+
width: "500px",
|
|
687
|
+
height: "500px",
|
|
688
|
+
position: "fixed",
|
|
689
|
+
zIndex: "1000",
|
|
690
|
+
backgroundColor: "white",
|
|
691
|
+
padding: "12px",
|
|
692
|
+
top: "100px"
|
|
693
|
+
}
|
|
694
|
+
}), /*#__PURE__*/React.createElement(ModalProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
684
695
|
className: "fortune-container",
|
|
685
696
|
ref: workbookContainer,
|
|
686
697
|
onKeyDown: onKeyDown
|
|
@@ -56,8 +56,8 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
56
56
|
protection = _j.protection,
|
|
57
57
|
generalDialog = _j.generalDialog;
|
|
58
58
|
var _k = (0, _react.useState)({
|
|
59
|
-
textColor: "#
|
|
60
|
-
cellColor: "#
|
|
59
|
+
textColor: "#177E23",
|
|
60
|
+
cellColor: "#DDFBDF"
|
|
61
61
|
}),
|
|
62
62
|
colorRules = _k[0],
|
|
63
63
|
setColorRules = _k[1];
|
|
@@ -604,9 +604,19 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
604
604
|
}, "Formatting styles"), /*#__PURE__*/_react.default.createElement("div", {
|
|
605
605
|
className: "toolbar-container"
|
|
606
606
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
607
|
-
className: "toolbar-header"
|
|
607
|
+
className: "toolbar-header",
|
|
608
|
+
style: {
|
|
609
|
+
backgroundColor: colorRules.cellColor,
|
|
610
|
+
color: colorRules.textColor,
|
|
611
|
+
textDecoration: underline ? "underline" : "",
|
|
612
|
+
textDecorationLine: strikethrough ? "line-through" : ""
|
|
613
|
+
}
|
|
608
614
|
}, /*#__PURE__*/_react.default.createElement("h2", {
|
|
609
|
-
className: "toolbar-title"
|
|
615
|
+
className: "toolbar-title",
|
|
616
|
+
style: {
|
|
617
|
+
fontWeight: bold ? "bold" : "",
|
|
618
|
+
fontStyle: italic ? "italic" : ""
|
|
619
|
+
}
|
|
610
620
|
}, "Formatting styles preview")), /*#__PURE__*/_react.default.createElement("div", {
|
|
611
621
|
className: "toolbar-content"
|
|
612
622
|
}, /*#__PURE__*/_react.default.createElement(_ui.Button, {
|
|
@@ -783,7 +793,7 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
783
793
|
close("edit");
|
|
784
794
|
},
|
|
785
795
|
tabIndex: 0
|
|
786
|
-
}, "
|
|
796
|
+
}, "Update rule")) : (/*#__PURE__*/_react.default.createElement(_ui.Button, {
|
|
787
797
|
variant: "default",
|
|
788
798
|
style: {
|
|
789
799
|
minWidth: "80px"
|
|
@@ -8,20 +8,18 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.toolbar-header {
|
|
11
|
-
background-color: #dcfce7;
|
|
12
11
|
padding: 4px 16px;
|
|
13
12
|
border-radius: var(--border-radius-sm, 4px) var(--border-radius-sm, 4px) var(--border-radius-none, 0) var(--border-radius-none, 0);
|
|
14
|
-
border-bottom: 1px solid hsl(var(--color-border-default, #E8EBEC));
|
|
15
|
-
background: hsl(var(--color-bg-success-light, #DDFBDF));
|
|
13
|
+
border-bottom: 1px solid hsl(var(--color-border-default, #E8EBEC));
|
|
14
|
+
background: hsl(var(--color-bg-success-light, #DDFBDF));
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
.toolbar-title {
|
|
19
|
-
|
|
20
|
-
font-
|
|
21
|
-
font-
|
|
22
|
-
font-
|
|
23
|
-
|
|
24
|
-
line-height: 20px;
|
|
18
|
+
font-family: "Helvetica Neue";
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
line-height: 20px;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
.toolbar-content {
|
|
@@ -100,4 +98,4 @@ line-height: 20px;
|
|
|
100
98
|
width: 24px;
|
|
101
99
|
height: 24px;
|
|
102
100
|
color: #1f2937;
|
|
103
|
-
}
|
|
101
|
+
}
|
|
@@ -689,7 +689,18 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
|
|
|
689
689
|
}
|
|
690
690
|
return /*#__PURE__*/_react.default.createElement(_context.default.Provider, {
|
|
691
691
|
value: providerValue
|
|
692
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
692
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
693
|
+
id: "placeholder-conditional-format",
|
|
694
|
+
style: {
|
|
695
|
+
width: "500px",
|
|
696
|
+
height: "500px",
|
|
697
|
+
position: "fixed",
|
|
698
|
+
zIndex: "1000",
|
|
699
|
+
backgroundColor: "white",
|
|
700
|
+
padding: "12px",
|
|
701
|
+
top: "100px"
|
|
702
|
+
}
|
|
703
|
+
}), /*#__PURE__*/_react.default.createElement(_modal.ModalProvider, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
693
704
|
className: "fortune-container",
|
|
694
705
|
ref: workbookContainer,
|
|
695
706
|
onKeyDown: onKeyDown
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.78-cf",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.2.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.78-cf",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|