@fileverse-dev/fortune-react 1.0.2-mod-28-patch-2 → 1.0.2-mod-34

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.
@@ -3,6 +3,7 @@ type Props = {
3
3
  tooltip: string;
4
4
  iconId?: string;
5
5
  text?: string;
6
+ showArrow?: boolean;
6
7
  onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
7
8
  children: (setOpen: React.Dispatch<React.SetStateAction<boolean>>) => React.ReactNode;
8
9
  };
@@ -453,7 +453,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
453
453
  filterValueByClearBtn: string;
454
454
  filterValueByInverseBtn: string;
455
455
  filterValueByTip: string;
456
- filterConform: string;
456
+ filterConfirm: string;
457
457
  filterCancel: string;
458
458
  conditionNone: string;
459
459
  conditionCellIsNull: string;
@@ -460,7 +460,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
460
460
  filterValueByClearBtn: string;
461
461
  filterValueByInverseBtn: string;
462
462
  filterValueByTip: string;
463
- filterConform: string;
463
+ filterConfirm: string;
464
464
  filterCancel: string;
465
465
  conditionNone: string;
466
466
  conditionCellIsNull: string;
package/dist/index.css CHANGED
@@ -944,32 +944,25 @@ html::-webkit-scrollbar-button {
944
944
  }
945
945
 
946
946
  .luckysheet-filter-options {
947
- color: #897bff;
948
947
  cursor: pointer;
949
948
  position: absolute;
950
949
  z-index: 200;
951
- border: 1px solid #897bff;
952
- border-radius: 3px;
953
- top: 3px;
954
- margin-left: 0px;
955
- display: "block";
956
- padding: 0px 4px;
950
+ border-radius: 2px;
951
+ top: 4px;
952
+ margin-right: 2px;
953
+ margin-top: 2px;
957
954
  font-size: 12px;
958
955
  height: 15px;
959
- background: #fff;
956
+ padding: 1px;
957
+ background: hsl(var(--color-bg-tertiary));
960
958
  }
961
959
 
962
960
  .luckysheet-filter-options:hover {
963
- color: #fff;
964
- border: 1px solid #fff;
965
- background: #897bff;
961
+ background: hsl(var(--color-bg-default-hover));
966
962
  }
967
963
 
968
964
  .luckysheet-filter-options-active {
969
- color: #fff;
970
- border: 1px solid #897bff;
971
- padding: 0px 1px;
972
- background: #897bff;
965
+ background: hsl(var(--color-bg-tertiary));
973
966
  }
974
967
 
975
968
  .caret {
@@ -1551,10 +1544,108 @@ line-height: 16px; /* 133.333% */
1551
1544
  overflow: hidden;
1552
1545
  background-color: #fff;
1553
1546
  z-index: 300;
1554
- padding: 6px 20px 10px 20px;
1555
- box-shadow: 0 2px 6px 0 rgb(0 0 0 / 16%);
1556
- border: solid 0.5px #e5e5e5;
1557
- border-radius: 6px;
1547
+ padding: 16px 20px 20px 20px;
1548
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1549
+ border: 1px solid #e5e5e5;
1550
+ border-radius: 8px;
1551
+ min-width: 320px;
1552
+ }
1553
+
1554
+ .fortune-link-cards-container {
1555
+ position: absolute;
1556
+ display: flex;
1557
+ gap: 16px;
1558
+ z-index: 300;
1559
+ }
1560
+
1561
+ .fortune-link-card {
1562
+ position: absolute;
1563
+ background-color: #fff;
1564
+ border: 1px solid #e5e5e5;
1565
+ border-radius: 8px;
1566
+ padding: 16px;
1567
+ width: 300px;
1568
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1569
+ display: flex;
1570
+ flex-direction: column;
1571
+ gap: 12px;
1572
+ z-index: 300;
1573
+ }
1574
+
1575
+ .fortune-link-type-select {
1576
+ width: 100% !important;
1577
+ }
1578
+
1579
+ .fortune-link-type-dropdown {
1580
+ z-index: 999999 !important;
1581
+ }
1582
+
1583
+ .fortune-sheet-dropdown {
1584
+ z-index: 999999 !important;
1585
+ }
1586
+
1587
+ .fortune-input-with-icon {
1588
+ position: relative;
1589
+ display: flex;
1590
+ align-items: center;
1591
+ }
1592
+
1593
+ .fortune-input-with-icon .input-icon {
1594
+ position: absolute;
1595
+ left: 12px;
1596
+ top: 50%;
1597
+ transform: translateY(-50%);
1598
+ width: 16px;
1599
+ height: 16px;
1600
+ color: #666;
1601
+ z-index: 1;
1602
+ display: flex;
1603
+ align-items: center;
1604
+ justify-content: center;
1605
+ }
1606
+
1607
+ .fortune-input-with-icon .input-icon svg {
1608
+ width: 16px;
1609
+ height: 16px;
1610
+ }
1611
+
1612
+ .fortune-link-input {
1613
+ width: 100% !important;
1614
+ padding-left: 36px !important;
1615
+ }
1616
+
1617
+ .fortune-sheet-select {
1618
+ width: 100% !important;
1619
+ padding-left: 36px !important;
1620
+ }
1621
+
1622
+ /* Ensure Select dropdowns appear above everything */
1623
+ [data-radix-portal] {
1624
+ z-index: 999999 !important;
1625
+ }
1626
+
1627
+ .fortune-insert-button {
1628
+ width: 100% !important;
1629
+ background-color: #000 !important;
1630
+ color: white !important;
1631
+ border: none !important;
1632
+ border-radius: 6px !important;
1633
+ padding: 12px !important;
1634
+ font-weight: 500 !important;
1635
+ }
1636
+
1637
+ .fortune-insert-button:hover {
1638
+ background-color: #333 !important;
1639
+ }
1640
+
1641
+ .fortune-insert-button:disabled {
1642
+ background-color: #ccc !important;
1643
+ color: #666 !important;
1644
+ cursor: not-allowed !important;
1645
+ }
1646
+
1647
+ .fortune-insert-button:disabled:hover {
1648
+ background-color: #ccc !important;
1558
1649
  }
1559
1650
 
1560
1651
  .fortune-link-modify-modal.link-toolbar {
@@ -1600,82 +1691,72 @@ line-height: 16px; /* 133.333% */
1600
1691
  }
1601
1692
 
1602
1693
  .fortune-link-modify-line {
1603
- padding-top: 10px;
1694
+ padding-top: 16px;
1695
+ display: flex;
1696
+ flex-direction: column;
1697
+ gap: 8px;
1698
+ }
1699
+
1700
+ .fortune-link-modify-line:first-child {
1701
+ padding-top: 0;
1604
1702
  }
1605
1703
 
1606
1704
  .fortune-link-modify-title {
1607
- font-size: 12px;
1608
- display: inline-block;
1609
- height: 16px;
1610
- width: 74px;
1611
- line-height: 16px;
1612
- padding: 7px 0;
1705
+ font-size: 14px;
1706
+ font-weight: 500;
1613
1707
  color: #333333;
1614
- margin-right: 6px;
1708
+ margin-bottom: 4px;
1709
+ }
1710
+
1711
+ .fortune-link-modify-input {
1712
+ width: 100% !important;
1615
1713
  }
1616
1714
 
1617
- .fortune-link-modify-input,
1618
1715
  .fortune-link-modify-select {
1619
- width: 232px;
1620
- box-sizing: border-box;
1621
- height: 26px;
1622
- border-radius: 5px;
1623
- border: 1px solid #d9d9d9;
1624
- font-size: 12px;
1625
- padding: 1px 8px;
1626
- outline: none;
1627
- -webkit-user-select: auto;
1628
- -moz-user-select: auto;
1629
- -ms-user-select: auto;
1630
- user-select: auto;
1716
+ width: 100% !important;
1631
1717
  }
1632
1718
 
1633
- .fortune-link-modify-input:focus,
1634
- .fortune-link-modify-modal .range-selection-input:focus {
1635
- border-color: #4d90fe;
1719
+ .input-with-selector {
1720
+ position: relative;
1721
+ display: flex;
1722
+ align-items: center;
1636
1723
  }
1637
1724
 
1638
- .fortune-link-modify-input.error-input,
1639
- .fortune-link-modify-modal .range-selection-input.error-input {
1640
- border: 1px solid #ef4e2f !important;
1725
+ .input-with-selector .fortune-link-modify-input {
1726
+ padding-right: 32px !important;
1641
1727
  }
1642
1728
 
1643
1729
  .fortune-link-modify-cell-selector {
1644
- width: 20px;
1645
- right: 24px;
1646
- padding: 4px;
1647
1730
  position: absolute;
1648
- display: inline-block;
1731
+ right: 8px;
1732
+ top: 50%;
1733
+ transform: translateY(-50%);
1734
+ width: 20px;
1735
+ height: 20px;
1736
+ padding: 2px;
1737
+ display: flex;
1738
+ align-items: center;
1739
+ justify-content: center;
1649
1740
  border: none;
1650
1741
  cursor: pointer;
1651
- -webkit-appearance: none;
1652
- -moz-appearance: none;
1653
- appearance: none;
1742
+ background: transparent;
1743
+ border-radius: 4px;
1744
+ }
1745
+
1746
+ .fortune-link-modify-cell-selector:hover {
1747
+ background-color: rgba(0, 0, 0, 0.06);
1654
1748
  }
1655
1749
 
1656
1750
  .fortune-link-modify-modal .modal-title {
1657
- font-weight: 500;
1658
- font-size: 16px;
1751
+ font-weight: 600;
1752
+ font-size: 18px;
1659
1753
  color: rgba(0, 0, 0, 0.88);
1660
- margin-bottom: 12px;
1754
+ margin-bottom: 16px;
1661
1755
  line-height: 24px;
1662
1756
  }
1663
1757
 
1664
1758
  .fortune-link-modify-modal .range-selection-input {
1665
- display: block;
1666
- outline: none;
1667
- font-size: 14px;
1668
- height: 32px;
1669
- width: 100%;
1670
- -webkit-box-sizing: border-box;
1671
- box-sizing: border-box;
1672
- padding: 7px 11px;
1673
- border: 1px solid #e0e0e0;
1674
- border-radius: 4px;
1675
- -webkit-appearance: none;
1676
- -moz-appearance: none;
1677
- appearance: none;
1678
- margin: 0;
1759
+ width: 100% !important;
1679
1760
  }
1680
1761
 
1681
1762
  .fortune-link-modify-modal .modal-icon-close {
@@ -1683,52 +1764,53 @@ line-height: 16px; /* 133.333% */
1683
1764
  right: 22px;
1684
1765
  top: 22px;
1685
1766
  cursor: pointer;
1767
+ width: 20px;
1768
+ height: 20px;
1769
+ display: flex;
1770
+ align-items: center;
1771
+ justify-content: center;
1772
+ border-radius: 4px;
1773
+ }
1774
+
1775
+ .fortune-link-modify-modal .modal-icon-close:hover {
1776
+ background-color: rgba(0, 0, 0, 0.06);
1686
1777
  }
1687
1778
 
1688
1779
  .fortune-link-modify-modal .validation-input-tip {
1689
- height: 17px;
1690
1780
  font-size: 12px;
1691
1781
  color: #ef4e2f;
1692
- margin: 3px 0px;
1782
+ margin-top: 4px;
1693
1783
  }
1694
1784
 
1695
1785
  .fortune-link-modify-modal .button-group {
1696
1786
  display: flex;
1787
+ gap: 12px;
1788
+ justify-content: flex-end;
1697
1789
  }
1698
1790
 
1699
1791
  .fortune-link-modify-modal .modal-footer {
1700
1792
  display: flex;
1701
1793
  justify-content: flex-end;
1702
- padding: 0px 0px 5px 0px;
1794
+ padding-top: 20px;
1795
+ margin-top: 8px;
1796
+ border-top: 1px solid #f0f0f0;
1703
1797
  }
1704
1798
 
1705
1799
  .fortune-link-modify-modal.range-selection-modal .modal-footer {
1706
- padding: 0px;
1707
- }
1708
-
1709
- .fortune-link-modify-modal .button-basic {
1710
- display: flex;
1711
- flex-flow: row nowrap;
1712
- justify-content: center;
1713
- align-items: center;
1714
- font-size: 14px;
1715
- height: 32px;
1716
- width: 88px;
1717
- padding: 0;
1718
- border-radius: 4px;
1719
- cursor: pointer;
1800
+ padding-top: 16px;
1801
+ border-top: 1px solid #f0f0f0;
1720
1802
  }
1721
1803
 
1722
- .fortune-link-modify-modal .button-default {
1723
- color: rgb(38, 42, 51);
1724
- background-color: rgb(255, 255, 255);
1725
- border: 1px solid rgb(235, 235, 235);
1804
+ /* Error state styling for fileverse/ui components */
1805
+ .fortune-link-modify-modal .error-input input,
1806
+ .fortune-link-card .error-input input {
1807
+ border-color: #ef4e2f !important;
1726
1808
  }
1727
1809
 
1728
- .fortune-link-modify-modal .button-primary {
1729
- color: white;
1730
- background-color: #0188fb;
1731
- margin-left: 14px;
1810
+ .fortune-link-modify-modal .error-input input:focus,
1811
+ .fortune-link-card .error-input input:focus {
1812
+ border-color: #ef4e2f !important;
1813
+ box-shadow: 0 0 0 2px rgba(239, 78, 47, 0.2) !important;
1732
1814
  }
1733
1815
 
1734
1816
  #fortune-data-verification {
@@ -2471,6 +2553,29 @@ input[type="number"].condition-rules-project-input {
2471
2553
  cursor: pointer;
2472
2554
  }
2473
2555
 
2556
+ .fortune-border-grid {
2557
+ display: grid;
2558
+ grid-template-columns: repeat(5, 1fr);
2559
+ gap: 4px;
2560
+ padding: 8px;
2561
+ min-width: 200px;
2562
+ }
2563
+
2564
+ .fortune-border-grid-item {
2565
+ display: flex;
2566
+ align-items: center;
2567
+ justify-content: center;
2568
+ width: 32px;
2569
+ height: 32px;
2570
+ cursor: pointer;
2571
+ border-radius: 4px;
2572
+ transition: background-color 0.2s ease;
2573
+ }
2574
+
2575
+ .fortune-border-grid-item:hover {
2576
+ background-color: hsl(var(--color-bg-default-hover));
2577
+ }
2578
+
2474
2579
  #fortune-split-column {
2475
2580
  /* position: absolute;
2476
2581
  padding: 30px 42px;
@@ -3072,13 +3177,12 @@ label {
3072
3177
  min-width: 240px;
3073
3178
  max-height: 100%;
3074
3179
  overflow-y: auto;
3075
- border-radius: 4px;
3180
+ border-radius: 8px;
3076
3181
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
3077
3182
  transition: opacity 0.218s;
3078
3183
  background: #fff;
3079
3184
  border: 1px solid hsl(var(--color-border-default));
3080
3185
  cursor: default;
3081
- font-size: 13px;
3082
3186
  margin: 0;
3083
3187
  outline: none;
3084
3188
  padding: 8px;
@@ -3090,9 +3194,8 @@ label {
3090
3194
  user-select: none;
3091
3195
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
3092
3196
  font-size: 14px;
3093
- max-width: 250px;
3094
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
3095
- color: #363b3f;
3197
+ /* max-width: 250px; */
3198
+ color: hsl(var(--color-text-default));
3096
3199
  line-height: 20px;
3097
3200
  }
3098
3201
 
@@ -3174,9 +3277,10 @@ label {
3174
3277
 
3175
3278
  .fortune-menuitem-row {
3176
3279
  display: flex;
3177
- padding: 7px 24px;
3178
3280
  white-space: pre;
3179
3281
  align-items: center;
3282
+ gap: 8px;
3283
+ justify-content: flex-end;
3180
3284
  }
3181
3285
 
3182
3286
  .fortune-byvalue-btn {
@@ -3302,21 +3406,32 @@ label {
3302
3406
  }
3303
3407
 
3304
3408
  #luckysheet-filter-byvalue-select {
3409
+ position: relative;
3305
3410
  min-height: 100px;
3411
+ max-height: 210px;
3306
3412
  overflow-y: auto;
3307
3413
  overflow-x: hidden;
3308
- padding: 4px 24px;
3414
+ padding: 8px;
3415
+ display: flex;
3416
+ flex-direction: column;
3417
+ gap: 8px;
3418
+ border-radius: 4px;
3419
+ border: 1px solid hsl(var(--color-border-default));
3309
3420
  }
3310
3421
 
3311
3422
  #luckysheet-filter-byvalue-select .count,
3312
3423
  #luckysheet-pivotTableFilter-byvalue-select .count {
3313
- color: gray;
3314
- margin-left: 5px;
3424
+ color: hsl(var(--color-text-secondary));
3425
+ font-size: 14px;
3315
3426
  }
3316
3427
 
3317
3428
  #luckysheet-filter-byvalue-select .select-item {
3318
3429
  display: flex;
3319
3430
  align-items: center;
3431
+ justify-content: space-between;
3432
+ gap: 8px;
3433
+ font-size: 14px;
3434
+
3320
3435
  }
3321
3436
 
3322
3437
  /*颜色筛选 -- pan*/