@fileverse-dev/fortune-react 1.0.2-mod-67-patch-1 → 1.0.2-mod-69

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,7 +2,7 @@ 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 { 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';
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, RadioGroup, RadioGroupItem, Label } from '@fileverse/ui';
6
6
  import regeneratorRuntime from 'regenerator-runtime';
7
7
  import Tippy from '@tippyjs/react';
8
8
  export * from '@fileverse-dev/formulajs/crypto-constants';
@@ -854,7 +854,9 @@ var FormulaSearch = function FormulaSearch(props) {
854
854
  style: {
855
855
  width: "20px"
856
856
  }
857
- })), v.API_KEY && (/*#__PURE__*/React.createElement("div", {
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", {
858
860
  style: {
859
861
  borderRadius: "4px",
860
862
  backgroundColor: "".concat(localStorage.getItem(v.API_KEY) ? "#177E23" : "#e8ebec"),
@@ -869,7 +871,7 @@ var FormulaSearch = function FormulaSearch(props) {
869
871
  width: "12px",
870
872
  height: "12px"
871
873
  }
872
- }))))), /*#__PURE__*/React.createElement("div", {
874
+ })))))), /*#__PURE__*/React.createElement("div", {
873
875
  className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
874
876
  }, v.d));
875
877
  }), /*#__PURE__*/React.createElement("hr", {
@@ -1918,6 +1920,7 @@ var SearchReplace = function SearchReplace(_ref) {
1918
1920
  var _tableContainerRef$cu;
1919
1921
  if (e.target === tableContainerRef.current || ((_tableContainerRef$cu = tableContainerRef.current) === null || _tableContainerRef$cu === void 0 ? void 0 : _tableContainerRef$cu.contains(e.target))) {
1920
1922
  var _tableContainerRef$cu2;
1923
+ e.preventDefault();
1921
1924
  e.stopPropagation();
1922
1925
  (_tableContainerRef$cu2 = tableContainerRef.current) === null || _tableContainerRef$cu2 === void 0 ? void 0 : _tableContainerRef$cu2.focus();
1923
1926
  }
@@ -1926,13 +1929,17 @@ var SearchReplace = function SearchReplace(_ref) {
1926
1929
  e.preventDefault();
1927
1930
  e.stopPropagation();
1928
1931
  if (tableContainerRef.current) {
1929
- tableContainerRef.current.scrollTop += e.deltaY;
1932
+ var delta = e.deltaY;
1933
+ var currentScroll = tableContainerRef.current.scrollTop;
1934
+ tableContainerRef.current.scrollTop = currentScroll + delta;
1930
1935
  }
1931
1936
  },
1932
1937
  onTouchStart: function onTouchStart(e) {
1938
+ e.preventDefault();
1933
1939
  e.stopPropagation();
1934
1940
  },
1935
1941
  onTouchMove: function onTouchMove(e) {
1942
+ e.preventDefault();
1936
1943
  e.stopPropagation();
1937
1944
  },
1938
1945
  tabIndex: 0
@@ -3707,11 +3714,8 @@ var IframeBoxs = function IframeBoxs() {
3707
3714
  });
3708
3715
  })), /*#__PURE__*/React.createElement("div", {
3709
3716
  className: "luckysheet-modal-dialog-controll"
3710
- }, /*#__PURE__*/React.createElement("span", {
3711
- className: "luckysheet-modal-controll-btn luckysheet-modal-controll-del",
3712
- role: "button",
3713
- tabIndex: 0,
3714
- title: "Delete",
3717
+ }, /*#__PURE__*/React.createElement(IconButton, {
3718
+ icon: "Trash2",
3715
3719
  onClick: function onClick() {
3716
3720
  setContext(function (ctx) {
3717
3721
  var currentSheet = ctx.luckysheetfile.find(function (sheet) {
@@ -3725,8 +3729,10 @@ var IframeBoxs = function IframeBoxs() {
3725
3729
  }
3726
3730
  ctx.activeIframe = undefined;
3727
3731
  });
3728
- }
3729
- }, "DELETE")))));
3732
+ },
3733
+ variant: "ghost",
3734
+ className: "fortune-iframe-boxes-delete-button"
3735
+ })))));
3730
3736
  }));
3731
3737
  };
3732
3738
 
@@ -5468,7 +5474,6 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5468
5474
  var isOpen = _ref.isOpen,
5469
5475
  onClose = _ref.onClose,
5470
5476
  onSubmit = _ref.onSubmit,
5471
- icon = _ref.icon,
5472
5477
  _ref$submitText = _ref.submitText,
5473
5478
  submitText = _ref$submitText === void 0 ? "Submit" : _ref$submitText,
5474
5479
  _ref$placeholder = _ref.placeholder,
@@ -5510,6 +5515,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5510
5515
  e.stopPropagation();
5511
5516
  if (e.key === "Enter") {
5512
5517
  handleSubmit();
5518
+ } else if (e.key === "Escape") {
5519
+ onClose();
5513
5520
  }
5514
5521
  };
5515
5522
  return /*#__PURE__*/React.createElement("div", {
@@ -5526,8 +5533,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5526
5533
  onKeyDown: handleKeyDown
5527
5534
  }, /*#__PURE__*/React.createElement("div", {
5528
5535
  className: "modal-header"
5529
- }, /*#__PURE__*/React.createElement(SVGIcon, {
5530
- name: icon
5536
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
5537
+ name: "DuneChart"
5531
5538
  }), /*#__PURE__*/React.createElement("input", {
5532
5539
  ref: inputRef,
5533
5540
  className: "modal-input",
@@ -6930,7 +6937,6 @@ var Toolbar = function Toolbar(_ref) {
6930
6937
  onClose: function onClose() {
6931
6938
  return setShowDuneModal(false);
6932
6939
  },
6933
- icon: "dune-logo",
6934
6940
  placeholder: "Add Dune chart link to embed",
6935
6941
  submitText: "Embed Dune chart"
6936
6942
  }))));
@@ -7811,12 +7817,8 @@ var ContextMenu = function ContextMenu() {
7811
7817
  className: "context-item"
7812
7818
  }, /*#__PURE__*/React.createElement(SVGIcon, {
7813
7819
  name: "split-flv",
7814
- width: 17,
7815
- height: 17,
7816
- style: {
7817
- marginTop: "4px",
7818
- marginRight: "8px"
7819
- }
7820
+ width: 18,
7821
+ height: 18
7820
7822
  }), "Split text to columns"));
7821
7823
  }
7822
7824
  if (name === "freeze-row") {
@@ -7838,15 +7840,9 @@ var ContextMenu = function ContextMenu() {
7838
7840
  }
7839
7841
  }, /*#__PURE__*/React.createElement("div", {
7840
7842
  className: "context-item"
7841
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7842
- name: "freeze-flv",
7843
- width: 16,
7844
- height: 16,
7845
- style: {
7846
- marginTop: "4px",
7847
- marginRight: "4px"
7848
- }
7849
- }), isFrozen ? "Unfreeze row" : "Freeze to current row"));
7843
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7844
+ name: "Snowflake"
7845
+ }), /*#__PURE__*/React.createElement("p", null, isFrozen ? "Unfreeze row" : "Freeze upto current row")));
7850
7846
  }
7851
7847
  if (name === "freeze-column") {
7852
7848
  var _freezeState = getFreezeState(context);
@@ -7868,15 +7864,9 @@ var ContextMenu = function ContextMenu() {
7868
7864
  }
7869
7865
  }, /*#__PURE__*/React.createElement("div", {
7870
7866
  className: "context-item"
7871
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7872
- name: "freeze-flv",
7873
- width: 18,
7874
- height: 18,
7875
- style: {
7876
- marginTop: "4px",
7877
- marginRight: "4px"
7878
- }
7879
- }), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze to current column")));
7867
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7868
+ name: "Snowflake"
7869
+ }), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze upto current column")));
7880
7870
  }
7881
7871
  if (name === "comment") {
7882
7872
  return /*#__PURE__*/React.createElement(Menu, {
@@ -7889,14 +7879,8 @@ var ContextMenu = function ContextMenu() {
7889
7879
  }
7890
7880
  }, /*#__PURE__*/React.createElement("div", {
7891
7881
  className: "context-item"
7892
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7893
- name: "comment-flv",
7894
- width: 18,
7895
- height: 18,
7896
- style: {
7897
- marginTop: "4px",
7898
- marginRight: "8px"
7899
- }
7882
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7883
+ name: "MessageSquarePlus"
7900
7884
  }), /*#__PURE__*/React.createElement("p", null, "Comment")));
7901
7885
  }
7902
7886
  if (name === "dataVerification") {
@@ -7911,13 +7895,8 @@ var ContextMenu = function ContextMenu() {
7911
7895
  }
7912
7896
  }, /*#__PURE__*/React.createElement("div", {
7913
7897
  className: "context-item"
7914
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7915
- name: "dataVerification",
7916
- width: 20,
7917
- height: 20,
7918
- style: {
7919
- marginRight: "7px"
7920
- }
7898
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7899
+ name: "ShieldCheck"
7921
7900
  }), /*#__PURE__*/React.createElement("p", null, "Data Verification")));
7922
7901
  }
7923
7902
  if (name === "searchReplace") {
@@ -7933,13 +7912,8 @@ var ContextMenu = function ContextMenu() {
7933
7912
  }
7934
7913
  }, /*#__PURE__*/React.createElement("div", {
7935
7914
  className: "context-item"
7936
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7937
- name: "search",
7938
- width: 20,
7939
- height: 20,
7940
- style: {
7941
- marginRight: "7px"
7942
- }
7915
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7916
+ name: "Search"
7943
7917
  }), /*#__PURE__*/React.createElement("p", null, "Find and Replace")));
7944
7918
  }
7945
7919
  if (name === "copy") {
@@ -7959,14 +7933,8 @@ var ContextMenu = function ContextMenu() {
7959
7933
  }
7960
7934
  }, /*#__PURE__*/React.createElement("div", {
7961
7935
  className: "context-item"
7962
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7963
- name: "copy-flv",
7964
- width: 21,
7965
- height: 21,
7966
- style: {
7967
- marginTop: "4px",
7968
- marginRight: "4px"
7969
- }
7936
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7937
+ name: "Copy"
7970
7938
  }), /*#__PURE__*/React.createElement("p", null, rightclick.copy)));
7971
7939
  }
7972
7940
  if (name === "cut") {
@@ -7999,13 +7967,8 @@ var ContextMenu = function ContextMenu() {
7999
7967
  }
8000
7968
  }, /*#__PURE__*/React.createElement("div", {
8001
7969
  className: "context-item"
8002
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8003
- name: "cut-flv",
8004
- width: 17,
8005
- height: 17,
8006
- style: {
8007
- marginRight: "8px"
8008
- }
7970
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7971
+ name: "Scissors"
8009
7972
  }), /*#__PURE__*/React.createElement("p", null, "Cut")));
8010
7973
  }
8011
7974
  if (name === "paste" && regeneratorRuntime) {
@@ -8037,13 +8000,8 @@ var ContextMenu = function ContextMenu() {
8037
8000
  }()
8038
8001
  }, /*#__PURE__*/React.createElement("div", {
8039
8002
  className: "context-item"
8040
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8041
- name: "paste-flv",
8042
- width: 17,
8043
- height: 17,
8044
- style: {
8045
- marginRight: "8px"
8046
- }
8003
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8004
+ name: "Clipboard"
8047
8005
  }), /*#__PURE__*/React.createElement("p", null, rightclick.paste)));
8048
8006
  }
8049
8007
  if (name === "insert-column") {
@@ -8075,10 +8033,10 @@ var ContextMenu = function ContextMenu() {
8075
8033
  insertRowColOp: insertRowColOp
8076
8034
  });
8077
8035
  }
8078
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
8079
- name: "insert-flv",
8080
- width: 18,
8081
- height: 18
8036
+ }, /*#__PURE__*/React.createElement("div", {
8037
+ className: "context-item"
8038
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8039
+ name: "Plus"
8082
8040
  }), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
8083
8041
  });
8084
8042
  }
@@ -8111,10 +8069,10 @@ var ContextMenu = function ContextMenu() {
8111
8069
  insertRowColOp: insertRowColOp
8112
8070
  });
8113
8071
  }
8114
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
8115
- name: "insert-flv",
8116
- width: 18,
8117
- height: 18
8072
+ }, /*#__PURE__*/React.createElement("div", {
8073
+ className: "context-item"
8074
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8075
+ name: "Plus"
8118
8076
  }), /*#__PURE__*/React.createElement("div", null, "Insert row below")));
8119
8077
  });
8120
8078
  }
@@ -8161,13 +8119,8 @@ var ContextMenu = function ContextMenu() {
8161
8119
  }
8162
8120
  }, /*#__PURE__*/React.createElement("div", {
8163
8121
  className: "context-item"
8164
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8165
- name: "delete-flv",
8166
- width: 18,
8167
- height: 18,
8168
- style: {
8169
- marginRight: "8px"
8170
- }
8122
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8123
+ name: "Trash2"
8171
8124
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
8172
8125
  }
8173
8126
  if (name === "cell-delete-column") {
@@ -8213,13 +8166,8 @@ var ContextMenu = function ContextMenu() {
8213
8166
  }
8214
8167
  }, /*#__PURE__*/React.createElement("div", {
8215
8168
  className: "context-item"
8216
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8217
- name: "delete-flv",
8218
- width: 18,
8219
- height: 18,
8220
- style: {
8221
- marginRight: "8px"
8222
- }
8169
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8170
+ name: "Trash2"
8223
8171
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
8224
8172
  }
8225
8173
  if (name === "delete-row") {
@@ -8264,13 +8212,8 @@ var ContextMenu = function ContextMenu() {
8264
8212
  }
8265
8213
  }, /*#__PURE__*/React.createElement("div", {
8266
8214
  className: "context-item"
8267
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8268
- name: "delete-flv",
8269
- width: 18,
8270
- height: 18,
8271
- style: {
8272
- marginRight: "8px"
8273
- }
8215
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8216
+ name: "Trash2"
8274
8217
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8275
8218
  }
8276
8219
  if (name === "cell-delete-row") {
@@ -8315,13 +8258,8 @@ var ContextMenu = function ContextMenu() {
8315
8258
  }
8316
8259
  }, /*#__PURE__*/React.createElement("div", {
8317
8260
  className: "context-item"
8318
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8319
- name: "delete-flv",
8320
- width: 18,
8321
- height: 18,
8322
- style: {
8323
- marginRight: "8px"
8324
- }
8261
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8262
+ name: "Trash2"
8325
8263
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8326
8264
  }
8327
8265
  if (name === "hide-row") {
@@ -8344,13 +8282,8 @@ var ContextMenu = function ContextMenu() {
8344
8282
  }
8345
8283
  }, /*#__PURE__*/React.createElement("div", {
8346
8284
  className: "context-item"
8347
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8348
- name: "hide-flv",
8349
- width: 18,
8350
- height: 18,
8351
- style: {
8352
- marginRight: "8px"
8353
- }
8285
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8286
+ name: "EyeOff"
8354
8287
  }), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.row)));
8355
8288
  });
8356
8289
  }
@@ -8374,13 +8307,8 @@ var ContextMenu = function ContextMenu() {
8374
8307
  }
8375
8308
  }, /*#__PURE__*/React.createElement("div", {
8376
8309
  className: "context-item"
8377
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8378
- name: "hide-flv",
8379
- width: 18,
8380
- height: 18,
8381
- style: {
8382
- marginRight: "8px"
8383
- }
8310
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8311
+ name: "EyeOff"
8384
8312
  }), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.column)));
8385
8313
  });
8386
8314
  }
@@ -8416,13 +8344,8 @@ var ContextMenu = function ContextMenu() {
8416
8344
  }
8417
8345
  }, /*#__PURE__*/React.createElement("div", {
8418
8346
  className: "context-item"
8419
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8420
- name: "resize-flv",
8421
- width: 18,
8422
- height: 18,
8423
- style: {
8424
- marginRight: "8px"
8425
- }
8347
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8348
+ name: "Resize"
8426
8349
  }), /*#__PURE__*/React.createElement("div", null, "Resize row height", /*#__PURE__*/React.createElement("input", {
8427
8350
  onClick: function onClick(e) {
8428
8351
  return e.stopPropagation();
@@ -8456,13 +8379,8 @@ var ContextMenu = function ContextMenu() {
8456
8379
  }
8457
8380
  }, /*#__PURE__*/React.createElement("div", {
8458
8381
  className: "context-item"
8459
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8460
- name: "resize-flv",
8461
- width: 18,
8462
- height: 18,
8463
- style: {
8464
- marginRight: "8px"
8465
- }
8382
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8383
+ name: "Resize"
8466
8384
  }), /*#__PURE__*/React.createElement("div", null, "Resize column width")))) : null;
8467
8385
  }
8468
8386
  if (name === "clear") {
@@ -8490,13 +8408,8 @@ var ContextMenu = function ContextMenu() {
8490
8408
  }
8491
8409
  }, /*#__PURE__*/React.createElement("div", {
8492
8410
  className: "context-item"
8493
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8494
- name: "clear-flv",
8495
- width: 17,
8496
- height: 17,
8497
- style: {
8498
- marginRight: "8px"
8499
- }
8411
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8412
+ name: "Eraser"
8500
8413
  }), /*#__PURE__*/React.createElement("p", null, rightclick.clearContent)));
8501
8414
  }
8502
8415
  if (name === "ascSort") {
@@ -8512,14 +8425,8 @@ var ContextMenu = function ContextMenu() {
8512
8425
  }
8513
8426
  }, /*#__PURE__*/React.createElement("div", {
8514
8427
  className: "context-item"
8515
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8516
- name: "asc-sort-flv",
8517
- width: 18,
8518
- height: 18,
8519
- style: {
8520
- marginTop: "4px",
8521
- marginRight: "8px"
8522
- }
8428
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8429
+ name: "ArrowDown01"
8523
8430
  }), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
8524
8431
  }
8525
8432
  if (name === "desSort") {
@@ -8535,14 +8442,8 @@ var ContextMenu = function ContextMenu() {
8535
8442
  }
8536
8443
  }, /*#__PURE__*/React.createElement("div", {
8537
8444
  className: "context-item"
8538
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8539
- name: "des-sort-flv",
8540
- width: 18,
8541
- height: 18,
8542
- style: {
8543
- marginTop: "4px",
8544
- marginRight: "8px"
8545
- }
8445
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8446
+ name: "ArrowDown10"
8546
8447
  }), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
8547
8448
  }
8548
8449
  if (name === "sort") {
@@ -8576,13 +8477,8 @@ var ContextMenu = function ContextMenu() {
8576
8477
  style: {
8577
8478
  height: "40px"
8578
8479
  }
8579
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8580
- name: "sort-asc",
8581
- width: 24,
8582
- height: 18,
8583
- style: {
8584
- marginRight: "4px"
8585
- }
8480
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8481
+ name: "ArrowUp"
8586
8482
  }), /*#__PURE__*/React.createElement("p", null, sort.asc))), /*#__PURE__*/React.createElement(Menu, {
8587
8483
  onClick: function onClick() {
8588
8484
  setContext(function (draftCtx) {
@@ -8595,13 +8491,8 @@ var ContextMenu = function ContextMenu() {
8595
8491
  style: {
8596
8492
  height: "40px"
8597
8493
  }
8598
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8599
- name: "sort-desc",
8600
- width: 24,
8601
- height: 18,
8602
- style: {
8603
- marginRight: "4px"
8604
- }
8494
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8495
+ name: "ArrowDown"
8605
8496
  }), /*#__PURE__*/React.createElement("p", null, sort.desc))))),
8606
8497
  trigger: "mouseenter focus",
8607
8498
  hideOnClick: false
@@ -8609,16 +8500,12 @@ var ContextMenu = function ContextMenu() {
8609
8500
  className: "flex items-center justify-between w-full"
8610
8501
  }, /*#__PURE__*/React.createElement("div", {
8611
8502
  className: "context-item"
8612
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8613
- name: "sort-flv",
8614
- width: 18,
8615
- height: 18,
8616
- style: {
8617
- marginRight: "8px"
8618
- }
8619
- }), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
8620
- name: "rightArrow",
8621
- width: 18
8503
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8504
+ name: "ArrowDownUp"
8505
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
8506
+ name: "ChevronRight",
8507
+ width: 16,
8508
+ height: 16
8622
8509
  })))));
8623
8510
  }
8624
8511
  if (name === "filter") {
@@ -8652,13 +8539,8 @@ var ContextMenu = function ContextMenu() {
8652
8539
  style: {
8653
8540
  height: "40px"
8654
8541
  }
8655
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8656
- name: "filter",
8657
- width: 22,
8658
- height: 22,
8659
- style: {
8660
- marginRight: "4px"
8661
- }
8542
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8543
+ name: "Filter"
8662
8544
  }), /*#__PURE__*/React.createElement("p", null, filter.filter))), /*#__PURE__*/React.createElement(Menu, {
8663
8545
  onClick: function onClick() {
8664
8546
  setContext(function (draftCtx) {
@@ -8671,14 +8553,8 @@ var ContextMenu = function ContextMenu() {
8671
8553
  style: {
8672
8554
  height: "40px"
8673
8555
  }
8674
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8675
- name: "eraser",
8676
- width: 22,
8677
- height: 22,
8678
- style: {
8679
- marginRight: "4px",
8680
- marginLeft: "2px"
8681
- }
8556
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8557
+ name: "Eraser"
8682
8558
  }), /*#__PURE__*/React.createElement("p", null, filter.clearFilter))))),
8683
8559
  trigger: "mouseenter focus",
8684
8560
  hideOnClick: false
@@ -8686,17 +8562,12 @@ var ContextMenu = function ContextMenu() {
8686
8562
  className: "flex items-center justify-between w-full"
8687
8563
  }, /*#__PURE__*/React.createElement("div", {
8688
8564
  className: "context-item"
8689
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8690
- name: "filter",
8691
- width: 22,
8692
- height: 22,
8693
- style: {
8694
- marginRight: "4px",
8695
- marginTop: "2px"
8696
- }
8697
- }), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
8698
- name: "rightArrow",
8699
- width: 18
8565
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8566
+ name: "Filter"
8567
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
8568
+ name: "ChevronRight",
8569
+ width: 16,
8570
+ height: 16
8700
8571
  })))));
8701
8572
  }
8702
8573
  if (name === "image") {
@@ -8721,13 +8592,8 @@ var ContextMenu = function ContextMenu() {
8721
8592
  }
8722
8593
  }, /*#__PURE__*/React.createElement("div", {
8723
8594
  className: "context-item"
8724
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8725
- name: "link",
8726
- width: 20,
8727
- height: 20,
8728
- style: {
8729
- marginRight: "7px"
8730
- }
8595
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8596
+ name: "Link"
8731
8597
  }), /*#__PURE__*/React.createElement("p", null, rightclick.link)));
8732
8598
  }
8733
8599
  if (name === "conditionFormat") {
@@ -8758,16 +8624,11 @@ var ContextMenu = function ContextMenu() {
8758
8624
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
8759
8625
  className: "flex items-center justify-between w-full"
8760
8626
  }, /*#__PURE__*/React.createElement("div", {
8761
- className: "flex items-center gap-2"
8762
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8763
- name: "conditionFormat",
8764
- width: 16,
8765
- height: 16,
8766
- style: {
8767
- marginRight: "2px"
8768
- }
8769
- }), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(SVGIcon, {
8770
- name: "rightArrow",
8627
+ className: "flex items-center gap-2 context-item"
8628
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8629
+ name: "PaintbrushVertical"
8630
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(LucideIcon, {
8631
+ name: "ChevronRight",
8771
8632
  width: 16,
8772
8633
  height: 16
8773
8634
  })))));
@@ -12084,13 +11945,14 @@ var DunePreview = function DunePreview(_ref) {
12084
11945
  }
12085
11946
  })), /*#__PURE__*/React.createElement("p", null, "Do you want to insert Dune chart?"), /*#__PURE__*/React.createElement("div", {
12086
11947
  className: "fortune-dune-preview-footer"
12087
- }, /*#__PURE__*/React.createElement(Button$1, {
12088
- variant: "ghost",
11948
+ }, /*#__PURE__*/React.createElement("button", {
11949
+ type: "button",
12089
11950
  onClick: onKeepAsLink,
12090
- className: "!w-fit px-0"
12091
- }, "Keep as Link"), /*#__PURE__*/React.createElement(Button$1, {
11951
+ className: "fortune-dune-preview-button"
11952
+ }, "Keep as Link"), /*#__PURE__*/React.createElement("button", {
11953
+ type: "button",
12092
11954
  onClick: onEmbed,
12093
- className: "!w-fit px-0"
11955
+ className: "fortune-dune-preview-button primary"
12094
11956
  }, "Embed")));
12095
11957
  };
12096
11958