@fileverse-dev/fortune-react 1.0.2-mod-70 → 1.0.2-mod-67-patch-3

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.esm.js CHANGED
@@ -2,10 +2,9 @@ import { defaultContext, defaultSettings, getSheetIndex, colLocationByIndex, fix
2
2
  import React, { useContext, useRef, useState, useMemo, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
3
3
  import produce, { applyPatches, enablePatches, produceWithPatches } from 'immer';
4
4
  import _ from 'lodash';
5
- import { Tooltip, LucideIcon, TextField, Button as Button$1, cn, IconButton, Checkbox, Divider as Divider$2, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Select as Select$1, SelectTrigger, SelectValue, SelectContent, SelectItem as SelectItem$1, Popover, PopoverTrigger, PopoverContent, RadioGroup, RadioGroupItem, Label } from '@fileverse/ui';
5
+ import { LucideIcon, TextField, Button as Button$1, cn, IconButton, Checkbox, Divider as Divider$2, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Select as Select$1, SelectTrigger, SelectValue, SelectContent, SelectItem as SelectItem$1, Tooltip, RadioGroup, RadioGroupItem, Label } from '@fileverse/ui';
6
6
  import regeneratorRuntime from 'regenerator-runtime';
7
7
  import Tippy from '@tippyjs/react';
8
- export * from '@fileverse-dev/formulajs/crypto-constants';
9
8
 
10
9
  function _arrayLikeToArray(r, a) {
11
10
  (null == a || a > r.length) && (a = r.length);
@@ -854,9 +853,7 @@ var FormulaSearch = function FormulaSearch(props) {
854
853
  style: {
855
854
  width: "20px"
856
855
  }
857
- })), v.API_KEY && (/*#__PURE__*/React.createElement(Tooltip, {
858
- text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
859
- }, /*#__PURE__*/React.createElement("div", {
856
+ })), v.API_KEY && (/*#__PURE__*/React.createElement("div", {
860
857
  style: {
861
858
  borderRadius: "4px",
862
859
  backgroundColor: "".concat(localStorage.getItem(v.API_KEY) ? "#177E23" : "#e8ebec"),
@@ -871,7 +868,7 @@ var FormulaSearch = function FormulaSearch(props) {
871
868
  width: "12px",
872
869
  height: "12px"
873
870
  }
874
- })))))), /*#__PURE__*/React.createElement("div", {
871
+ }))))), /*#__PURE__*/React.createElement("div", {
875
872
  className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
876
873
  }, v.d));
877
874
  }), /*#__PURE__*/React.createElement("hr", {
@@ -1920,7 +1917,6 @@ var SearchReplace = function SearchReplace(_ref) {
1920
1917
  var _tableContainerRef$cu;
1921
1918
  if (e.target === tableContainerRef.current || ((_tableContainerRef$cu = tableContainerRef.current) === null || _tableContainerRef$cu === void 0 ? void 0 : _tableContainerRef$cu.contains(e.target))) {
1922
1919
  var _tableContainerRef$cu2;
1923
- e.preventDefault();
1924
1920
  e.stopPropagation();
1925
1921
  (_tableContainerRef$cu2 = tableContainerRef.current) === null || _tableContainerRef$cu2 === void 0 ? void 0 : _tableContainerRef$cu2.focus();
1926
1922
  }
@@ -1929,17 +1925,13 @@ var SearchReplace = function SearchReplace(_ref) {
1929
1925
  e.preventDefault();
1930
1926
  e.stopPropagation();
1931
1927
  if (tableContainerRef.current) {
1932
- var delta = e.deltaY;
1933
- var currentScroll = tableContainerRef.current.scrollTop;
1934
- tableContainerRef.current.scrollTop = currentScroll + delta;
1928
+ tableContainerRef.current.scrollTop += e.deltaY;
1935
1929
  }
1936
1930
  },
1937
1931
  onTouchStart: function onTouchStart(e) {
1938
- e.preventDefault();
1939
1932
  e.stopPropagation();
1940
1933
  },
1941
1934
  onTouchMove: function onTouchMove(e) {
1942
- e.preventDefault();
1943
1935
  e.stopPropagation();
1944
1936
  },
1945
1937
  tabIndex: 0
@@ -3714,8 +3706,11 @@ var IframeBoxs = function IframeBoxs() {
3714
3706
  });
3715
3707
  })), /*#__PURE__*/React.createElement("div", {
3716
3708
  className: "luckysheet-modal-dialog-controll"
3717
- }, /*#__PURE__*/React.createElement(IconButton, {
3718
- icon: "Trash2",
3709
+ }, /*#__PURE__*/React.createElement("span", {
3710
+ className: "luckysheet-modal-controll-btn luckysheet-modal-controll-del",
3711
+ role: "button",
3712
+ tabIndex: 0,
3713
+ title: "Delete",
3719
3714
  onClick: function onClick() {
3720
3715
  setContext(function (ctx) {
3721
3716
  var currentSheet = ctx.luckysheetfile.find(function (sheet) {
@@ -3729,10 +3724,8 @@ var IframeBoxs = function IframeBoxs() {
3729
3724
  }
3730
3725
  ctx.activeIframe = undefined;
3731
3726
  });
3732
- },
3733
- variant: "ghost",
3734
- className: "fortune-iframe-boxes-delete-button"
3735
- })))));
3727
+ }
3728
+ }, "DELETE")))));
3736
3729
  }));
3737
3730
  };
3738
3731
 
@@ -4511,11 +4504,45 @@ var Combo = function Combo(_ref) {
4511
4504
  _useState2 = _slicedToArray(_useState, 2),
4512
4505
  open = _useState2[0],
4513
4506
  setOpen = _useState2[1];
4507
+ var _useState3 = useState({
4508
+ left: 0
4509
+ }),
4510
+ _useState4 = _slicedToArray(_useState3, 2),
4511
+ popupPosition = _useState4[0],
4512
+ setPopupPosition = _useState4[1];
4513
+ var popupRef = useRef(null);
4514
4514
  var buttonRef = useRef(null);
4515
4515
  var isLucideIcon = useMemo(function () {
4516
4516
  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);
4517
4517
  }, [iconId]);
4518
- var trigger = !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
4518
+ useOutsideClick(popupRef, function () {
4519
+ setOpen(false);
4520
+ });
4521
+ useLayoutEffect(function () {
4522
+ if (!popupRef.current) {
4523
+ return;
4524
+ }
4525
+ if (!open) {
4526
+ setPopupPosition({
4527
+ left: 0
4528
+ });
4529
+ }
4530
+ var winW = window.innerWidth;
4531
+ var rect = popupRef.current.getBoundingClientRect();
4532
+ var menuW = rect.width;
4533
+ var left = rect.left;
4534
+ if (left + menuW > winW) {
4535
+ setPopupPosition({
4536
+ left: -rect.width + buttonRef.current.clientWidth
4537
+ });
4538
+ }
4539
+ }, [open]);
4540
+ return /*#__PURE__*/React.createElement("div", {
4541
+ className: "fortune-toobar-combo-container fortune-toolbar-item"
4542
+ }, /*#__PURE__*/React.createElement("div", {
4543
+ ref: buttonRef,
4544
+ className: "fortune-toolbar-combo"
4545
+ }, !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
4519
4546
  text: tooltip,
4520
4547
  placement: "bottom"
4521
4548
  }, /*#__PURE__*/React.createElement("div", {
@@ -4524,6 +4551,8 @@ var Combo = function Combo(_ref) {
4524
4551
  if (_onClick) {
4525
4552
  _onClick(e);
4526
4553
  if (!showArrow) setOpen(!open);
4554
+ } else {
4555
+ setOpen(!open);
4527
4556
  }
4528
4557
  },
4529
4558
  tabIndex: 0,
@@ -4544,23 +4573,23 @@ var Combo = function Combo(_ref) {
4544
4573
  onClick: function onClick() {
4545
4574
  return setOpen(!open);
4546
4575
  },
4547
- className: "fortune-toolbar-combo-button"
4548
- })));
4549
- return /*#__PURE__*/React.createElement("div", {
4550
- ref: buttonRef
4551
- }, /*#__PURE__*/React.createElement(Popover, {
4552
- open: open,
4553
- onOpenChange: setOpen
4554
- }, /*#__PURE__*/React.createElement(PopoverTrigger, {
4555
- asChild: true
4556
- }, /*#__PURE__*/React.createElement("div", {
4557
- className: "flex items-center"
4558
- }, trigger)), /*#__PURE__*/React.createElement(PopoverContent, {
4559
- align: "start",
4560
- side: "bottom",
4561
- sideOffset: 4,
4562
- alignOffset: -16,
4563
- className: "fortune-toolbar-combo-popup border-none"
4576
+ className: showArrow ? "fortune-toolbar-combo-button show-arrow" : ""
4577
+ }))), showArrow && (/*#__PURE__*/React.createElement("div", {
4578
+ className: "fortune-toolbar-combo-arrow",
4579
+ onClick: function onClick() {
4580
+ return setOpen(!open);
4581
+ },
4582
+ tabIndex: 0,
4583
+ role: "button",
4584
+ style: style
4585
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
4586
+ name: "ChevronDown",
4587
+ width: 14,
4588
+ height: 14
4589
+ })))), open && (/*#__PURE__*/React.createElement("div", {
4590
+ ref: popupRef,
4591
+ className: "fortune-toolbar-combo-popup",
4592
+ style: popupPosition
4564
4593
  }, children === null || children === void 0 ? void 0 : children(setOpen))));
4565
4594
  };
4566
4595
 
@@ -5438,6 +5467,7 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5438
5467
  var isOpen = _ref.isOpen,
5439
5468
  onClose = _ref.onClose,
5440
5469
  onSubmit = _ref.onSubmit,
5470
+ icon = _ref.icon,
5441
5471
  _ref$submitText = _ref.submitText,
5442
5472
  submitText = _ref$submitText === void 0 ? "Submit" : _ref$submitText,
5443
5473
  _ref$placeholder = _ref.placeholder,
@@ -5479,8 +5509,6 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5479
5509
  e.stopPropagation();
5480
5510
  if (e.key === "Enter") {
5481
5511
  handleSubmit();
5482
- } else if (e.key === "Escape") {
5483
- onClose();
5484
5512
  }
5485
5513
  };
5486
5514
  return /*#__PURE__*/React.createElement("div", {
@@ -5497,8 +5525,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5497
5525
  onKeyDown: handleKeyDown
5498
5526
  }, /*#__PURE__*/React.createElement("div", {
5499
5527
  className: "modal-header"
5500
- }, /*#__PURE__*/React.createElement(LucideIcon, {
5501
- name: "DuneChart"
5528
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
5529
+ name: icon
5502
5530
  }), /*#__PURE__*/React.createElement("input", {
5503
5531
  ref: inputRef,
5504
5532
  className: "modal-input",
@@ -5843,18 +5871,46 @@ var Toolbar = function Toolbar(_ref) {
5843
5871
  if (value === "fmtOtherSelf") {
5844
5872
  return /*#__PURE__*/React.createElement(Option, {
5845
5873
  key: value,
5846
- onClick: function onClick() {
5874
+ onMouseEnter: function onMouseEnter(e) {
5875
+ return showSubMenu(e, "more-format");
5876
+ },
5877
+ onMouseLeave: function onMouseLeave(e) {
5878
+ return hideSubMenu(e, "more-format");
5879
+ }
5880
+ }, /*#__PURE__*/React.createElement("div", {
5881
+ className: "fortune-toolbar-menu-line"
5882
+ }, /*#__PURE__*/React.createElement("div", null, text), /*#__PURE__*/React.createElement(SVGIcon, {
5883
+ name: "rightArrow",
5884
+ width: 16,
5885
+ height: 16
5886
+ })), /*#__PURE__*/React.createElement("div", {
5887
+ className: "more-format toolbar-item-sub-menu fortune-toolbar-select",
5888
+ style: {
5889
+ display: "none",
5890
+ width: 150,
5891
+ bottom: 10,
5892
+ top: undefined
5893
+ }
5894
+ }, [{
5895
+ text: toolbarFormat.moreCurrency,
5896
+ onclick: function onclick() {
5847
5897
  showDialog(/*#__PURE__*/React.createElement(FormatSearch, {
5848
5898
  onCancel: hideDialog,
5849
5899
  type: "currency"
5850
5900
  }), undefined, "Currency Format");
5851
5901
  setOpen(false);
5852
5902
  }
5853
- }, /*#__PURE__*/React.createElement("div", {
5854
- className: "fortune-toolbar-menu-line"
5855
- }, /*#__PURE__*/React.createElement("div", null, text), /*#__PURE__*/React.createElement("div", {
5856
- className: "fortune-toolbar-subtext"
5857
- }, example)));
5903
+ }].map(function (v) {
5904
+ return /*#__PURE__*/React.createElement("div", {
5905
+ className: "set-background-item fortune-toolbar-select-option",
5906
+ key: v.text,
5907
+ onClick: function onClick() {
5908
+ v.onclick();
5909
+ setOpen(false);
5910
+ },
5911
+ tabIndex: 0
5912
+ }, v.text);
5913
+ })));
5858
5914
  }
5859
5915
  return /*#__PURE__*/React.createElement(Option, {
5860
5916
  key: value,
@@ -6873,6 +6929,7 @@ var Toolbar = function Toolbar(_ref) {
6873
6929
  onClose: function onClose() {
6874
6930
  return setShowDuneModal(false);
6875
6931
  },
6932
+ icon: "dune-logo",
6876
6933
  placeholder: "Add Dune chart link to embed",
6877
6934
  submitText: "Embed Dune chart"
6878
6935
  }))));
@@ -7753,8 +7810,12 @@ var ContextMenu = function ContextMenu() {
7753
7810
  className: "context-item"
7754
7811
  }, /*#__PURE__*/React.createElement(SVGIcon, {
7755
7812
  name: "split-flv",
7756
- width: 18,
7757
- height: 18
7813
+ width: 17,
7814
+ height: 17,
7815
+ style: {
7816
+ marginTop: "4px",
7817
+ marginRight: "8px"
7818
+ }
7758
7819
  }), "Split text to columns"));
7759
7820
  }
7760
7821
  if (name === "freeze-row") {
@@ -7776,9 +7837,15 @@ var ContextMenu = function ContextMenu() {
7776
7837
  }
7777
7838
  }, /*#__PURE__*/React.createElement("div", {
7778
7839
  className: "context-item"
7779
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7780
- name: "Snowflake"
7781
- }), /*#__PURE__*/React.createElement("p", null, isFrozen ? "Unfreeze row" : "Freeze upto current row")));
7840
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7841
+ name: "freeze-flv",
7842
+ width: 16,
7843
+ height: 16,
7844
+ style: {
7845
+ marginTop: "4px",
7846
+ marginRight: "4px"
7847
+ }
7848
+ }), isFrozen ? "Unfreeze row" : "Freeze to current row"));
7782
7849
  }
7783
7850
  if (name === "freeze-column") {
7784
7851
  var _freezeState = getFreezeState(context);
@@ -7800,9 +7867,15 @@ var ContextMenu = function ContextMenu() {
7800
7867
  }
7801
7868
  }, /*#__PURE__*/React.createElement("div", {
7802
7869
  className: "context-item"
7803
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7804
- name: "Snowflake"
7805
- }), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze upto current column")));
7870
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7871
+ name: "freeze-flv",
7872
+ width: 18,
7873
+ height: 18,
7874
+ style: {
7875
+ marginTop: "4px",
7876
+ marginRight: "4px"
7877
+ }
7878
+ }), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze to current column")));
7806
7879
  }
7807
7880
  if (name === "comment") {
7808
7881
  return /*#__PURE__*/React.createElement(Menu, {
@@ -7815,8 +7888,14 @@ var ContextMenu = function ContextMenu() {
7815
7888
  }
7816
7889
  }, /*#__PURE__*/React.createElement("div", {
7817
7890
  className: "context-item"
7818
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7819
- name: "MessageSquarePlus"
7891
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7892
+ name: "comment-flv",
7893
+ width: 18,
7894
+ height: 18,
7895
+ style: {
7896
+ marginTop: "4px",
7897
+ marginRight: "8px"
7898
+ }
7820
7899
  }), /*#__PURE__*/React.createElement("p", null, "Comment")));
7821
7900
  }
7822
7901
  if (name === "dataVerification") {
@@ -7831,8 +7910,13 @@ var ContextMenu = function ContextMenu() {
7831
7910
  }
7832
7911
  }, /*#__PURE__*/React.createElement("div", {
7833
7912
  className: "context-item"
7834
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7835
- name: "ShieldCheck"
7913
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7914
+ name: "dataVerification",
7915
+ width: 20,
7916
+ height: 20,
7917
+ style: {
7918
+ marginRight: "7px"
7919
+ }
7836
7920
  }), /*#__PURE__*/React.createElement("p", null, "Data Verification")));
7837
7921
  }
7838
7922
  if (name === "searchReplace") {
@@ -7848,8 +7932,13 @@ var ContextMenu = function ContextMenu() {
7848
7932
  }
7849
7933
  }, /*#__PURE__*/React.createElement("div", {
7850
7934
  className: "context-item"
7851
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7852
- name: "Search"
7935
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7936
+ name: "search",
7937
+ width: 20,
7938
+ height: 20,
7939
+ style: {
7940
+ marginRight: "7px"
7941
+ }
7853
7942
  }), /*#__PURE__*/React.createElement("p", null, "Find and Replace")));
7854
7943
  }
7855
7944
  if (name === "copy") {
@@ -7869,8 +7958,14 @@ var ContextMenu = function ContextMenu() {
7869
7958
  }
7870
7959
  }, /*#__PURE__*/React.createElement("div", {
7871
7960
  className: "context-item"
7872
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7873
- name: "Copy"
7961
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7962
+ name: "copy-flv",
7963
+ width: 21,
7964
+ height: 21,
7965
+ style: {
7966
+ marginTop: "4px",
7967
+ marginRight: "4px"
7968
+ }
7874
7969
  }), /*#__PURE__*/React.createElement("p", null, rightclick.copy)));
7875
7970
  }
7876
7971
  if (name === "cut") {
@@ -7903,8 +7998,13 @@ var ContextMenu = function ContextMenu() {
7903
7998
  }
7904
7999
  }, /*#__PURE__*/React.createElement("div", {
7905
8000
  className: "context-item"
7906
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7907
- name: "Scissors"
8001
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8002
+ name: "cut-flv",
8003
+ width: 17,
8004
+ height: 17,
8005
+ style: {
8006
+ marginRight: "8px"
8007
+ }
7908
8008
  }), /*#__PURE__*/React.createElement("p", null, "Cut")));
7909
8009
  }
7910
8010
  if (name === "paste" && regeneratorRuntime) {
@@ -7936,8 +8036,13 @@ var ContextMenu = function ContextMenu() {
7936
8036
  }()
7937
8037
  }, /*#__PURE__*/React.createElement("div", {
7938
8038
  className: "context-item"
7939
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7940
- name: "Clipboard"
8039
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8040
+ name: "paste-flv",
8041
+ width: 17,
8042
+ height: 17,
8043
+ style: {
8044
+ marginRight: "8px"
8045
+ }
7941
8046
  }), /*#__PURE__*/React.createElement("p", null, rightclick.paste)));
7942
8047
  }
7943
8048
  if (name === "insert-column") {
@@ -7969,10 +8074,10 @@ var ContextMenu = function ContextMenu() {
7969
8074
  insertRowColOp: insertRowColOp
7970
8075
  });
7971
8076
  }
7972
- }, /*#__PURE__*/React.createElement("div", {
7973
- className: "context-item"
7974
- }, /*#__PURE__*/React.createElement(LucideIcon, {
7975
- name: "Plus"
8077
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
8078
+ name: "insert-flv",
8079
+ width: 18,
8080
+ height: 18
7976
8081
  }), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
7977
8082
  });
7978
8083
  }
@@ -8005,10 +8110,10 @@ var ContextMenu = function ContextMenu() {
8005
8110
  insertRowColOp: insertRowColOp
8006
8111
  });
8007
8112
  }
8008
- }, /*#__PURE__*/React.createElement("div", {
8009
- className: "context-item"
8010
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8011
- name: "Plus"
8113
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
8114
+ name: "insert-flv",
8115
+ width: 18,
8116
+ height: 18
8012
8117
  }), /*#__PURE__*/React.createElement("div", null, "Insert row below")));
8013
8118
  });
8014
8119
  }
@@ -8055,8 +8160,13 @@ var ContextMenu = function ContextMenu() {
8055
8160
  }
8056
8161
  }, /*#__PURE__*/React.createElement("div", {
8057
8162
  className: "context-item"
8058
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8059
- name: "Trash2"
8163
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8164
+ name: "delete-flv",
8165
+ width: 18,
8166
+ height: 18,
8167
+ style: {
8168
+ marginRight: "8px"
8169
+ }
8060
8170
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
8061
8171
  }
8062
8172
  if (name === "cell-delete-column") {
@@ -8102,8 +8212,13 @@ var ContextMenu = function ContextMenu() {
8102
8212
  }
8103
8213
  }, /*#__PURE__*/React.createElement("div", {
8104
8214
  className: "context-item"
8105
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8106
- name: "Trash2"
8215
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8216
+ name: "delete-flv",
8217
+ width: 18,
8218
+ height: 18,
8219
+ style: {
8220
+ marginRight: "8px"
8221
+ }
8107
8222
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
8108
8223
  }
8109
8224
  if (name === "delete-row") {
@@ -8148,8 +8263,13 @@ var ContextMenu = function ContextMenu() {
8148
8263
  }
8149
8264
  }, /*#__PURE__*/React.createElement("div", {
8150
8265
  className: "context-item"
8151
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8152
- name: "Trash2"
8266
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8267
+ name: "delete-flv",
8268
+ width: 18,
8269
+ height: 18,
8270
+ style: {
8271
+ marginRight: "8px"
8272
+ }
8153
8273
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8154
8274
  }
8155
8275
  if (name === "cell-delete-row") {
@@ -8194,8 +8314,13 @@ var ContextMenu = function ContextMenu() {
8194
8314
  }
8195
8315
  }, /*#__PURE__*/React.createElement("div", {
8196
8316
  className: "context-item"
8197
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8198
- name: "Trash2"
8317
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8318
+ name: "delete-flv",
8319
+ width: 18,
8320
+ height: 18,
8321
+ style: {
8322
+ marginRight: "8px"
8323
+ }
8199
8324
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8200
8325
  }
8201
8326
  if (name === "hide-row") {
@@ -8218,8 +8343,13 @@ var ContextMenu = function ContextMenu() {
8218
8343
  }
8219
8344
  }, /*#__PURE__*/React.createElement("div", {
8220
8345
  className: "context-item"
8221
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8222
- name: "EyeOff"
8346
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8347
+ name: "hide-flv",
8348
+ width: 18,
8349
+ height: 18,
8350
+ style: {
8351
+ marginRight: "8px"
8352
+ }
8223
8353
  }), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.row)));
8224
8354
  });
8225
8355
  }
@@ -8243,8 +8373,13 @@ var ContextMenu = function ContextMenu() {
8243
8373
  }
8244
8374
  }, /*#__PURE__*/React.createElement("div", {
8245
8375
  className: "context-item"
8246
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8247
- name: "EyeOff"
8376
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8377
+ name: "hide-flv",
8378
+ width: 18,
8379
+ height: 18,
8380
+ style: {
8381
+ marginRight: "8px"
8382
+ }
8248
8383
  }), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.column)));
8249
8384
  });
8250
8385
  }
@@ -8282,8 +8417,11 @@ var ContextMenu = function ContextMenu() {
8282
8417
  className: "context-item"
8283
8418
  }, /*#__PURE__*/React.createElement(SVGIcon, {
8284
8419
  name: "resize-flv",
8285
- width: 16,
8286
- height: 16
8420
+ width: 18,
8421
+ height: 18,
8422
+ style: {
8423
+ marginRight: "8px"
8424
+ }
8287
8425
  }), /*#__PURE__*/React.createElement("div", null, "Resize row height", /*#__PURE__*/React.createElement("input", {
8288
8426
  onClick: function onClick(e) {
8289
8427
  return e.stopPropagation();
@@ -8319,8 +8457,11 @@ var ContextMenu = function ContextMenu() {
8319
8457
  className: "context-item"
8320
8458
  }, /*#__PURE__*/React.createElement(SVGIcon, {
8321
8459
  name: "resize-flv",
8322
- width: 16,
8323
- height: 16
8460
+ width: 18,
8461
+ height: 18,
8462
+ style: {
8463
+ marginRight: "8px"
8464
+ }
8324
8465
  }), /*#__PURE__*/React.createElement("div", null, "Resize column width")))) : null;
8325
8466
  }
8326
8467
  if (name === "clear") {
@@ -8348,8 +8489,13 @@ var ContextMenu = function ContextMenu() {
8348
8489
  }
8349
8490
  }, /*#__PURE__*/React.createElement("div", {
8350
8491
  className: "context-item"
8351
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8352
- name: "Eraser"
8492
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8493
+ name: "clear-flv",
8494
+ width: 17,
8495
+ height: 17,
8496
+ style: {
8497
+ marginRight: "8px"
8498
+ }
8353
8499
  }), /*#__PURE__*/React.createElement("p", null, rightclick.clearContent)));
8354
8500
  }
8355
8501
  if (name === "ascSort") {
@@ -8365,8 +8511,14 @@ var ContextMenu = function ContextMenu() {
8365
8511
  }
8366
8512
  }, /*#__PURE__*/React.createElement("div", {
8367
8513
  className: "context-item"
8368
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8369
- name: "ArrowDown01"
8514
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8515
+ name: "asc-sort-flv",
8516
+ width: 18,
8517
+ height: 18,
8518
+ style: {
8519
+ marginTop: "4px",
8520
+ marginRight: "8px"
8521
+ }
8370
8522
  }), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
8371
8523
  }
8372
8524
  if (name === "desSort") {
@@ -8382,8 +8534,14 @@ var ContextMenu = function ContextMenu() {
8382
8534
  }
8383
8535
  }, /*#__PURE__*/React.createElement("div", {
8384
8536
  className: "context-item"
8385
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8386
- name: "ArrowDown10"
8537
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8538
+ name: "des-sort-flv",
8539
+ width: 18,
8540
+ height: 18,
8541
+ style: {
8542
+ marginTop: "4px",
8543
+ marginRight: "8px"
8544
+ }
8387
8545
  }), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
8388
8546
  }
8389
8547
  if (name === "sort") {
@@ -8417,8 +8575,13 @@ var ContextMenu = function ContextMenu() {
8417
8575
  style: {
8418
8576
  height: "40px"
8419
8577
  }
8420
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8421
- name: "ArrowUp"
8578
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8579
+ name: "sort-asc",
8580
+ width: 24,
8581
+ height: 18,
8582
+ style: {
8583
+ marginRight: "4px"
8584
+ }
8422
8585
  }), /*#__PURE__*/React.createElement("p", null, sort.asc))), /*#__PURE__*/React.createElement(Menu, {
8423
8586
  onClick: function onClick() {
8424
8587
  setContext(function (draftCtx) {
@@ -8431,8 +8594,13 @@ var ContextMenu = function ContextMenu() {
8431
8594
  style: {
8432
8595
  height: "40px"
8433
8596
  }
8434
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8435
- name: "ArrowDown"
8597
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8598
+ name: "sort-desc",
8599
+ width: 24,
8600
+ height: 18,
8601
+ style: {
8602
+ marginRight: "4px"
8603
+ }
8436
8604
  }), /*#__PURE__*/React.createElement("p", null, sort.desc))))),
8437
8605
  trigger: "mouseenter focus",
8438
8606
  hideOnClick: false
@@ -8440,12 +8608,16 @@ var ContextMenu = function ContextMenu() {
8440
8608
  className: "flex items-center justify-between w-full"
8441
8609
  }, /*#__PURE__*/React.createElement("div", {
8442
8610
  className: "context-item"
8443
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8444
- name: "ArrowDownUp"
8445
- }), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
8446
- name: "ChevronRight",
8447
- width: 16,
8448
- height: 16
8611
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8612
+ name: "sort-flv",
8613
+ width: 18,
8614
+ height: 18,
8615
+ style: {
8616
+ marginRight: "8px"
8617
+ }
8618
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
8619
+ name: "rightArrow",
8620
+ width: 18
8449
8621
  })))));
8450
8622
  }
8451
8623
  if (name === "filter") {
@@ -8479,8 +8651,13 @@ var ContextMenu = function ContextMenu() {
8479
8651
  style: {
8480
8652
  height: "40px"
8481
8653
  }
8482
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8483
- name: "Filter"
8654
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8655
+ name: "filter",
8656
+ width: 22,
8657
+ height: 22,
8658
+ style: {
8659
+ marginRight: "4px"
8660
+ }
8484
8661
  }), /*#__PURE__*/React.createElement("p", null, filter.filter))), /*#__PURE__*/React.createElement(Menu, {
8485
8662
  onClick: function onClick() {
8486
8663
  setContext(function (draftCtx) {
@@ -8493,8 +8670,14 @@ var ContextMenu = function ContextMenu() {
8493
8670
  style: {
8494
8671
  height: "40px"
8495
8672
  }
8496
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8497
- name: "Eraser"
8673
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8674
+ name: "eraser",
8675
+ width: 22,
8676
+ height: 22,
8677
+ style: {
8678
+ marginRight: "4px",
8679
+ marginLeft: "2px"
8680
+ }
8498
8681
  }), /*#__PURE__*/React.createElement("p", null, filter.clearFilter))))),
8499
8682
  trigger: "mouseenter focus",
8500
8683
  hideOnClick: false
@@ -8502,12 +8685,17 @@ var ContextMenu = function ContextMenu() {
8502
8685
  className: "flex items-center justify-between w-full"
8503
8686
  }, /*#__PURE__*/React.createElement("div", {
8504
8687
  className: "context-item"
8505
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8506
- name: "Filter"
8507
- }), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
8508
- name: "ChevronRight",
8509
- width: 16,
8510
- height: 16
8688
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8689
+ name: "filter",
8690
+ width: 22,
8691
+ height: 22,
8692
+ style: {
8693
+ marginRight: "4px",
8694
+ marginTop: "2px"
8695
+ }
8696
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
8697
+ name: "rightArrow",
8698
+ width: 18
8511
8699
  })))));
8512
8700
  }
8513
8701
  if (name === "image") {
@@ -8532,8 +8720,13 @@ var ContextMenu = function ContextMenu() {
8532
8720
  }
8533
8721
  }, /*#__PURE__*/React.createElement("div", {
8534
8722
  className: "context-item"
8535
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8536
- name: "Link"
8723
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8724
+ name: "link",
8725
+ width: 20,
8726
+ height: 20,
8727
+ style: {
8728
+ marginRight: "7px"
8729
+ }
8537
8730
  }), /*#__PURE__*/React.createElement("p", null, rightclick.link)));
8538
8731
  }
8539
8732
  if (name === "conditionFormat") {
@@ -8564,11 +8757,16 @@ var ContextMenu = function ContextMenu() {
8564
8757
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
8565
8758
  className: "flex items-center justify-between w-full"
8566
8759
  }, /*#__PURE__*/React.createElement("div", {
8567
- className: "flex items-center gap-2 context-item"
8568
- }, /*#__PURE__*/React.createElement(LucideIcon, {
8569
- name: "PaintbrushVertical"
8570
- }), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(LucideIcon, {
8571
- name: "ChevronRight",
8760
+ className: "flex items-center gap-2"
8761
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8762
+ name: "conditionFormat",
8763
+ width: 16,
8764
+ height: 16,
8765
+ style: {
8766
+ marginRight: "2px"
8767
+ }
8768
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(SVGIcon, {
8769
+ name: "rightArrow",
8572
8770
  width: 16,
8573
8771
  height: 16
8574
8772
  })))));
@@ -11885,14 +12083,13 @@ var DunePreview = function DunePreview(_ref) {
11885
12083
  }
11886
12084
  })), /*#__PURE__*/React.createElement("p", null, "Do you want to insert Dune chart?"), /*#__PURE__*/React.createElement("div", {
11887
12085
  className: "fortune-dune-preview-footer"
11888
- }, /*#__PURE__*/React.createElement("button", {
11889
- type: "button",
12086
+ }, /*#__PURE__*/React.createElement(Button$1, {
12087
+ variant: "ghost",
11890
12088
  onClick: onKeepAsLink,
11891
- className: "fortune-dune-preview-button"
11892
- }, "Keep as Link"), /*#__PURE__*/React.createElement("button", {
11893
- type: "button",
12089
+ className: "!w-fit px-0"
12090
+ }, "Keep as Link"), /*#__PURE__*/React.createElement(Button$1, {
11894
12091
  onClick: onEmbed,
11895
- className: "fortune-dune-preview-button primary"
12092
+ className: "!w-fit px-0"
11896
12093
  }, "Embed")));
11897
12094
  };
11898
12095