@fileverse-dev/fortune-react 1.0.37 → 1.0.39

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.
Files changed (55) hide show
  1. package/es/assets/paint-roller.png +0 -0
  2. package/es/components/FormatSearch/index.js +5 -9
  3. package/es/components/SVGDefines.js +1 -60
  4. package/es/components/SheetOverlay/index.css +0 -2
  5. package/es/components/SheetOverlay/index.js +2 -2
  6. package/es/components/SheetTab/index.css +0 -2
  7. package/es/components/SheetTab/index.js +2 -22
  8. package/es/components/Toolbar/Combo.js +4 -18
  9. package/es/components/Toolbar/index.css +0 -6
  10. package/es/components/Toolbar/index.d.ts +1 -1
  11. package/es/components/Toolbar/index.js +5 -334
  12. package/es/components/Workbook/index.css +4 -0
  13. package/es/components/Workbook/index.d.ts +23 -23
  14. package/es/components/Workbook/index.js +1 -25
  15. package/es/constants.d.ts +0 -26
  16. package/es/constants.js +3 -44
  17. package/lib/assets/paint-roller.png +0 -0
  18. package/lib/components/FormatSearch/index.js +5 -9
  19. package/lib/components/SVGDefines.js +1 -60
  20. package/lib/components/SheetOverlay/index.css +0 -2
  21. package/lib/components/SheetOverlay/index.js +2 -2
  22. package/lib/components/SheetTab/index.css +0 -2
  23. package/lib/components/SheetTab/index.js +2 -22
  24. package/lib/components/Toolbar/Combo.js +4 -18
  25. package/lib/components/Toolbar/index.css +0 -6
  26. package/lib/components/Toolbar/index.d.ts +1 -1
  27. package/lib/components/Toolbar/index.js +4 -333
  28. package/lib/components/Workbook/index.css +4 -0
  29. package/lib/components/Workbook/index.d.ts +23 -23
  30. package/lib/components/Workbook/index.js +0 -24
  31. package/lib/constants.d.ts +0 -26
  32. package/lib/constants.js +3 -45
  33. package/package.json +2 -2
  34. package/es/components/CryptoDenominationSelector/index.css +0 -67
  35. package/es/components/CryptoDenominationSelector/index.d.ts +0 -8
  36. package/es/components/CryptoDenominationSelector/index.js +0 -272
  37. package/es/hooks/useCryptoCells.d.ts +0 -11
  38. package/es/hooks/useCryptoCells.js +0 -210
  39. package/es/utils/convertCellsToCrypto.d.ts +0 -8
  40. package/es/utils/convertCellsToCrypto.js +0 -215
  41. package/es/utils/cryptoApi.d.ts +0 -2
  42. package/es/utils/cryptoApi.js +0 -154
  43. package/es/utils/updateCellsDecimalFormat.d.ts +0 -6
  44. package/es/utils/updateCellsDecimalFormat.js +0 -80
  45. package/lib/components/CryptoDenominationSelector/index.css +0 -67
  46. package/lib/components/CryptoDenominationSelector/index.d.ts +0 -8
  47. package/lib/components/CryptoDenominationSelector/index.js +0 -281
  48. package/lib/hooks/useCryptoCells.d.ts +0 -11
  49. package/lib/hooks/useCryptoCells.js +0 -216
  50. package/lib/utils/convertCellsToCrypto.d.ts +0 -8
  51. package/lib/utils/convertCellsToCrypto.js +0 -222
  52. package/lib/utils/cryptoApi.d.ts +0 -2
  53. package/lib/utils/cryptoApi.js +0 -161
  54. package/lib/utils/updateCellsDecimalFormat.d.ts +0 -6
  55. package/lib/utils/updateCellsDecimalFormat.js +0 -86
@@ -1,4 +1,4 @@
1
- import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix, api } from "@fileverse-dev/fortune-core";
1
+ import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix } from "@fileverse-dev/fortune-core";
2
2
  import React from "react";
3
3
  import "./index.css";
4
4
  import { generateAPIs } from "./api";
@@ -9,29 +9,29 @@ type AdditionalProps = {
9
9
  };
10
10
  declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
11
11
  applyOp: (ops: Op[]) => void;
12
- getCellValue: (row: number, column: number, options?: api.CommonOptions & {
12
+ getCellValue: (row: number, column: number, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions & {
13
13
  type?: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
14
14
  }) => any;
15
15
  onboardingActiveCell: (functionName: string) => void;
16
16
  initializeComment: (row: number, column: number) => void;
17
- setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
17
+ setCellValue: (row: number, column: number, value: any, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions & {
18
18
  type?: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
19
19
  }) => void;
20
- clearCell: (row: number, column: number, options?: api.CommonOptions) => void;
21
- setCellFormat: (row: number, column: number, attr: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle, value: any, options?: api.CommonOptions) => void;
20
+ clearCell: (row: number, column: number, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
21
+ setCellFormat: (row: number, column: number, attr: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle, value: any, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
22
22
  autoFillCell: (copyRange: import("@fileverse-dev/fortune-core").SingleRange, applyRange: import("@fileverse-dev/fortune-core").SingleRange, direction: "left" | "right" | "down" | "up") => void;
23
23
  freeze: (type: "column" | "both" | "row", range: {
24
24
  row: number;
25
25
  column: number;
26
- }, options?: api.CommonOptions) => void;
27
- insertRowOrColumn: (type: "column" | "row", index: number, count: number, direction?: "lefttop" | "rightbottom", options?: api.CommonOptions) => void;
28
- deleteRowOrColumn: (type: "column" | "row", start: number, end: number, options?: api.CommonOptions) => void;
26
+ }, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
27
+ insertRowOrColumn: (type: "column" | "row", index: number, count: number, direction?: "lefttop" | "rightbottom", options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
28
+ deleteRowOrColumn: (type: "column" | "row", start: number, end: number, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
29
29
  hideRowOrColumn: (rowOrColInfo: string[], type: "column" | "row") => void;
30
30
  showRowOrColumn: (rowOrColInfo: string[], type: "column" | "row") => void;
31
- setRowHeight: (rowInfo: Record<string, number>, options?: api.CommonOptions, custom?: boolean) => void;
32
- setColumnWidth: (columnInfo: Record<string, number>, options?: api.CommonOptions, custom?: boolean) => void;
33
- getRowHeight: (rows: number[], options?: api.CommonOptions) => Record<number, number>;
34
- getColumnWidth: (columns: number[], options?: api.CommonOptions) => Record<number, number>;
31
+ setRowHeight: (rowInfo: Record<string, number>, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions, custom?: boolean) => void;
32
+ setColumnWidth: (columnInfo: Record<string, number>, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions, custom?: boolean) => void;
33
+ getRowHeight: (rows: number[], options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => Record<number, number>;
34
+ getColumnWidth: (columns: number[], options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => Record<number, number>;
35
35
  getSelection: () => {
36
36
  row: number[];
37
37
  column: number[];
@@ -45,15 +45,15 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
45
45
  c: number;
46
46
  }[] | undefined) => (import("@fileverse-dev/fortune-core").Cell | null)[];
47
47
  getSelectionCoordinates: () => string[];
48
- getCellsByRange: (range: import("@fileverse-dev/fortune-core").Selection, options?: api.CommonOptions) => (import("@fileverse-dev/fortune-core").Cell | null)[][];
49
- getHtmlByRange: (range: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => string | null;
50
- setSelection: (range: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
51
- setCellValuesByRange: (data: any[][], range: import("@fileverse-dev/fortune-core").SingleRange, options?: api.CommonOptions) => void;
52
- setCellFormatByRange: (attr: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle, value: any, range: import("@fileverse-dev/fortune-core").SingleRange | import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
53
- mergeCells: (ranges: import("@fileverse-dev/fortune-core").Range, type: string, options?: api.CommonOptions) => void;
54
- cancelMerge: (ranges: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
48
+ getCellsByRange: (range: import("@fileverse-dev/fortune-core").Selection, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => (import("@fileverse-dev/fortune-core").Cell | null)[][];
49
+ getHtmlByRange: (range: import("@fileverse-dev/fortune-core").Range, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => string | null;
50
+ setSelection: (range: import("@fileverse-dev/fortune-core").Range, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
51
+ setCellValuesByRange: (data: any[][], range: import("@fileverse-dev/fortune-core").SingleRange, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
52
+ setCellFormatByRange: (attr: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle, value: any, range: import("@fileverse-dev/fortune-core").SingleRange | import("@fileverse-dev/fortune-core").Range, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
53
+ mergeCells: (ranges: import("@fileverse-dev/fortune-core").Range, type: string, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
54
+ cancelMerge: (ranges: import("@fileverse-dev/fortune-core").Range, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
55
55
  getAllSheets: () => SheetType[];
56
- getSheet: (options?: api.CommonOptions) => {
56
+ getSheet: (options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => {
57
57
  celldata: CellWithRowAndCol[];
58
58
  name: string;
59
59
  config?: import("@fileverse-dev/fortune-core").SheetConfig | undefined;
@@ -116,10 +116,10 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
116
116
  } | undefined;
117
117
  };
118
118
  addSheet: () => void;
119
- deleteSheet: (options?: api.CommonOptions) => void;
119
+ deleteSheet: (options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
120
120
  updateSheet: (data: SheetType[]) => void;
121
- activateSheet: (options?: api.CommonOptions) => void;
122
- setSheetName: (name: string, options?: api.CommonOptions) => void;
121
+ activateSheet: (options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
122
+ setSheetName: (name: string, options?: import("@fileverse-dev/fortune-core/lib/api").CommonOptions) => void;
123
123
  setSheetOrder: (orderList: Record<string, number>) => void;
124
124
  scroll: (options: {
125
125
  scrollLeft?: number | undefined;
@@ -15,7 +15,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
15
15
  }
16
16
  return to.concat(ar || Array.prototype.slice.call(from));
17
17
  };
18
- import { defaultContext, defaultSettings, initSheetIndex, handleGlobalKeyDown, getSheetIndex, handlePaste, filterPatch, patchToOp, inverseRowColOptions, ensureSheetIndex, insertRowCol, locale, calcSelectionInfo, groupValuesRefresh, insertDuneChart, getFlowdata, api } from "@fileverse-dev/fortune-core";
18
+ import { defaultContext, defaultSettings, initSheetIndex, handleGlobalKeyDown, getSheetIndex, handlePaste, filterPatch, patchToOp, inverseRowColOptions, ensureSheetIndex, insertRowCol, locale, calcSelectionInfo, groupValuesRefresh, insertDuneChart } from "@fileverse-dev/fortune-core";
19
19
  import React, { useMemo, useState, useCallback, useEffect, useRef, useImperativeHandle } from "react";
20
20
  import "./index.css";
21
21
  import produce, { applyPatches, enablePatches, produceWithPatches } from "immer";
@@ -320,30 +320,6 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
320
320
  }, [emitOp]);
321
321
  useEffect(function () {
322
322
  var _a, _b;
323
- setContext(function (ctx) {
324
- var _a, _b;
325
- var gridData = getFlowdata(ctx);
326
- var cellData = api.dataToCelldata(gridData);
327
- var denominatedUsed = false;
328
- for (var _i = 0, cellData_1 = cellData; _i < cellData_1.length; _i++) {
329
- var cell = cellData_1[_i];
330
- var value = (_b = (_a = cell === null || cell === void 0 ? void 0 : cell.v) === null || _a === void 0 ? void 0 : _a.m) === null || _b === void 0 ? void 0 : _b.toString();
331
- if ((value === null || value === void 0 ? void 0 : value.includes("BTC")) || (value === null || value === void 0 ? void 0 : value.includes("ETH")) || (value === null || value === void 0 ? void 0 : value.includes("SOL"))) {
332
- denominatedUsed = true;
333
- break;
334
- }
335
- }
336
- var denoWarn = document.getElementById("denomination-warning");
337
- var scrollBar = document.getElementsByClassName("luckysheet-scrollbar-x")[0];
338
- if (denominatedUsed && denoWarn) {
339
- denoWarn.style.display = "block";
340
- if (scrollBar) scrollBar.style.bottom = "28px";
341
- } else if (!denominatedUsed && denoWarn) {
342
- denoWarn.style.display = "none";
343
- if (scrollBar) scrollBar.style.bottom = "0px";
344
- }
345
- return ctx;
346
- });
347
323
  if (context.luckysheet_select_save != null) {
348
324
  (_b = (_a = mergedSettings.hooks) === null || _a === void 0 ? void 0 : _a.afterSelectionChange) === null || _b === void 0 ? void 0 : _b.call(_a, context.currentSheetId, context.luckysheet_select_save[0]);
349
325
  }
package/es/constants.d.ts CHANGED
@@ -1,27 +1 @@
1
1
  export declare const API_KEY_PLACEHOLDER: Record<string, string>;
2
- export declare const CRYPTO_OPTIONS: {
3
- label: string;
4
- value: string;
5
- icon: string;
6
- type: string;
7
- }[];
8
- export declare const FIAT_ICON_MAP: {
9
- USD: string;
10
- EUR: string;
11
- GBP: string;
12
- JPY: string;
13
- CNY: string;
14
- INR: string;
15
- };
16
- export declare function getGroupedCurrencyOptions(currencyDetail: Array<{
17
- name: string;
18
- value: string;
19
- }>): {
20
- group: string;
21
- options: {
22
- label: string;
23
- value: string;
24
- icon: string | undefined;
25
- type: string;
26
- }[];
27
- }[];
package/es/constants.js CHANGED
@@ -1,45 +1,4 @@
1
- import { SERVICES_API_KEY } from "@fileverse-dev/formulajs/crypto-constants";
2
- export var API_KEY_PLACEHOLDER = Object.fromEntries(Object.values(SERVICES_API_KEY).map(function (key) {
1
+ import { SERVICE_API_KEY } from "@fileverse-dev/formulajs/crypto-constants";
2
+ export var API_KEY_PLACEHOLDER = Object.fromEntries(Object.values(SERVICE_API_KEY).map(function (key) {
3
3
  return [key, "".concat(key.replace(/_/g, " ").replace(/\bAPI\b/, "API key"))];
4
- }));
5
- export var CRYPTO_OPTIONS = [{
6
- label: "Bitcoin (BTC)",
7
- value: "BTC",
8
- icon: "Btc",
9
- type: "crypto"
10
- }, {
11
- label: "Ethereum (ETH)",
12
- value: "ETH",
13
- icon: "Ethereum",
14
- type: "crypto"
15
- }, {
16
- label: "Solana (SOL)",
17
- value: "SOL",
18
- icon: "Solana",
19
- type: "crypto"
20
- }];
21
- export var FIAT_ICON_MAP = {
22
- USD: "DollarSign",
23
- EUR: "Euro",
24
- GBP: "PoundSterling",
25
- JPY: "Yen",
26
- CNY: "Yuan",
27
- INR: "Rupee"
28
- };
29
- export function getGroupedCurrencyOptions(currencyDetail) {
30
- var fiatOptions = currencyDetail.map(function (c) {
31
- return {
32
- label: c.name,
33
- value: c.value,
34
- icon: FIAT_ICON_MAP[c.value] || undefined,
35
- type: "fiat"
36
- };
37
- });
38
- return [{
39
- group: "Crypto",
40
- options: CRYPTO_OPTIONS
41
- }, {
42
- group: "Currency",
43
- options: fiatOptions
44
- }];
45
- }
4
+ }));
Binary file
@@ -54,7 +54,7 @@ var FormatSearch = exports.FormatSearch = function FormatSearch(_a) {
54
54
  var index = (0, _fortuneCore.getSheetIndex)(ctx, ctx.currentSheetId);
55
55
  if (_lodash.default.isNil(index)) return;
56
56
  var selectedFormat = toolbarFormat[selectedFormatIndex].value;
57
- var formatString = "".concat(selectedFormat, " #,##0.").concat("0".repeat(decimalPlace));
57
+ var formatString = "".concat(selectedFormat, "#,##0.").concat("0".repeat(decimalPlace));
58
58
  _lodash.default.forEach(ctx.luckysheet_select_save, function (selection) {
59
59
  var _a, _b, _c, _d;
60
60
  for (var r = selection.row[0]; r <= selection.row[1]; r += 1) {
@@ -107,19 +107,15 @@ var FormatSearch = exports.FormatSearch = function FormatSearch(_a) {
107
107
  }
108
108
  }, /*#__PURE__*/_react.default.createElement(_ui.SelectTrigger, {
109
109
  className: "w-full"
110
- }, /*#__PURE__*/_react.default.createElement(_ui.SelectValue, {
111
- className: "flex items-center gap-2"
112
- }, /*#__PURE__*/_react.default.createElement("span", null, (_b = toolbarFormat[selectedFormatIndex]) === null || _b === void 0 ? void 0 : _b.name), /*#__PURE__*/_react.default.createElement("span", {
113
- className: "text-body-sm color-text-secondary ml-1"
114
- }, "(", (_c = toolbarFormat[selectedFormatIndex]) === null || _c === void 0 ? void 0 : _c.value, ")"))), /*#__PURE__*/_react.default.createElement(_ui.SelectContent, null, toolbarFormat.map(function (v, index) {
110
+ }, /*#__PURE__*/_react.default.createElement(_ui.SelectValue, null, (_b = toolbarFormat[selectedFormatIndex]) === null || _b === void 0 ? void 0 : _b.name, " ", (_c = toolbarFormat[selectedFormatIndex]) === null || _c === void 0 ? void 0 : _c.value)), /*#__PURE__*/_react.default.createElement(_ui.SelectContent, null, toolbarFormat.map(function (v, index) {
115
111
  return /*#__PURE__*/_react.default.createElement(_ui.SelectItem, {
116
112
  key: v.name,
117
113
  value: String(index)
118
114
  }, /*#__PURE__*/_react.default.createElement("div", {
119
- className: "flex justify-between w-full items-center gap-2"
115
+ className: "flex justify-between w-full"
120
116
  }, /*#__PURE__*/_react.default.createElement("span", null, v.name), /*#__PURE__*/_react.default.createElement("span", {
121
- className: "text-body-sm color-text-secondary"
122
- }, "(", v.value, ")")));
117
+ className: "text-body-sm text-icon-secondary"
118
+ }, v.value)));
123
119
  }))))), /*#__PURE__*/_react.default.createElement(_ui.Divider, {
124
120
  className: "w-full border-t-[1px] my-4"
125
121
  }), /*#__PURE__*/_react.default.createElement("div", {
@@ -1904,65 +1904,6 @@ var SVGDefines = function SVGDefines(_a) {
1904
1904
  }), /*#__PURE__*/_react.default.createElement("path", {
1905
1905
  d: "M8.00147 1.3335C8.31859 1.33426 8.59155 1.55835 8.65382 1.86931C8.95517 3.3758 9.86768 4.83997 11.0835 5.81267L11.2677 5.96501C12.171 6.73236 12.8015 7.61685 13.1121 8.58741L12.4767 8.79053L11.842 8.99431C11.6214 8.30509 11.1562 7.61973 10.4045 6.98129L10.2508 6.85434C9.31898 6.10886 8.53727 5.12515 8.00017 4.03337C7.83296 4.35237 7.44178 4.48213 7.11671 4.32243C6.78643 4.15985 6.6502 3.76015 6.81267 3.42986C7.05681 2.9339 7.23662 2.40833 7.34717 1.86671L7.3615 1.80941C7.44507 1.52891 7.70415 1.33298 8.00147 1.3335Z",
1906
1906
  fill: "#363B3F"
1907
- }))), /*#__PURE__*/_react.default.createElement("symbol", {
1908
- id: "solana",
1909
- width: "16",
1910
- height: "16",
1911
- viewBox: "0 0 16 16",
1912
- fill: "none"
1913
- }, /*#__PURE__*/_react.default.createElement("g", {
1914
- "clip-path": "url(#clip0_568_119011)"
1915
- }, /*#__PURE__*/_react.default.createElement("path", {
1916
- d: "M2.59975 11.6853C2.69631 11.5775 2.82907 11.5146 2.96988 11.5146H15.7393C15.9726 11.5146 16.0893 11.8291 15.9244 12.0132L13.4019 14.8294C13.3053 14.9372 13.1725 15.0001 13.0317 15.0001H0.262315C0.0289729 15.0001 -0.0876979 14.6856 0.0772505 14.5015L2.59975 11.6853Z",
1917
- fill: "url(#paint0_linear_568_119011)"
1918
- }), /*#__PURE__*/_react.default.createElement("path", {
1919
- d: "M2.59975 1.17068C2.70033 1.06288 2.8331 1 2.96988 1H15.7393C15.9726 1 16.0893 1.3144 15.9244 1.49856L13.4019 4.31473C13.3053 4.42252 13.1725 4.4854 13.0317 4.4854H0.262315C0.0289729 4.4854 -0.0876979 4.171 0.0772505 3.98685L2.59975 1.17068Z",
1920
- fill: "url(#paint1_linear_568_119011)"
1921
- }), /*#__PURE__*/_react.default.createElement("path", {
1922
- d: "M13.4019 6.39431C13.3053 6.28651 13.1725 6.22363 13.0317 6.22363H0.262315C0.0289729 6.22363 -0.0876979 6.53804 0.0772505 6.72219L2.59975 9.53836C2.69631 9.64615 2.82907 9.70903 2.96988 9.70903H15.7393C15.9726 9.70903 16.0893 9.39463 15.9244 9.21048L13.4019 6.39431Z",
1923
- fill: "url(#paint2_linear_568_119011)"
1924
- })), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
1925
- id: "paint0_linear_568_119011",
1926
- x1: "14.5195",
1927
- y1: "-0.682254",
1928
- x2: "4.0567",
1929
- y2: "17.2684",
1930
- gradientUnits: "userSpaceOnUse"
1931
- }, /*#__PURE__*/_react.default.createElement("stop", {
1932
- "stop-color": "#00FFA3"
1933
- }), /*#__PURE__*/_react.default.createElement("stop", {
1934
- offset: "1",
1935
- "stop-color": "#DC1FFF"
1936
- })), /*#__PURE__*/_react.default.createElement("linearGradient", {
1937
- id: "paint1_linear_568_119011",
1938
- x1: "10.6552",
1939
- y1: "-2.93462",
1940
- x2: "0.192482",
1941
- y2: "15.016",
1942
- gradientUnits: "userSpaceOnUse"
1943
- }, /*#__PURE__*/_react.default.createElement("stop", {
1944
- "stop-color": "#00FFA3"
1945
- }), /*#__PURE__*/_react.default.createElement("stop", {
1946
- offset: "1",
1947
- "stop-color": "#DC1FFF"
1948
- })), /*#__PURE__*/_react.default.createElement("linearGradient", {
1949
- id: "paint2_linear_568_119011",
1950
- x1: "12.575",
1951
- y1: "-1.81561",
1952
- x2: "2.11229",
1953
- y2: "16.135",
1954
- gradientUnits: "userSpaceOnUse"
1955
- }, /*#__PURE__*/_react.default.createElement("stop", {
1956
- "stop-color": "#00FFA3"
1957
- }), /*#__PURE__*/_react.default.createElement("stop", {
1958
- offset: "1",
1959
- "stop-color": "#DC1FFF"
1960
- })), /*#__PURE__*/_react.default.createElement("clipPath", {
1961
- id: "clip0_568_119011"
1962
- }, /*#__PURE__*/_react.default.createElement("rect", {
1963
- width: "16",
1964
- height: "16",
1965
- fill: "white"
1966
- }))))));
1907
+ })))));
1967
1908
  };
1968
1909
  var _default = exports.default = SVGDefines;
@@ -10,7 +10,6 @@
10
10
  position: relative;
11
11
  overflow: hidden;
12
12
  outline-style: none;
13
- cursor: default;
14
13
  }
15
14
 
16
15
  .fortune-row-body {
@@ -377,7 +376,6 @@
377
376
 
378
377
  .luckysheet-cell-flow-clip {
379
378
  border-collapse: collapse;
380
- cursor: default;
381
379
  width: 5000000px;
382
380
  touch-action: manipulation;
383
381
  overflow: hidden;
@@ -252,14 +252,14 @@ var SheetOverlay = function SheetOverlay() {
252
252
  axis: "y"
253
253
  }), /*#__PURE__*/_react.default.createElement("div", {
254
254
  ref: refs.cellArea,
255
- className: "fortune-cell-area",
255
+ className: "fortune-cell-area ".concat(context.luckysheetPaintModelOn ? "cursor-paint" : ""),
256
256
  onMouseDown: cellAreaMouseDown,
257
257
  onDoubleClick: cellAreaDoubleClick,
258
258
  onContextMenu: cellAreaContextMenu,
259
259
  style: {
260
260
  width: context.cellmainWidth,
261
261
  height: context.cellmainHeight,
262
- cursor: context.luckysheet_cell_selected_extend ? "crosshair" : "default"
262
+ cursor: context.luckysheet_cell_selected_extend ? "crosshair" : ""
263
263
  }
264
264
  }, /*#__PURE__*/_react.default.createElement("div", {
265
265
  id: "fortune-formula-functionrange"
@@ -7,7 +7,6 @@
7
7
  padding: 0 30px 0 44px;
8
8
  margin: 0;
9
9
  -webkit-touch-callout: none;
10
- cursor: default;
11
10
  transition: 0.3s ease all;
12
11
  display: flex;
13
12
  align-items: center;
@@ -188,7 +187,6 @@
188
187
  border-top-color: #fff;
189
188
  color: #222;
190
189
  /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); */
191
- cursor: default;
192
190
  /* top: -2px; */
193
191
  /* border-bottom: none; */
194
192
  /* padding-right: 20px; */
@@ -66,27 +66,7 @@ var SheetTab = function SheetTab() {
66
66
  var _a;
67
67
  (_a = settings.onSheetCountChange) === null || _a === void 0 ? void 0 : _a.call(settings, context.luckysheetfile.length);
68
68
  }, [context.luckysheetfile.length]);
69
- return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
70
- className: "w-full",
71
- id: "denomination-warning",
72
- style: {
73
- position: "relative",
74
- display: "none",
75
- backgroundColor: "#F8F9FA",
76
- borderBottom: "1px solid #E8EBEC",
77
- color: "#77818A",
78
- fontFamily: "Helvetica Neue",
79
- fontSize: "var(--font-size-2xsm, 12px)",
80
- fontStyle: "normal",
81
- fontWeight: "400"
82
- }
83
- }, /*#__PURE__*/_react.default.createElement("div", {
84
- className: "max-w-7xl mx-auto px-4 py-1"
85
- }, /*#__PURE__*/_react.default.createElement("p", {
86
- className: "text-sm text-center"
87
- }, /*#__PURE__*/_react.default.createElement("span", {
88
- className: "font-medium"
89
- }, "Disclaimer:"), " Prices aren't updated in real time, so they might be slightly different from the source when you check. Updates can be delayed by up to 20 minutes."))), /*#__PURE__*/_react.default.createElement("div", {
69
+ return /*#__PURE__*/_react.default.createElement("div", {
90
70
  className: "luckysheet-sheet-area luckysheet-noselected-text",
91
71
  onContextMenu: function onContextMenu(e) {
92
72
  return e.preventDefault();
@@ -167,6 +147,6 @@ var SheetTab = function SheetTab() {
167
147
  height: 12
168
148
  })))), /*#__PURE__*/_react.default.createElement("div", {
169
149
  className: "fortune-sheet-area-right"
170
- }, /*#__PURE__*/_react.default.createElement(_ZoomControl.default, null))));
150
+ }, /*#__PURE__*/_react.default.createElement(_ZoomControl.default, null)));
171
151
  };
172
152
  var _default = exports.default = SheetTab;
@@ -27,11 +27,8 @@ var Combo = function Combo(_a) {
27
27
  open = _c[0],
28
28
  setOpen = _c[1];
29
29
  var buttonRef = (0, _react.useRef)(null);
30
- var handleOpenChange = function handleOpenChange(newOpen) {
31
- setOpen(newOpen);
32
- };
33
30
  var isLucideIcon = (0, _react.useMemo)(function () {
34
- 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", "currency"].includes(iconId);
31
+ 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);
35
32
  }, [iconId]);
36
33
  var trigger = !isLucideIcon ? (/*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
37
34
  text: tooltip,
@@ -87,8 +84,7 @@ var Combo = function Combo(_a) {
87
84
  return setOpen(!open);
88
85
  },
89
86
  className: (0, _ui.cn)("fortune-toolbar-combo-button", {
90
- "custom-color-button": iconId === "font-color" && fillColor,
91
- "min-w-fit rounded-l-none": iconId === "currency"
87
+ "custom-color-button": iconId === "font-color" && fillColor
92
88
  }),
93
89
  style: {
94
90
  color: iconId === "font-color" ? fillColor : undefined
@@ -99,8 +95,7 @@ var Combo = function Combo(_a) {
99
95
  className: "fortune-toolbar-item"
100
96
  }, /*#__PURE__*/_react.default.createElement(_ui.Popover, {
101
97
  open: open,
102
- onOpenChange: handleOpenChange,
103
- modal: true
98
+ onOpenChange: setOpen
104
99
  }, /*#__PURE__*/_react.default.createElement(_ui.PopoverTrigger, {
105
100
  asChild: true
106
101
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -110,16 +105,7 @@ var Combo = function Combo(_a) {
110
105
  side: "bottom",
111
106
  sideOffset: 4,
112
107
  alignOffset: -16,
113
- className: "fortune-toolbar-combo-popup border-none",
114
- onMouseDown: function onMouseDown(e) {
115
- return e.stopPropagation();
116
- },
117
- onMouseUp: function onMouseUp(e) {
118
- return e.stopPropagation();
119
- },
120
- onClick: function onClick(e) {
121
- return e.stopPropagation();
122
- }
108
+ className: "fortune-toolbar-combo-popup border-none"
123
109
  }, children === null || children === void 0 ? void 0 : children(setOpen))));
124
110
  };
125
111
  var _default = exports.default = Combo;
@@ -403,9 +403,3 @@
403
403
  .custom-color-button > svg > path:first-child {
404
404
  display: none !important;
405
405
  }
406
-
407
- #search-input-container [cmdk-input-wrapper] {
408
- border: 1px solid hsl(var(--color-border-default));
409
- border-radius: 8px;
410
- margin: 8px 8px 0px 8px;
411
- }
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import "./index.css";
3
- export declare const getLucideIcon: (title: string) => "Ethereum" | "DollarSign" | "" | "ChevronDown" | "Undo" | "Redo" | "Bold" | "Italic" | "Strikethrough" | "Underline" | "AlignLeft" | "AlignCenter" | "AlignRight" | "ArrowUpFromLine" | "AlignVerticalMiddle" | "ArrowDownToLine" | "TextOverflow" | "WrapText" | "TextClip" | "Baseline" | "PaintBucket" | "Border" | "MergeHorizontal" | "Percent" | "DecimalsArrowLeft" | "DecimalsArrowRight" | "PaintbrushVertical" | "Filter" | "Link" | "MessageSquarePlus" | "Image" | "Sigma" | "ShieldCheck" | "Search" | "DuneChart" | "Ellipsis";
3
+ export declare const getLucideIcon: (title: string) => "" | "Undo" | "Redo" | "PaintRoller" | "Bold" | "Italic" | "Strikethrough" | "Underline" | "AlignLeft" | "AlignCenter" | "AlignRight" | "ArrowUpFromLine" | "AlignVerticalMiddle" | "ArrowDownToLine" | "TextOverflow" | "WrapText" | "TextClip" | "Baseline" | "PaintBucket" | "Border" | "MergeHorizontal" | "DollarSign" | "Percent" | "DecimalsArrowLeft" | "DecimalsArrowRight" | "PaintbrushVertical" | "Filter" | "Link" | "MessageSquarePlus" | "Image" | "Sigma" | "ShieldCheck" | "Search" | "DuneChart" | "Ellipsis";
4
4
  declare const Toolbar: React.FC<{
5
5
  setMoreItems: React.Dispatch<React.SetStateAction<React.ReactNode>>;
6
6
  moreItemsOpen: boolean;