@fileverse-dev/fortune-react 1.0.2-mod-51 → 1.0.2-mod-53

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 CHANGED
@@ -2346,8 +2346,7 @@ input[type="number"].condition-rules-project-input {
2346
2346
  display: none;
2347
2347
  }
2348
2348
 
2349
- .fortune-toolbar-select,
2350
- .fortune-toolbar-color-picker {
2349
+ .fortune-toolbar-select {
2351
2350
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
2352
2351
  padding: 0.5rem;
2353
2352
  border: 1px solid hsl(var(--color-border-default));
@@ -2356,6 +2355,19 @@ input[type="number"].condition-rules-project-input {
2356
2355
  min-width: 240px;
2357
2356
  }
2358
2357
 
2358
+ .fortune-toolbar-color-picker {
2359
+ z-index: 50;
2360
+ height: auto;
2361
+ display: flex;
2362
+ flex-wrap: wrap;
2363
+ gap: 2px;
2364
+ overflow-y: auto;
2365
+ scroll-behavior: smooth;
2366
+ background: rgb(255, 255, 255);
2367
+ transition: all 0.2s ease;
2368
+ border-radius: 0px 0px 4px 4px;
2369
+ }
2370
+
2359
2371
  .fortune-toolbar-select {
2360
2372
  overflow: auto;
2361
2373
  max-height: 75vh;
@@ -2398,9 +2410,19 @@ input[type="number"].condition-rules-project-input {
2398
2410
  }
2399
2411
 
2400
2412
  .fortune-toolbar-color-picker-item {
2401
- width: 16px;
2402
- height: 16px;
2413
+ width: 20px;
2414
+ height: 20px;
2415
+ border-radius: 9999px;
2416
+ display: flex;
2417
+ align-items: center;
2418
+ justify-content: center;
2419
+ cursor: pointer;
2420
+ transition: transform 0.2s ease-in;
2403
2421
  margin: 1px;
2422
+ }
2423
+
2424
+ .fortune-toolbar-color-picker-item:hover {
2425
+ transform: scale(1.05);
2404
2426
  cursor: pointer;
2405
2427
  }
2406
2428
 
@@ -2477,11 +2499,18 @@ input[type="number"].condition-rules-project-input {
2477
2499
 
2478
2500
  #fortune-custom-color {
2479
2501
  min-width: 164px;
2480
- background: rgb(240, 240, 240);
2481
- border-radius: 6px;
2482
- box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
2502
+ background: #fff;
2503
+ border-radius: 4px;
2483
2504
  border: 1px solid rgba(0, 0, 0, 0.2);
2484
2505
  font-size: 12px;
2506
+ padding: 8px;
2507
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
2508
+ max-height: 400px;
2509
+ width: -moz-fit-content;
2510
+ width: fit-content;
2511
+ display: flex;
2512
+ flex-direction: column;
2513
+ gap: 8px;
2485
2514
  }
2486
2515
 
2487
2516
  #fortune-custom-color .color-reset {
@@ -2489,16 +2518,21 @@ input[type="number"].condition-rules-project-input {
2489
2518
  color: #333;
2490
2519
  cursor: pointer;
2491
2520
  list-style: none;
2492
- padding: 10px;
2493
2521
  white-space: nowrap;
2494
- padding-left: 8px;
2495
2522
  vertical-align: middle;
2496
- padding-right: 24px;
2497
2523
  -webkit-user-select: none;
2498
2524
  -moz-user-select: none;
2499
2525
  user-select: none;
2500
- border-radius: 6px;
2501
2526
  background: white;
2527
+ padding: 4px 8px;
2528
+ height: 30px;
2529
+ border-radius: 4px 4px 0px 0px;
2530
+ display: flex;
2531
+ align-items: center;
2532
+ gap: 10px;
2533
+ font-size: 14px;
2534
+ font-weight: 500;
2535
+ line-height: 20px;
2502
2536
  }
2503
2537
 
2504
2538
  #fortune-custom-color .color-reset:hover {
@@ -2622,6 +2656,37 @@ input[type="number"].condition-rules-project-input {
2622
2656
  z-index: 1002; */
2623
2657
  /* min-width: 500px; */
2624
2658
  width: 464px;
2659
+
2660
+ input[type="checkbox"] {
2661
+ accent-color: black;
2662
+ -moz-appearance: none;
2663
+ appearance: none;
2664
+ -webkit-appearance: none;
2665
+ width: 16px;
2666
+ height: 16px;
2667
+ border: 1.5px solid black;
2668
+ border-radius: 3px;
2669
+ position: relative;
2670
+ cursor: pointer;
2671
+ }
2672
+
2673
+ input[type="checkbox"]:checked {
2674
+ background-color: black;
2675
+ border-color: black;
2676
+ }
2677
+
2678
+ /* Smaller tick mark */
2679
+ input[type="checkbox"]:checked::before {
2680
+ content: '';
2681
+ position: absolute;
2682
+ top: 2px;
2683
+ left: 4px;
2684
+ width: 4px; /* Reduced from default */
2685
+ height: 7px; /* Reduced from default */
2686
+ border: solid white;
2687
+ border-width: 0 1px 1px 0;
2688
+ transform: rotate(45deg);
2689
+ }
2625
2690
  }
2626
2691
  #fortune-split-column label {
2627
2692
  -webkit-user-select: none;
@@ -2634,39 +2699,6 @@ input[type="number"].condition-rules-project-input {
2634
2699
  #fortune-split-column .splitDelimiters {
2635
2700
  margin-top: 20px;
2636
2701
  }
2637
-
2638
-
2639
-
2640
- input[type="checkbox"] {
2641
- accent-color: black;
2642
- -moz-appearance: none;
2643
- appearance: none;
2644
- -webkit-appearance: none;
2645
- width: 16px;
2646
- height: 16px;
2647
- border: 1.5px solid black;
2648
- border-radius: 3px;
2649
- position: relative;
2650
- cursor: pointer;
2651
- }
2652
-
2653
- input[type="checkbox"]:checked {
2654
- background-color: black;
2655
- border-color: black;
2656
- }
2657
-
2658
- /* Smaller tick mark */
2659
- input[type="checkbox"]:checked::before {
2660
- content: '';
2661
- position: absolute;
2662
- top: 2px;
2663
- left: 4px;
2664
- width: 4px; /* Reduced from default */
2665
- height: 7px; /* Reduced from default */
2666
- border: solid white;
2667
- border-width: 0 1px 1px 0;
2668
- transform: rotate(45deg);
2669
- }
2670
2702
  .splitSymbols {
2671
2703
  width: 464px
2672
2704
  }
@@ -2346,8 +2346,7 @@ input[type="number"].condition-rules-project-input {
2346
2346
  display: none;
2347
2347
  }
2348
2348
 
2349
- .fortune-toolbar-select,
2350
- .fortune-toolbar-color-picker {
2349
+ .fortune-toolbar-select {
2351
2350
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
2352
2351
  padding: 0.5rem;
2353
2352
  border: 1px solid hsl(var(--color-border-default));
@@ -2356,6 +2355,19 @@ input[type="number"].condition-rules-project-input {
2356
2355
  min-width: 240px;
2357
2356
  }
2358
2357
 
2358
+ .fortune-toolbar-color-picker {
2359
+ z-index: 50;
2360
+ height: auto;
2361
+ display: flex;
2362
+ flex-wrap: wrap;
2363
+ gap: 2px;
2364
+ overflow-y: auto;
2365
+ scroll-behavior: smooth;
2366
+ background: rgb(255, 255, 255);
2367
+ transition: all 0.2s ease;
2368
+ border-radius: 0px 0px 4px 4px;
2369
+ }
2370
+
2359
2371
  .fortune-toolbar-select {
2360
2372
  overflow: auto;
2361
2373
  max-height: 75vh;
@@ -2398,9 +2410,19 @@ input[type="number"].condition-rules-project-input {
2398
2410
  }
2399
2411
 
2400
2412
  .fortune-toolbar-color-picker-item {
2401
- width: 16px;
2402
- height: 16px;
2413
+ width: 20px;
2414
+ height: 20px;
2415
+ border-radius: 9999px;
2416
+ display: flex;
2417
+ align-items: center;
2418
+ justify-content: center;
2419
+ cursor: pointer;
2420
+ transition: transform 0.2s ease-in;
2403
2421
  margin: 1px;
2422
+ }
2423
+
2424
+ .fortune-toolbar-color-picker-item:hover {
2425
+ transform: scale(1.05);
2404
2426
  cursor: pointer;
2405
2427
  }
2406
2428
 
@@ -2477,11 +2499,18 @@ input[type="number"].condition-rules-project-input {
2477
2499
 
2478
2500
  #fortune-custom-color {
2479
2501
  min-width: 164px;
2480
- background: rgb(240, 240, 240);
2481
- border-radius: 6px;
2482
- box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
2502
+ background: #fff;
2503
+ border-radius: 4px;
2483
2504
  border: 1px solid rgba(0, 0, 0, 0.2);
2484
2505
  font-size: 12px;
2506
+ padding: 8px;
2507
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
2508
+ max-height: 400px;
2509
+ width: -moz-fit-content;
2510
+ width: fit-content;
2511
+ display: flex;
2512
+ flex-direction: column;
2513
+ gap: 8px;
2485
2514
  }
2486
2515
 
2487
2516
  #fortune-custom-color .color-reset {
@@ -2489,16 +2518,21 @@ input[type="number"].condition-rules-project-input {
2489
2518
  color: #333;
2490
2519
  cursor: pointer;
2491
2520
  list-style: none;
2492
- padding: 10px;
2493
2521
  white-space: nowrap;
2494
- padding-left: 8px;
2495
2522
  vertical-align: middle;
2496
- padding-right: 24px;
2497
2523
  -webkit-user-select: none;
2498
2524
  -moz-user-select: none;
2499
2525
  user-select: none;
2500
- border-radius: 6px;
2501
2526
  background: white;
2527
+ padding: 4px 8px;
2528
+ height: 30px;
2529
+ border-radius: 4px 4px 0px 0px;
2530
+ display: flex;
2531
+ align-items: center;
2532
+ gap: 10px;
2533
+ font-size: 14px;
2534
+ font-weight: 500;
2535
+ line-height: 20px;
2502
2536
  }
2503
2537
 
2504
2538
  #fortune-custom-color .color-reset:hover {
@@ -2622,6 +2656,37 @@ input[type="number"].condition-rules-project-input {
2622
2656
  z-index: 1002; */
2623
2657
  /* min-width: 500px; */
2624
2658
  width: 464px;
2659
+
2660
+ input[type="checkbox"] {
2661
+ accent-color: black;
2662
+ -moz-appearance: none;
2663
+ appearance: none;
2664
+ -webkit-appearance: none;
2665
+ width: 16px;
2666
+ height: 16px;
2667
+ border: 1.5px solid black;
2668
+ border-radius: 3px;
2669
+ position: relative;
2670
+ cursor: pointer;
2671
+ }
2672
+
2673
+ input[type="checkbox"]:checked {
2674
+ background-color: black;
2675
+ border-color: black;
2676
+ }
2677
+
2678
+ /* Smaller tick mark */
2679
+ input[type="checkbox"]:checked::before {
2680
+ content: '';
2681
+ position: absolute;
2682
+ top: 2px;
2683
+ left: 4px;
2684
+ width: 4px; /* Reduced from default */
2685
+ height: 7px; /* Reduced from default */
2686
+ border: solid white;
2687
+ border-width: 0 1px 1px 0;
2688
+ transform: rotate(45deg);
2689
+ }
2625
2690
  }
2626
2691
  #fortune-split-column label {
2627
2692
  -webkit-user-select: none;
@@ -2634,39 +2699,6 @@ input[type="number"].condition-rules-project-input {
2634
2699
  #fortune-split-column .splitDelimiters {
2635
2700
  margin-top: 20px;
2636
2701
  }
2637
-
2638
-
2639
-
2640
- input[type="checkbox"] {
2641
- accent-color: black;
2642
- -moz-appearance: none;
2643
- appearance: none;
2644
- -webkit-appearance: none;
2645
- width: 16px;
2646
- height: 16px;
2647
- border: 1.5px solid black;
2648
- border-radius: 3px;
2649
- position: relative;
2650
- cursor: pointer;
2651
- }
2652
-
2653
- input[type="checkbox"]:checked {
2654
- background-color: black;
2655
- border-color: black;
2656
- }
2657
-
2658
- /* Smaller tick mark */
2659
- input[type="checkbox"]:checked::before {
2660
- content: '';
2661
- position: absolute;
2662
- top: 2px;
2663
- left: 4px;
2664
- width: 4px; /* Reduced from default */
2665
- height: 7px; /* Reduced from default */
2666
- border: solid white;
2667
- border-width: 0 1px 1px 0;
2668
- transform: rotate(45deg);
2669
- }
2670
2702
  .splitSymbols {
2671
2703
  width: 464px
2672
2704
  }
package/dist/index.esm.js CHANGED
@@ -4688,9 +4688,8 @@ var SplitColumn = function SplitColumn() {
4688
4688
  type: "checkbox",
4689
4689
  onClick: function onClick() {
4690
4690
  setSplitOperate(function (regStr) {
4691
- var _splitSymbols$current, _splitSymbols$current2;
4692
- console.log(getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes));
4693
- return getRegStr(regStr, (_splitSymbols$current2 = splitSymbols.current) === null || _splitSymbols$current2 === void 0 ? void 0 : _splitSymbols$current2.childNodes);
4691
+ var _splitSymbols$current;
4692
+ return getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes);
4694
4693
  });
4695
4694
  },
4696
4695
  tabIndex: 0
@@ -4707,8 +4706,8 @@ var SplitColumn = function SplitColumn() {
4707
4706
  onClick: function onClick() {
4708
4707
  setOtherFlag(!otherFlag);
4709
4708
  setSplitOperate(function (regStr) {
4710
- var _splitSymbols$current3;
4711
- return getRegStr(regStr, (_splitSymbols$current3 = splitSymbols.current) === null || _splitSymbols$current3 === void 0 ? void 0 : _splitSymbols$current3.childNodes);
4709
+ var _splitSymbols$current2;
4710
+ return getRegStr(regStr, (_splitSymbols$current2 = splitSymbols.current) === null || _splitSymbols$current2 === void 0 ? void 0 : _splitSymbols$current2.childNodes);
4712
4711
  });
4713
4712
  },
4714
4713
  tabIndex: 0
@@ -4721,8 +4720,8 @@ var SplitColumn = function SplitColumn() {
4721
4720
  onBlur: function onBlur() {
4722
4721
  if (otherFlag) {
4723
4722
  setSplitOperate(function (regStr) {
4724
- var _splitSymbols$current4;
4725
- return getRegStr(regStr, (_splitSymbols$current4 = splitSymbols.current) === null || _splitSymbols$current4 === void 0 ? void 0 : _splitSymbols$current4.childNodes);
4723
+ var _splitSymbols$current3;
4724
+ return getRegStr(regStr, (_splitSymbols$current3 = splitSymbols.current) === null || _splitSymbols$current3 === void 0 ? void 0 : _splitSymbols$current3.childNodes);
4726
4725
  });
4727
4726
  }
4728
4727
  }
@@ -4734,8 +4733,8 @@ var SplitColumn = function SplitColumn() {
4734
4733
  type: "checkbox",
4735
4734
  onClick: function onClick() {
4736
4735
  setSplitOperate(function (regStr) {
4737
- var _splitSymbols$current5;
4738
- return getRegStr(regStr, (_splitSymbols$current5 = splitSymbols.current) === null || _splitSymbols$current5 === void 0 ? void 0 : _splitSymbols$current5.childNodes);
4736
+ var _splitSymbols$current4;
4737
+ return getRegStr(regStr, (_splitSymbols$current4 = splitSymbols.current) === null || _splitSymbols$current4 === void 0 ? void 0 : _splitSymbols$current4.childNodes);
4739
4738
  });
4740
4739
  },
4741
4740
  tabIndex: 0
@@ -5260,7 +5259,7 @@ var CustomButton = function CustomButton(_ref) {
5260
5259
  }, tooltip), children);
5261
5260
  };
5262
5261
 
5263
- var palette = [["#000000", "#444444", "#666666", "#999999", "#cccccc", "#eeeeee", "#f3f3f3", "#ffffff"], ["#f00f00", "#f90f90", "#ff0ff0", "#0f00f0", "#0ff0ff", "#00f00f", "#90f90f", "#f0ff0f"], ["#f4cccc", "#fce5cd", "#fff2cc", "#d9ead3", "#d0e0e3", "#cfe2f3", "#d9d2e9", "#ead1dc"], ["#ea9999", "#f9cb9c", "#ffe599", "#b6d7a8", "#a2c4c9", "#9fc5e8", "#b4a7d6", "#d5a6bd"], ["#e06666", "#f6b26b", "#ffd966", "#93c47d", "#76a5af", "#6fa8dc", "#8e7cc3", "#c27ba0"], ["#c00c00", "#e69138", "#f1c232", "#6aa84f", "#45818e", "#3d85c6", "#674ea7", "#a64d79"], ["#900900", "#b45f06", "#bf9000", "#38761d", "#134f5c", "#0b5394", "#351c75", "#741b47"], ["#600600", "#783f04", "#7f6000", "#274e13", "#0c343d", "#073763", "#20124d", "#4c1130"]];
5262
+ var palette = [["#000000", "#444444", "#666666", "#999999", "#B7B7B7", "#cccccc", "#D9D9D9", "#EFEFEF", "#f3f3f3", "#ffffff"], ["#970007", "#FE0012", "#FE9728", "#FFFD40", "#27FD3C", "#21FFFF", "#4A89E4", "#0027F9", "#9726FA", "#FD23FA"], ["#E6B8B0", "#f4cccc", "#FCE5CF", "#FFF1CF", "#DAEAD4", "#D0E0E3", "#C9DBF7", "#CFE3F2", "#D9D3E8", "#EAD1DC"], ["#DC7D6D", "#E9999A", "#F9CAA0", "#FFE49F", "#B7D6AB", "#A3C4C9", "#A4C3F2", "#A0C6E6", "#B4A8D4", "#D5A7BC"], ["#CB402B", "#DF6668", "#F6B171", "#FFD871", "#95C382", "#77A6AF", "#6DA0E8", "#70AADA", "#8E7EC0", "#C17C9F"], ["#A51A0A", "#CB000C", "#E59043", "#F1C046", "#6CA756", "#46828D", "#3C7BD4", "#3E87C3", "#6651A4", "#A54E78"], ["#841F11", "#980007", "#B35E19", "#BF8F22", "#3A7527", "#15505B", "#0E5AC8", "#0B5592", "#0B5592", "#731C46"], ["#5B0E03", "#660003", "#783E0E", "#7F5F13", "#284E19", "#0D343D", "#1C4785", "#073961", "#1F154B", "#4C112F"]];
5264
5263
  var ColorPicker = function ColorPicker(_ref) {
5265
5264
  var onPick = _ref.onPick;
5266
5265
  return /*#__PURE__*/React.createElement("div", {
@@ -5278,7 +5277,8 @@ var ColorPicker = function ColorPicker(_ref) {
5278
5277
  },
5279
5278
  tabIndex: 0,
5280
5279
  style: {
5281
- backgroundColor: c
5280
+ backgroundColor: c,
5281
+ border: c === "#ffffff" ? "1px solid #E8EBEC" : "none"
5282
5282
  }
5283
5283
  });
5284
5284
  }));
@@ -5288,16 +5288,6 @@ var ColorPicker = function ColorPicker(_ref) {
5288
5288
  var CustomColor = function CustomColor(_ref) {
5289
5289
  var onCustomPick = _ref.onCustomPick,
5290
5290
  onColorPick = _ref.onColorPick;
5291
- var _useContext = useContext(WorkbookContext),
5292
- context = _useContext.context;
5293
- var _locale = locale(context),
5294
- toolbar = _locale.toolbar,
5295
- sheetconfig = _locale.sheetconfig,
5296
- button = _locale.button;
5297
- var _useState = useState("#000000"),
5298
- _useState2 = _slicedToArray(_useState, 2),
5299
- inputColor = _useState2[0],
5300
- setInputColor = _useState2[1];
5301
5291
  return /*#__PURE__*/React.createElement("div", {
5302
5292
  id: "fortune-custom-color"
5303
5293
  }, /*#__PURE__*/React.createElement("div", {
@@ -5306,21 +5296,11 @@ var CustomColor = function CustomColor(_ref) {
5306
5296
  return onCustomPick(undefined);
5307
5297
  },
5308
5298
  tabIndex: 0
5309
- }, sheetconfig.resetColor), /*#__PURE__*/React.createElement("div", {
5310
- className: "custom-color"
5311
- }, /*#__PURE__*/React.createElement("div", null, toolbar.customColor, ":"), /*#__PURE__*/React.createElement("input", {
5312
- type: "color",
5313
- value: inputColor,
5314
- onChange: function onChange(e) {
5315
- return setInputColor(e.target.value);
5316
- }
5317
- }), /*#__PURE__*/React.createElement("div", {
5318
- className: "button-basic button-primary",
5319
- onClick: function onClick() {
5320
- onCustomPick(inputColor);
5321
- },
5322
- tabIndex: 0
5323
- }, button.confirm)), /*#__PURE__*/React.createElement(ColorPicker, {
5299
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
5300
+ name: "reset-color",
5301
+ width: 16,
5302
+ height: 16
5303
+ }), "Reset"), /*#__PURE__*/React.createElement(ColorPicker, {
5324
5304
  onPick: function onPick(color) {
5325
5305
  onColorPick(color);
5326
5306
  }
@@ -10479,7 +10459,30 @@ var SVGDefines = function SVGDefines(_ref) {
10479
10459
  }), /*#__PURE__*/React.createElement("path", {
10480
10460
  d: "M6.64775 8.97978L3.77152 6.10355C3.45654 5.78857 3.67962 5.25 4.12507 5.25H9.87753C10.323 5.25 10.5461 5.78857 10.2311 6.10355L7.35486 8.97978C7.15959 9.17504 6.84301 9.17504 6.64775 8.97978Z",
10481
10461
  fill: "#363B3F"
10482
- }))));
10462
+ })), /*#__PURE__*/React.createElement("symbol", {
10463
+ id: "reset-color",
10464
+ width: "16",
10465
+ height: "16",
10466
+ viewBox: "0 0 16 16",
10467
+ fill: "none"
10468
+ }, /*#__PURE__*/React.createElement("svg", {
10469
+ width: "16",
10470
+ height: "16",
10471
+ viewBox: "0 0 16 16",
10472
+ fill: "none",
10473
+ xmlns: "http://www.w3.org/2000/svg"
10474
+ }, /*#__PURE__*/React.createElement("path", {
10475
+ "fill-rule": "evenodd",
10476
+ "clip-rule": "evenodd",
10477
+ d: "M0.862148 0.862148C1.10623 0.618071 1.49223 0.603009 1.75408 0.816575L1.80486 0.862148L12.551 11.6082C12.5999 11.6454 12.6425 11.6884 12.6786 11.7358L15.1382 14.1955L15.1838 14.2463C15.3972 14.5081 15.3822 14.8942 15.1382 15.1382C14.8942 15.3822 14.5081 15.3972 14.2463 15.1838L14.1955 15.1382L12.2625 13.2052C11.7308 13.9122 11.0289 14.4803 10.2157 14.8517C9.12793 15.3485 7.90444 15.4657 6.74236 15.1838C5.58035 14.9018 4.54658 14.237 3.80746 13.297C3.11451 12.4157 2.71809 11.3399 2.67139 10.2235L2.66684 10.0002C2.66684 8.42922 3.45419 6.99237 4.89079 5.8335L0.862148 1.80486L0.816576 1.75408C0.603009 1.49223 0.618071 1.10623 0.862148 0.862148ZM5.75082 6.85368C4.53724 7.82455 4.00017 8.91389 4.00017 10.0002L4.00342 10.1681C4.03852 11.0053 4.33604 11.8119 4.85564 12.4728C5.40996 13.1777 6.18536 13.676 7.05681 13.8875C7.92833 14.099 8.84587 14.0114 9.66163 13.6388C10.3296 13.3337 10.8972 12.8516 11.3068 12.2495L5.83741 6.78012C5.80821 6.80424 5.78036 6.83 5.75082 6.85368Z",
10478
+ fill: "#363B3F"
10479
+ }), /*#__PURE__*/React.createElement("path", {
10480
+ d: "M13.1121 8.58741C13.2242 8.93794 13.0303 9.31366 12.6799 9.42595C12.3294 9.53789 11.9543 9.34458 11.842 8.99431L13.1121 8.58741Z",
10481
+ fill: "#363B3F"
10482
+ }), /*#__PURE__*/React.createElement("path", {
10483
+ 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",
10484
+ fill: "#363B3F"
10485
+ })))));
10483
10486
  };
10484
10487
 
10485
10488
  var ChangeColor = function ChangeColor(_ref) {
package/dist/index.js CHANGED
@@ -4700,9 +4700,8 @@ var SplitColumn = function SplitColumn() {
4700
4700
  type: "checkbox",
4701
4701
  onClick: function onClick() {
4702
4702
  setSplitOperate(function (regStr) {
4703
- var _splitSymbols$current, _splitSymbols$current2;
4704
- console.log(fortuneCore.getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes));
4705
- return fortuneCore.getRegStr(regStr, (_splitSymbols$current2 = splitSymbols.current) === null || _splitSymbols$current2 === void 0 ? void 0 : _splitSymbols$current2.childNodes);
4703
+ var _splitSymbols$current;
4704
+ return fortuneCore.getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes);
4706
4705
  });
4707
4706
  },
4708
4707
  tabIndex: 0
@@ -4719,8 +4718,8 @@ var SplitColumn = function SplitColumn() {
4719
4718
  onClick: function onClick() {
4720
4719
  setOtherFlag(!otherFlag);
4721
4720
  setSplitOperate(function (regStr) {
4722
- var _splitSymbols$current3;
4723
- return fortuneCore.getRegStr(regStr, (_splitSymbols$current3 = splitSymbols.current) === null || _splitSymbols$current3 === void 0 ? void 0 : _splitSymbols$current3.childNodes);
4721
+ var _splitSymbols$current2;
4722
+ return fortuneCore.getRegStr(regStr, (_splitSymbols$current2 = splitSymbols.current) === null || _splitSymbols$current2 === void 0 ? void 0 : _splitSymbols$current2.childNodes);
4724
4723
  });
4725
4724
  },
4726
4725
  tabIndex: 0
@@ -4733,8 +4732,8 @@ var SplitColumn = function SplitColumn() {
4733
4732
  onBlur: function onBlur() {
4734
4733
  if (otherFlag) {
4735
4734
  setSplitOperate(function (regStr) {
4736
- var _splitSymbols$current4;
4737
- return fortuneCore.getRegStr(regStr, (_splitSymbols$current4 = splitSymbols.current) === null || _splitSymbols$current4 === void 0 ? void 0 : _splitSymbols$current4.childNodes);
4735
+ var _splitSymbols$current3;
4736
+ return fortuneCore.getRegStr(regStr, (_splitSymbols$current3 = splitSymbols.current) === null || _splitSymbols$current3 === void 0 ? void 0 : _splitSymbols$current3.childNodes);
4738
4737
  });
4739
4738
  }
4740
4739
  }
@@ -4746,8 +4745,8 @@ var SplitColumn = function SplitColumn() {
4746
4745
  type: "checkbox",
4747
4746
  onClick: function onClick() {
4748
4747
  setSplitOperate(function (regStr) {
4749
- var _splitSymbols$current5;
4750
- return fortuneCore.getRegStr(regStr, (_splitSymbols$current5 = splitSymbols.current) === null || _splitSymbols$current5 === void 0 ? void 0 : _splitSymbols$current5.childNodes);
4748
+ var _splitSymbols$current4;
4749
+ return fortuneCore.getRegStr(regStr, (_splitSymbols$current4 = splitSymbols.current) === null || _splitSymbols$current4 === void 0 ? void 0 : _splitSymbols$current4.childNodes);
4751
4750
  });
4752
4751
  },
4753
4752
  tabIndex: 0
@@ -5272,7 +5271,7 @@ var CustomButton = function CustomButton(_ref) {
5272
5271
  }, tooltip), children);
5273
5272
  };
5274
5273
 
5275
- var palette = [["#000000", "#444444", "#666666", "#999999", "#cccccc", "#eeeeee", "#f3f3f3", "#ffffff"], ["#f00f00", "#f90f90", "#ff0ff0", "#0f00f0", "#0ff0ff", "#00f00f", "#90f90f", "#f0ff0f"], ["#f4cccc", "#fce5cd", "#fff2cc", "#d9ead3", "#d0e0e3", "#cfe2f3", "#d9d2e9", "#ead1dc"], ["#ea9999", "#f9cb9c", "#ffe599", "#b6d7a8", "#a2c4c9", "#9fc5e8", "#b4a7d6", "#d5a6bd"], ["#e06666", "#f6b26b", "#ffd966", "#93c47d", "#76a5af", "#6fa8dc", "#8e7cc3", "#c27ba0"], ["#c00c00", "#e69138", "#f1c232", "#6aa84f", "#45818e", "#3d85c6", "#674ea7", "#a64d79"], ["#900900", "#b45f06", "#bf9000", "#38761d", "#134f5c", "#0b5394", "#351c75", "#741b47"], ["#600600", "#783f04", "#7f6000", "#274e13", "#0c343d", "#073763", "#20124d", "#4c1130"]];
5274
+ var palette = [["#000000", "#444444", "#666666", "#999999", "#B7B7B7", "#cccccc", "#D9D9D9", "#EFEFEF", "#f3f3f3", "#ffffff"], ["#970007", "#FE0012", "#FE9728", "#FFFD40", "#27FD3C", "#21FFFF", "#4A89E4", "#0027F9", "#9726FA", "#FD23FA"], ["#E6B8B0", "#f4cccc", "#FCE5CF", "#FFF1CF", "#DAEAD4", "#D0E0E3", "#C9DBF7", "#CFE3F2", "#D9D3E8", "#EAD1DC"], ["#DC7D6D", "#E9999A", "#F9CAA0", "#FFE49F", "#B7D6AB", "#A3C4C9", "#A4C3F2", "#A0C6E6", "#B4A8D4", "#D5A7BC"], ["#CB402B", "#DF6668", "#F6B171", "#FFD871", "#95C382", "#77A6AF", "#6DA0E8", "#70AADA", "#8E7EC0", "#C17C9F"], ["#A51A0A", "#CB000C", "#E59043", "#F1C046", "#6CA756", "#46828D", "#3C7BD4", "#3E87C3", "#6651A4", "#A54E78"], ["#841F11", "#980007", "#B35E19", "#BF8F22", "#3A7527", "#15505B", "#0E5AC8", "#0B5592", "#0B5592", "#731C46"], ["#5B0E03", "#660003", "#783E0E", "#7F5F13", "#284E19", "#0D343D", "#1C4785", "#073961", "#1F154B", "#4C112F"]];
5276
5275
  var ColorPicker = function ColorPicker(_ref) {
5277
5276
  var onPick = _ref.onPick;
5278
5277
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -5290,7 +5289,8 @@ var ColorPicker = function ColorPicker(_ref) {
5290
5289
  },
5291
5290
  tabIndex: 0,
5292
5291
  style: {
5293
- backgroundColor: c
5292
+ backgroundColor: c,
5293
+ border: c === "#ffffff" ? "1px solid #E8EBEC" : "none"
5294
5294
  }
5295
5295
  });
5296
5296
  }));
@@ -5300,16 +5300,6 @@ var ColorPicker = function ColorPicker(_ref) {
5300
5300
  var CustomColor = function CustomColor(_ref) {
5301
5301
  var onCustomPick = _ref.onCustomPick,
5302
5302
  onColorPick = _ref.onColorPick;
5303
- var _useContext = React.useContext(WorkbookContext),
5304
- context = _useContext.context;
5305
- var _locale = fortuneCore.locale(context),
5306
- toolbar = _locale.toolbar,
5307
- sheetconfig = _locale.sheetconfig,
5308
- button = _locale.button;
5309
- var _useState = React.useState("#000000"),
5310
- _useState2 = _slicedToArray(_useState, 2),
5311
- inputColor = _useState2[0],
5312
- setInputColor = _useState2[1];
5313
5303
  return /*#__PURE__*/React__default['default'].createElement("div", {
5314
5304
  id: "fortune-custom-color"
5315
5305
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -5318,21 +5308,11 @@ var CustomColor = function CustomColor(_ref) {
5318
5308
  return onCustomPick(undefined);
5319
5309
  },
5320
5310
  tabIndex: 0
5321
- }, sheetconfig.resetColor), /*#__PURE__*/React__default['default'].createElement("div", {
5322
- className: "custom-color"
5323
- }, /*#__PURE__*/React__default['default'].createElement("div", null, toolbar.customColor, ":"), /*#__PURE__*/React__default['default'].createElement("input", {
5324
- type: "color",
5325
- value: inputColor,
5326
- onChange: function onChange(e) {
5327
- return setInputColor(e.target.value);
5328
- }
5329
- }), /*#__PURE__*/React__default['default'].createElement("div", {
5330
- className: "button-basic button-primary",
5331
- onClick: function onClick() {
5332
- onCustomPick(inputColor);
5333
- },
5334
- tabIndex: 0
5335
- }, button.confirm)), /*#__PURE__*/React__default['default'].createElement(ColorPicker, {
5311
+ }, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
5312
+ name: "reset-color",
5313
+ width: 16,
5314
+ height: 16
5315
+ }), "Reset"), /*#__PURE__*/React__default['default'].createElement(ColorPicker, {
5336
5316
  onPick: function onPick(color) {
5337
5317
  onColorPick(color);
5338
5318
  }
@@ -10491,7 +10471,30 @@ var SVGDefines = function SVGDefines(_ref) {
10491
10471
  }), /*#__PURE__*/React__default['default'].createElement("path", {
10492
10472
  d: "M6.64775 8.97978L3.77152 6.10355C3.45654 5.78857 3.67962 5.25 4.12507 5.25H9.87753C10.323 5.25 10.5461 5.78857 10.2311 6.10355L7.35486 8.97978C7.15959 9.17504 6.84301 9.17504 6.64775 8.97978Z",
10493
10473
  fill: "#363B3F"
10494
- }))));
10474
+ })), /*#__PURE__*/React__default['default'].createElement("symbol", {
10475
+ id: "reset-color",
10476
+ width: "16",
10477
+ height: "16",
10478
+ viewBox: "0 0 16 16",
10479
+ fill: "none"
10480
+ }, /*#__PURE__*/React__default['default'].createElement("svg", {
10481
+ width: "16",
10482
+ height: "16",
10483
+ viewBox: "0 0 16 16",
10484
+ fill: "none",
10485
+ xmlns: "http://www.w3.org/2000/svg"
10486
+ }, /*#__PURE__*/React__default['default'].createElement("path", {
10487
+ "fill-rule": "evenodd",
10488
+ "clip-rule": "evenodd",
10489
+ d: "M0.862148 0.862148C1.10623 0.618071 1.49223 0.603009 1.75408 0.816575L1.80486 0.862148L12.551 11.6082C12.5999 11.6454 12.6425 11.6884 12.6786 11.7358L15.1382 14.1955L15.1838 14.2463C15.3972 14.5081 15.3822 14.8942 15.1382 15.1382C14.8942 15.3822 14.5081 15.3972 14.2463 15.1838L14.1955 15.1382L12.2625 13.2052C11.7308 13.9122 11.0289 14.4803 10.2157 14.8517C9.12793 15.3485 7.90444 15.4657 6.74236 15.1838C5.58035 14.9018 4.54658 14.237 3.80746 13.297C3.11451 12.4157 2.71809 11.3399 2.67139 10.2235L2.66684 10.0002C2.66684 8.42922 3.45419 6.99237 4.89079 5.8335L0.862148 1.80486L0.816576 1.75408C0.603009 1.49223 0.618071 1.10623 0.862148 0.862148ZM5.75082 6.85368C4.53724 7.82455 4.00017 8.91389 4.00017 10.0002L4.00342 10.1681C4.03852 11.0053 4.33604 11.8119 4.85564 12.4728C5.40996 13.1777 6.18536 13.676 7.05681 13.8875C7.92833 14.099 8.84587 14.0114 9.66163 13.6388C10.3296 13.3337 10.8972 12.8516 11.3068 12.2495L5.83741 6.78012C5.80821 6.80424 5.78036 6.83 5.75082 6.85368Z",
10490
+ fill: "#363B3F"
10491
+ }), /*#__PURE__*/React__default['default'].createElement("path", {
10492
+ d: "M13.1121 8.58741C13.2242 8.93794 13.0303 9.31366 12.6799 9.42595C12.3294 9.53789 11.9543 9.34458 11.842 8.99431L13.1121 8.58741Z",
10493
+ fill: "#363B3F"
10494
+ }), /*#__PURE__*/React__default['default'].createElement("path", {
10495
+ 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",
10496
+ fill: "#363B3F"
10497
+ })))));
10495
10498
  };
10496
10499
 
10497
10500
  var ChangeColor = function ChangeColor(_ref) {