@fileverse-dev/fortune-react 1.0.2-mod-111 → 1.0.2-mod-113
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.css +7 -12
- package/dist/index.esm.css +7 -12
- package/dist/index.esm.js +46 -22
- package/dist/index.js +46 -22
- package/dist/index.umd.css +7 -12
- package/dist/index.umd.js +47 -23
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +2 -2
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -1284,8 +1284,7 @@ line-height: 16px; /* 133.333% */
|
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
.fortune-dialog {
|
|
1287
|
-
|
|
1288
|
-
max-width: 90%;
|
|
1287
|
+
width: 368px;
|
|
1289
1288
|
max-height: 90%;
|
|
1290
1289
|
border-radius: 12px;
|
|
1291
1290
|
background: hsl(var(--color-bg-default));
|
|
@@ -2906,6 +2905,7 @@ label {
|
|
|
2906
2905
|
border: none;
|
|
2907
2906
|
box-shadow: 0px 8px 32px 0px #00000026;
|
|
2908
2907
|
animation: fadeIn 0.2s ease-in-out;
|
|
2908
|
+
max-width: 480px;
|
|
2909
2909
|
}
|
|
2910
2910
|
|
|
2911
2911
|
.modal-header {
|
|
@@ -2915,7 +2915,7 @@ label {
|
|
|
2915
2915
|
padding: 0.75rem;
|
|
2916
2916
|
border-bottom: 1px solid #e5e7eb;
|
|
2917
2917
|
height: 52px;
|
|
2918
|
-
width:
|
|
2918
|
+
width: 100%;
|
|
2919
2919
|
}
|
|
2920
2920
|
|
|
2921
2921
|
.modal-header svg {
|
|
@@ -2934,7 +2934,7 @@ label {
|
|
|
2934
2934
|
-webkit-user-select: text;
|
|
2935
2935
|
-moz-user-select: text;
|
|
2936
2936
|
user-select: text;
|
|
2937
|
-
max-width:
|
|
2937
|
+
max-width: 218px;
|
|
2938
2938
|
flex: 1;
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
@@ -3821,8 +3821,8 @@ label {
|
|
|
3821
3821
|
height: 30px;
|
|
3822
3822
|
line-height: 30px;
|
|
3823
3823
|
width: 100%;
|
|
3824
|
-
margin-right: 46px;
|
|
3825
3824
|
cursor: pointer;
|
|
3825
|
+
border-radius: 4px;
|
|
3826
3826
|
}
|
|
3827
3827
|
|
|
3828
3828
|
.fortune-sheet-list-item-name {
|
|
@@ -3839,7 +3839,8 @@ label {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
|
|
3841
3841
|
.fortune-sheet-list :hover {
|
|
3842
|
-
background-color:
|
|
3842
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
3843
|
+
transition: background-color 0.2s ease-in-out;
|
|
3843
3844
|
}
|
|
3844
3845
|
|
|
3845
3846
|
.fortune-sheet-hidden-button {
|
|
@@ -3854,12 +3855,6 @@ label {
|
|
|
3854
3855
|
background-color: #d0d0d0;
|
|
3855
3856
|
}
|
|
3856
3857
|
|
|
3857
|
-
.fortune-sheet-selected-check-sapce {
|
|
3858
|
-
width: 20px;
|
|
3859
|
-
display: inline-block;
|
|
3860
|
-
margin-left: 15px;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
3858
|
.fortune-dune-preview {
|
|
3864
3859
|
position: absolute;
|
|
3865
3860
|
background-color: #fff;
|
package/dist/index.esm.css
CHANGED
|
@@ -1284,8 +1284,7 @@ line-height: 16px; /* 133.333% */
|
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
.fortune-dialog {
|
|
1287
|
-
|
|
1288
|
-
max-width: 90%;
|
|
1287
|
+
width: 368px;
|
|
1289
1288
|
max-height: 90%;
|
|
1290
1289
|
border-radius: 12px;
|
|
1291
1290
|
background: hsl(var(--color-bg-default));
|
|
@@ -2906,6 +2905,7 @@ label {
|
|
|
2906
2905
|
border: none;
|
|
2907
2906
|
box-shadow: 0px 8px 32px 0px #00000026;
|
|
2908
2907
|
animation: fadeIn 0.2s ease-in-out;
|
|
2908
|
+
max-width: 480px;
|
|
2909
2909
|
}
|
|
2910
2910
|
|
|
2911
2911
|
.modal-header {
|
|
@@ -2915,7 +2915,7 @@ label {
|
|
|
2915
2915
|
padding: 0.75rem;
|
|
2916
2916
|
border-bottom: 1px solid #e5e7eb;
|
|
2917
2917
|
height: 52px;
|
|
2918
|
-
width:
|
|
2918
|
+
width: 100%;
|
|
2919
2919
|
}
|
|
2920
2920
|
|
|
2921
2921
|
.modal-header svg {
|
|
@@ -2934,7 +2934,7 @@ label {
|
|
|
2934
2934
|
-webkit-user-select: text;
|
|
2935
2935
|
-moz-user-select: text;
|
|
2936
2936
|
user-select: text;
|
|
2937
|
-
max-width:
|
|
2937
|
+
max-width: 218px;
|
|
2938
2938
|
flex: 1;
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
@@ -3821,8 +3821,8 @@ label {
|
|
|
3821
3821
|
height: 30px;
|
|
3822
3822
|
line-height: 30px;
|
|
3823
3823
|
width: 100%;
|
|
3824
|
-
margin-right: 46px;
|
|
3825
3824
|
cursor: pointer;
|
|
3825
|
+
border-radius: 4px;
|
|
3826
3826
|
}
|
|
3827
3827
|
|
|
3828
3828
|
.fortune-sheet-list-item-name {
|
|
@@ -3839,7 +3839,8 @@ label {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
|
|
3841
3841
|
.fortune-sheet-list :hover {
|
|
3842
|
-
background-color:
|
|
3842
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
3843
|
+
transition: background-color 0.2s ease-in-out;
|
|
3843
3844
|
}
|
|
3844
3845
|
|
|
3845
3846
|
.fortune-sheet-hidden-button {
|
|
@@ -3854,12 +3855,6 @@ label {
|
|
|
3854
3855
|
background-color: #d0d0d0;
|
|
3855
3856
|
}
|
|
3856
3857
|
|
|
3857
|
-
.fortune-sheet-selected-check-sapce {
|
|
3858
|
-
width: 20px;
|
|
3859
|
-
display: inline-block;
|
|
3860
|
-
margin-left: 15px;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
3858
|
.fortune-dune-preview {
|
|
3864
3859
|
position: absolute;
|
|
3865
3860
|
background-color: #fff;
|
package/dist/index.esm.js
CHANGED
|
@@ -1657,12 +1657,12 @@ var Dialog = function Dialog(_ref) {
|
|
|
1657
1657
|
className: "fortune-dialog",
|
|
1658
1658
|
style: containerStyle
|
|
1659
1659
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1660
|
-
className: cn("flex items-center justify-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
}, title
|
|
1660
|
+
className: cn("flex items-center justify-between border-b color-border-default py-3 px-6")
|
|
1661
|
+
}, title ? (/*#__PURE__*/React.createElement("div", {
|
|
1662
|
+
className: "text-heading-sm"
|
|
1663
|
+
}, title)) : (/*#__PURE__*/React.createElement("div", {
|
|
1664
1664
|
className: "text-heading-sm"
|
|
1665
|
-
},
|
|
1665
|
+
}, "Oops! Something went wrong")), /*#__PURE__*/React.createElement(IconButton, {
|
|
1666
1666
|
icon: "X",
|
|
1667
1667
|
variant: "ghost",
|
|
1668
1668
|
onClick: onCancel,
|
|
@@ -1705,7 +1705,8 @@ var MessageBox = function MessageBox(_ref) {
|
|
|
1705
1705
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
1706
1706
|
type: type,
|
|
1707
1707
|
onOk: onOk,
|
|
1708
|
-
onCancel: onCancel
|
|
1708
|
+
onCancel: onCancel,
|
|
1709
|
+
title: type === "yesno" ? "Confirmation" : undefined
|
|
1709
1710
|
}, children);
|
|
1710
1711
|
};
|
|
1711
1712
|
|
|
@@ -4627,7 +4628,31 @@ var Combo = function Combo(_ref) {
|
|
|
4627
4628
|
height: 16
|
|
4628
4629
|
})) : (/*#__PURE__*/React.createElement("span", {
|
|
4629
4630
|
className: "fortune-toolbar-combo-text"
|
|
4630
|
-
}, text !== undefined ? text : ""))))) : (/*#__PURE__*/React.createElement(Tooltip, {
|
|
4631
|
+
}, text !== undefined ? text : ""))))) : (/*#__PURE__*/React.createElement("span", null, iconId === "font-color" ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
4632
|
+
text: tooltip,
|
|
4633
|
+
placement: "bottom"
|
|
4634
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
4635
|
+
variant: "ghost",
|
|
4636
|
+
onClick: function onClick() {
|
|
4637
|
+
return setOpen(!open);
|
|
4638
|
+
},
|
|
4639
|
+
className: cn("fortune-toolbar-combo-button !min-w-fit !px-0", {}),
|
|
4640
|
+
style: {
|
|
4641
|
+
width: 30,
|
|
4642
|
+
height: 30
|
|
4643
|
+
}
|
|
4644
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
4645
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4646
|
+
width: "16",
|
|
4647
|
+
height: "16",
|
|
4648
|
+
viewBox: "0 0 24 24",
|
|
4649
|
+
fill: fillColor
|
|
4650
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4651
|
+
fillRule: "evenodd",
|
|
4652
|
+
clipRule: "evenodd",
|
|
4653
|
+
d: "M11.9997 3C12.3784 3 12.7248 3.21402 12.8942 3.55273L20.8942 19.5527L20.9352 19.6465C21.115 20.1204 20.9101 20.663 20.447 20.8945C19.9839 21.1259 19.4272 20.9642 19.1559 20.5361L19.1052 20.4473L16.8815 16H7.11786L4.89422 20.4473C4.64719 20.9412 4.04636 21.1415 3.55243 20.8945C3.05867 20.6475 2.85831 20.0466 3.10516 19.5527L11.1052 3.55273L11.1764 3.43164C11.3613 3.16376 11.6684 3.0001 11.9997 3ZM8.11786 14H15.8815L11.9997 6.23633L8.11786 14Z",
|
|
4654
|
+
fill: fillColor
|
|
4655
|
+
}))))) : (/*#__PURE__*/React.createElement(Tooltip, {
|
|
4631
4656
|
text: tooltip,
|
|
4632
4657
|
placement: "bottom"
|
|
4633
4658
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
@@ -4642,7 +4667,7 @@ var Combo = function Combo(_ref) {
|
|
|
4642
4667
|
style: {
|
|
4643
4668
|
color: iconId === "font-color" ? fillColor : undefined
|
|
4644
4669
|
}
|
|
4645
|
-
})));
|
|
4670
|
+
})))));
|
|
4646
4671
|
return /*#__PURE__*/React.createElement("div", {
|
|
4647
4672
|
ref: buttonRef,
|
|
4648
4673
|
className: "fortune-toolbar-item"
|
|
@@ -5585,7 +5610,7 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5585
5610
|
className: "custom-overlay",
|
|
5586
5611
|
onClick: onClose
|
|
5587
5612
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5588
|
-
className: "input-modal",
|
|
5613
|
+
className: "input-modal w-3/4 md:w-full",
|
|
5589
5614
|
style: {
|
|
5590
5615
|
transformOrigin: "top center"
|
|
5591
5616
|
},
|
|
@@ -8561,7 +8586,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8561
8586
|
height: "40px"
|
|
8562
8587
|
}
|
|
8563
8588
|
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8564
|
-
name: "Filter"
|
|
8589
|
+
name: "Filter",
|
|
8590
|
+
className: "w-4 h-4"
|
|
8565
8591
|
}), /*#__PURE__*/React.createElement("p", null, filter.filter))), /*#__PURE__*/React.createElement(Menu, {
|
|
8566
8592
|
onClick: function onClick() {
|
|
8567
8593
|
setContext(function (draftCtx) {
|
|
@@ -8588,7 +8614,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8588
8614
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8589
8615
|
name: "ChevronRight",
|
|
8590
8616
|
width: 16,
|
|
8591
|
-
height: 16
|
|
8617
|
+
height: 16,
|
|
8618
|
+
className: "w-4 h-4 color-text-secondary"
|
|
8592
8619
|
})))));
|
|
8593
8620
|
}
|
|
8594
8621
|
if (name === "image") {
|
|
@@ -8651,7 +8678,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8651
8678
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8652
8679
|
name: "ChevronRight",
|
|
8653
8680
|
width: 16,
|
|
8654
|
-
height: 16
|
|
8681
|
+
height: 16,
|
|
8682
|
+
className: "color-text-secondary w-4 h-4"
|
|
8655
8683
|
})))));
|
|
8656
8684
|
}
|
|
8657
8685
|
return null;
|
|
@@ -11867,7 +11895,7 @@ var SheetListItem = function SheetListItem(_ref) {
|
|
|
11867
11895
|
});
|
|
11868
11896
|
}, [context.currentSheetId, context.sheetScrollRecord, setContext]);
|
|
11869
11897
|
return /*#__PURE__*/React.createElement("div", {
|
|
11870
|
-
className: "fortune-sheet-list-item",
|
|
11898
|
+
className: "fortune-sheet-list-item flex items-center gap-2 px-2",
|
|
11871
11899
|
key: sheet.id,
|
|
11872
11900
|
ref: containerRef,
|
|
11873
11901
|
onClick: function onClick() {
|
|
@@ -11888,15 +11916,11 @@ var SheetListItem = function SheetListItem(_ref) {
|
|
|
11888
11916
|
},
|
|
11889
11917
|
tabIndex: 0
|
|
11890
11918
|
}, /*#__PURE__*/React.createElement("span", {
|
|
11891
|
-
className: "
|
|
11892
|
-
}, sheet.id === context.currentSheetId && (/*#__PURE__*/React.createElement(
|
|
11893
|
-
name: "
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
style: {
|
|
11897
|
-
lineHeight: 30,
|
|
11898
|
-
verticalAlign: "middle"
|
|
11899
|
-
}
|
|
11919
|
+
className: "w-4"
|
|
11920
|
+
}, sheet.id === context.currentSheetId && (/*#__PURE__*/React.createElement(LucideIcon, {
|
|
11921
|
+
name: "Check",
|
|
11922
|
+
size: "sm",
|
|
11923
|
+
className: "color-text-default w-4 h-4"
|
|
11900
11924
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
11901
11925
|
className: "luckysheet-sheets-item-name fortune-sheet-list-item-name",
|
|
11902
11926
|
spellCheck: "false"
|
package/dist/index.js
CHANGED
|
@@ -1669,12 +1669,12 @@ var Dialog = function Dialog(_ref) {
|
|
|
1669
1669
|
className: "fortune-dialog",
|
|
1670
1670
|
style: containerStyle
|
|
1671
1671
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1672
|
-
className: ui.cn("flex items-center justify-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
}, title
|
|
1672
|
+
className: ui.cn("flex items-center justify-between border-b color-border-default py-3 px-6")
|
|
1673
|
+
}, title ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1674
|
+
className: "text-heading-sm"
|
|
1675
|
+
}, title)) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1676
1676
|
className: "text-heading-sm"
|
|
1677
|
-
},
|
|
1677
|
+
}, "Oops! Something went wrong")), /*#__PURE__*/React__default['default'].createElement(ui.IconButton, {
|
|
1678
1678
|
icon: "X",
|
|
1679
1679
|
variant: "ghost",
|
|
1680
1680
|
onClick: onCancel,
|
|
@@ -1717,7 +1717,8 @@ var MessageBox = function MessageBox(_ref) {
|
|
|
1717
1717
|
return /*#__PURE__*/React__default['default'].createElement(Dialog, {
|
|
1718
1718
|
type: type,
|
|
1719
1719
|
onOk: onOk,
|
|
1720
|
-
onCancel: onCancel
|
|
1720
|
+
onCancel: onCancel,
|
|
1721
|
+
title: type === "yesno" ? "Confirmation" : undefined
|
|
1721
1722
|
}, children);
|
|
1722
1723
|
};
|
|
1723
1724
|
|
|
@@ -4639,7 +4640,31 @@ var Combo = function Combo(_ref) {
|
|
|
4639
4640
|
height: 16
|
|
4640
4641
|
})) : (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
4641
4642
|
className: "fortune-toolbar-combo-text"
|
|
4642
|
-
}, text !== undefined ? text : ""))))) : (/*#__PURE__*/React__default['default'].createElement(ui.Tooltip, {
|
|
4643
|
+
}, text !== undefined ? text : ""))))) : (/*#__PURE__*/React__default['default'].createElement("span", null, iconId === "font-color" ? (/*#__PURE__*/React__default['default'].createElement(ui.Tooltip, {
|
|
4644
|
+
text: tooltip,
|
|
4645
|
+
placement: "bottom"
|
|
4646
|
+
}, /*#__PURE__*/React__default['default'].createElement(ui.Button, {
|
|
4647
|
+
variant: "ghost",
|
|
4648
|
+
onClick: function onClick() {
|
|
4649
|
+
return setOpen(!open);
|
|
4650
|
+
},
|
|
4651
|
+
className: ui.cn("fortune-toolbar-combo-button !min-w-fit !px-0", {}),
|
|
4652
|
+
style: {
|
|
4653
|
+
width: 30,
|
|
4654
|
+
height: 30
|
|
4655
|
+
}
|
|
4656
|
+
}, /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
4657
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4658
|
+
width: "16",
|
|
4659
|
+
height: "16",
|
|
4660
|
+
viewBox: "0 0 24 24",
|
|
4661
|
+
fill: fillColor
|
|
4662
|
+
}, /*#__PURE__*/React__default['default'].createElement("path", {
|
|
4663
|
+
fillRule: "evenodd",
|
|
4664
|
+
clipRule: "evenodd",
|
|
4665
|
+
d: "M11.9997 3C12.3784 3 12.7248 3.21402 12.8942 3.55273L20.8942 19.5527L20.9352 19.6465C21.115 20.1204 20.9101 20.663 20.447 20.8945C19.9839 21.1259 19.4272 20.9642 19.1559 20.5361L19.1052 20.4473L16.8815 16H7.11786L4.89422 20.4473C4.64719 20.9412 4.04636 21.1415 3.55243 20.8945C3.05867 20.6475 2.85831 20.0466 3.10516 19.5527L11.1052 3.55273L11.1764 3.43164C11.3613 3.16376 11.6684 3.0001 11.9997 3ZM8.11786 14H15.8815L11.9997 6.23633L8.11786 14Z",
|
|
4666
|
+
fill: fillColor
|
|
4667
|
+
}))))) : (/*#__PURE__*/React__default['default'].createElement(ui.Tooltip, {
|
|
4643
4668
|
text: tooltip,
|
|
4644
4669
|
placement: "bottom"
|
|
4645
4670
|
}, /*#__PURE__*/React__default['default'].createElement(ui.IconButton, {
|
|
@@ -4654,7 +4679,7 @@ var Combo = function Combo(_ref) {
|
|
|
4654
4679
|
style: {
|
|
4655
4680
|
color: iconId === "font-color" ? fillColor : undefined
|
|
4656
4681
|
}
|
|
4657
|
-
})));
|
|
4682
|
+
})))));
|
|
4658
4683
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4659
4684
|
ref: buttonRef,
|
|
4660
4685
|
className: "fortune-toolbar-item"
|
|
@@ -5597,7 +5622,7 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5597
5622
|
className: "custom-overlay",
|
|
5598
5623
|
onClick: onClose
|
|
5599
5624
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5600
|
-
className: "input-modal",
|
|
5625
|
+
className: "input-modal w-3/4 md:w-full",
|
|
5601
5626
|
style: {
|
|
5602
5627
|
transformOrigin: "top center"
|
|
5603
5628
|
},
|
|
@@ -8573,7 +8598,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8573
8598
|
height: "40px"
|
|
8574
8599
|
}
|
|
8575
8600
|
}, /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
8576
|
-
name: "Filter"
|
|
8601
|
+
name: "Filter",
|
|
8602
|
+
className: "w-4 h-4"
|
|
8577
8603
|
}), /*#__PURE__*/React__default['default'].createElement("p", null, filter.filter))), /*#__PURE__*/React__default['default'].createElement(Menu, {
|
|
8578
8604
|
onClick: function onClick() {
|
|
8579
8605
|
setContext(function (draftCtx) {
|
|
@@ -8600,7 +8626,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8600
8626
|
}), /*#__PURE__*/React__default['default'].createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
8601
8627
|
name: "ChevronRight",
|
|
8602
8628
|
width: 16,
|
|
8603
|
-
height: 16
|
|
8629
|
+
height: 16,
|
|
8630
|
+
className: "w-4 h-4 color-text-secondary"
|
|
8604
8631
|
})))));
|
|
8605
8632
|
}
|
|
8606
8633
|
if (name === "image") {
|
|
@@ -8663,7 +8690,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8663
8690
|
}), /*#__PURE__*/React__default['default'].createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
8664
8691
|
name: "ChevronRight",
|
|
8665
8692
|
width: 16,
|
|
8666
|
-
height: 16
|
|
8693
|
+
height: 16,
|
|
8694
|
+
className: "color-text-secondary w-4 h-4"
|
|
8667
8695
|
})))));
|
|
8668
8696
|
}
|
|
8669
8697
|
return null;
|
|
@@ -11879,7 +11907,7 @@ var SheetListItem = function SheetListItem(_ref) {
|
|
|
11879
11907
|
});
|
|
11880
11908
|
}, [context.currentSheetId, context.sheetScrollRecord, setContext]);
|
|
11881
11909
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11882
|
-
className: "fortune-sheet-list-item",
|
|
11910
|
+
className: "fortune-sheet-list-item flex items-center gap-2 px-2",
|
|
11883
11911
|
key: sheet.id,
|
|
11884
11912
|
ref: containerRef,
|
|
11885
11913
|
onClick: function onClick() {
|
|
@@ -11900,15 +11928,11 @@ var SheetListItem = function SheetListItem(_ref) {
|
|
|
11900
11928
|
},
|
|
11901
11929
|
tabIndex: 0
|
|
11902
11930
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
11903
|
-
className: "
|
|
11904
|
-
}, sheet.id === context.currentSheetId && (/*#__PURE__*/React__default['default'].createElement(
|
|
11905
|
-
name: "
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
style: {
|
|
11909
|
-
lineHeight: 30,
|
|
11910
|
-
verticalAlign: "middle"
|
|
11911
|
-
}
|
|
11931
|
+
className: "w-4"
|
|
11932
|
+
}, sheet.id === context.currentSheetId && (/*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
11933
|
+
name: "Check",
|
|
11934
|
+
size: "sm",
|
|
11935
|
+
className: "color-text-default w-4 h-4"
|
|
11912
11936
|
}))), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
11913
11937
|
className: "luckysheet-sheets-item-name fortune-sheet-list-item-name",
|
|
11914
11938
|
spellCheck: "false"
|
package/dist/index.umd.css
CHANGED
|
@@ -1284,8 +1284,7 @@ line-height: 16px; /* 133.333% */
|
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
.fortune-dialog {
|
|
1287
|
-
|
|
1288
|
-
max-width: 90%;
|
|
1287
|
+
width: 368px;
|
|
1289
1288
|
max-height: 90%;
|
|
1290
1289
|
border-radius: 12px;
|
|
1291
1290
|
background: hsl(var(--color-bg-default));
|
|
@@ -2906,6 +2905,7 @@ label {
|
|
|
2906
2905
|
border: none;
|
|
2907
2906
|
box-shadow: 0px 8px 32px 0px #00000026;
|
|
2908
2907
|
animation: fadeIn 0.2s ease-in-out;
|
|
2908
|
+
max-width: 480px;
|
|
2909
2909
|
}
|
|
2910
2910
|
|
|
2911
2911
|
.modal-header {
|
|
@@ -2915,7 +2915,7 @@ label {
|
|
|
2915
2915
|
padding: 0.75rem;
|
|
2916
2916
|
border-bottom: 1px solid #e5e7eb;
|
|
2917
2917
|
height: 52px;
|
|
2918
|
-
width:
|
|
2918
|
+
width: 100%;
|
|
2919
2919
|
}
|
|
2920
2920
|
|
|
2921
2921
|
.modal-header svg {
|
|
@@ -2934,7 +2934,7 @@ label {
|
|
|
2934
2934
|
-webkit-user-select: text;
|
|
2935
2935
|
-moz-user-select: text;
|
|
2936
2936
|
user-select: text;
|
|
2937
|
-
max-width:
|
|
2937
|
+
max-width: 218px;
|
|
2938
2938
|
flex: 1;
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
@@ -3821,8 +3821,8 @@ label {
|
|
|
3821
3821
|
height: 30px;
|
|
3822
3822
|
line-height: 30px;
|
|
3823
3823
|
width: 100%;
|
|
3824
|
-
margin-right: 46px;
|
|
3825
3824
|
cursor: pointer;
|
|
3825
|
+
border-radius: 4px;
|
|
3826
3826
|
}
|
|
3827
3827
|
|
|
3828
3828
|
.fortune-sheet-list-item-name {
|
|
@@ -3839,7 +3839,8 @@ label {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
|
|
3841
3841
|
.fortune-sheet-list :hover {
|
|
3842
|
-
background-color:
|
|
3842
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
3843
|
+
transition: background-color 0.2s ease-in-out;
|
|
3843
3844
|
}
|
|
3844
3845
|
|
|
3845
3846
|
.fortune-sheet-hidden-button {
|
|
@@ -3854,12 +3855,6 @@ label {
|
|
|
3854
3855
|
background-color: #d0d0d0;
|
|
3855
3856
|
}
|
|
3856
3857
|
|
|
3857
|
-
.fortune-sheet-selected-check-sapce {
|
|
3858
|
-
width: 20px;
|
|
3859
|
-
display: inline-block;
|
|
3860
|
-
margin-left: 15px;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
3858
|
.fortune-dune-preview {
|
|
3864
3859
|
position: absolute;
|
|
3865
3860
|
background-color: #fff;
|