@fileverse-dev/fortune-react 1.0.2-mod-26 → 1.0.2-mod-28

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.
@@ -1514,6 +1514,30 @@ line-height: 16px; /* 133.333% */
1514
1514
  min-width: 154px;
1515
1515
  }
1516
1516
 
1517
+ /* Add scrollbar styles */
1518
+ #fortune-search-replace .table-container {
1519
+ scrollbar-width: thin;
1520
+ scrollbar-color: #babac0 transparent;
1521
+ }
1522
+
1523
+ #fortune-search-replace .table-container::-webkit-scrollbar {
1524
+ width: 8px;
1525
+ height: 8px;
1526
+ }
1527
+
1528
+ #fortune-search-replace .table-container::-webkit-scrollbar-track {
1529
+ background-color: transparent;
1530
+ }
1531
+
1532
+ #fortune-search-replace .table-container::-webkit-scrollbar-thumb {
1533
+ background-color: #babac0;
1534
+ border-radius: 16px;
1535
+ }
1536
+
1537
+ #fortune-search-replace .table-container::-webkit-scrollbar-button {
1538
+ display: none;
1539
+ }
1540
+
1517
1541
  .fortune-link-modify-modal {
1518
1542
  position: absolute;
1519
1543
  overflow: hidden;
@@ -1829,14 +1853,11 @@ line-height: 16px; /* 133.333% */
1829
1853
  }
1830
1854
 
1831
1855
  #range-dialog {
1832
- box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
1856
+ box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
1833
1857
  background: #fff;
1834
- background-clip: padding-box;
1835
- border: 1px solid rgba(0, 0, 0, 0.333);
1858
+ border: 1px solid hsl(var(--color-border-default));
1836
1859
  outline: 0;
1837
1860
  position: absolute;
1838
- color: #000;
1839
- padding: 30px 42px;
1840
1861
  z-index: 100003;
1841
1862
  left: 50%;
1842
1863
  top: 50%;
@@ -1902,34 +1923,41 @@ line-height: 16px; /* 133.333% */
1902
1923
 
1903
1924
  .condition-format-sub-menu {
1904
1925
  position: absolute;
1905
- top: -8px;
1906
- box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
1926
+ top: -12px;
1927
+ box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
1907
1928
  background: #fff;
1908
- border: 1px solid rgba(0, 0, 0, 0.2);
1929
+ border: 1px solid hsl(var(--color-border-default));
1930
+ border-radius: 8px;
1909
1931
  cursor: default;
1910
- font-size: 12px;
1932
+ font-size: 14px;
1911
1933
  z-index: 1004;
1912
1934
  box-sizing: border-box;
1913
1935
  -webkit-user-select: none;
1914
1936
  -moz-user-select: none;
1915
1937
  user-select: none;
1916
1938
  outline: none;
1939
+ padding: 8px;
1940
+ min-width: 190px;
1917
1941
  }
1918
1942
 
1919
1943
  .condition-format-item {
1920
1944
  display: flex;
1921
1945
  justify-content: space-between;
1922
- padding: 6px 18px;
1946
+ padding: 8px;
1923
1947
  z-index: 1005;
1948
+ border-radius: 4px;
1949
+ cursor: pointer;
1924
1950
  }
1925
1951
 
1926
1952
  .condition-format-item:hover {
1927
- background: #efefef;
1953
+ background: hsl(var(--color-bg-default-hover));
1954
+ transition: all 0.2s ease-in-out;
1928
1955
  }
1929
1956
 
1930
1957
  .condition-format-item span {
1931
- font-size: 10px;
1932
- color: #afafaf;
1958
+ font-size: 14px;
1959
+ color: hsl(var(--color-text-secondary));
1960
+ font-weight: 400;
1933
1961
  }
1934
1962
 
1935
1963
  .horizontal-line {
@@ -1971,8 +1999,11 @@ line-height: 16px; /* 133.333% */
1971
1999
  }
1972
2000
 
1973
2001
  .condition-rules {
1974
- padding: 0px 42px 34px 42px;
1975
- font-size: 12px;
2002
+ /* padding: 0px 42px 34px 42px; */
2003
+ font-size: 14px;
2004
+ display: flex;
2005
+ flex-direction: column;
2006
+ gap: 16px;
1976
2007
  }
1977
2008
 
1978
2009
  .condition-rules-title {
@@ -1982,9 +2013,8 @@ line-height: 16px; /* 133.333% */
1982
2013
  margin-bottom: 18px;
1983
2014
  }
1984
2015
 
1985
- .conditin-rules-value {
1986
- margin: 5px 0;
1987
- font-weight: 600;
2016
+ .condition-rules-value {
2017
+ margin-bottom: 4px;
1988
2018
  }
1989
2019
 
1990
2020
  .condition-rules-inpbox {
@@ -2014,40 +2044,45 @@ line-height: 16px; /* 133.333% */
2014
2044
  }
2015
2045
 
2016
2046
  .condition-rules-setbox {
2017
- border: 1px solid #d4d4d4;
2047
+ display: flex;
2048
+ flex-direction: column;
2049
+ gap: 8px;
2018
2050
  }
2019
2051
 
2020
2052
  .condition-rules-set {
2021
- padding: 5px 10px;
2053
+ width: 100%;
2054
+ display: flex;
2055
+ align-items: center;
2056
+ gap: 8px;
2022
2057
  }
2023
2058
 
2024
2059
  .condition-rules-color {
2025
- height: 30px;
2026
- line-height: 30px;
2027
- position: relative;
2060
+ display: flex;
2061
+ align-items: center;
2062
+ gap: 8px;
2028
2063
  }
2029
2064
 
2030
2065
  .condition-rules-check {
2031
- float: left;
2032
- margin-top: 10px;
2066
+ /* float: left; */
2067
+ /* margin-top: 10px; */
2033
2068
  }
2034
2069
 
2035
2070
  .condition-rules-label {
2036
2071
  display: inline-block;
2037
- width: 80px;
2072
+ width: 70px;
2038
2073
  -webkit-user-select: none;
2039
2074
  -moz-user-select: none;
2040
2075
  user-select: none;
2041
2076
  }
2042
2077
 
2043
2078
  .condition-rules-select-color {
2044
- padding: 2px;
2045
- border: solid 1px #e5e5e5;
2046
- background: #f5f5f5;
2047
- position: absolute;
2048
- top: 50%;
2049
- left: 50%;
2050
- transform: translate(20%, -50%);
2079
+ background: hsl(var(--color-bg-default));
2080
+ width: 2.5rem;
2081
+ height: 1.5rem;
2082
+ border-radius: 4px;
2083
+ padding: 0;
2084
+ margin: 0;
2085
+ cursor: pointer;
2051
2086
  }
2052
2087
 
2053
2088
  .condition-rules-between-box {
@@ -2071,23 +2106,37 @@ line-height: 16px; /* 133.333% */
2071
2106
  }
2072
2107
 
2073
2108
  .condition-rules-date {
2074
- width: 98%;
2075
- border: none;
2076
- line-height: 26px;
2109
+ width: 100%;
2077
2110
  }
2078
2111
 
2079
2112
  .condition-rules-select {
2080
- width: 150px;
2081
- height: 30px;
2113
+ width: 100%;
2114
+ z-index: 999999;
2082
2115
  }
2083
2116
 
2084
2117
  .condition-rules-project-box {
2085
2118
  display: flex;
2086
2119
  align-items: center;
2120
+ gap: 8px;
2087
2121
  }
2088
2122
 
2089
2123
  .condition-rules-project-input {
2090
- margin: 0px 6px;
2124
+ margin: 0px;
2125
+ width: -moz-fit-content;
2126
+ width: fit-content;
2127
+ max-width: 55px !important;
2128
+ }
2129
+
2130
+ /* Hide arrows for Chrome, Safari, Edge */
2131
+ input[type="number"].condition-rules-project-input::-webkit-outer-spin-button,
2132
+ input[type="number"].condition-rules-project-input::-webkit-inner-spin-button {
2133
+ -webkit-appearance: none;
2134
+ margin: 0;
2135
+ }
2136
+
2137
+ /* Hide arrows for Firefox */
2138
+ input[type="number"].condition-rules-project-input {
2139
+ -moz-appearance: textfield;
2091
2140
  }
2092
2141
 
2093
2142
  .fortune-toolbar {
@@ -2119,7 +2168,7 @@ line-height: 16px; /* 133.333% */
2119
2168
  .fortune-toolbar-menu-divider {
2120
2169
  width: "100%";
2121
2170
  height: 1px;
2122
- margin: 2px 6px;
2171
+ margin: 8px 0px;
2123
2172
  background-color: #e0e0e0;
2124
2173
  }
2125
2174
 
@@ -2185,14 +2234,14 @@ line-height: 16px; /* 133.333% */
2185
2234
  .fortune-toolbar-select,
2186
2235
  .fortune-toolbar-color-picker {
2187
2236
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
2188
- padding: 10px;
2189
- border-radius: 6px;
2237
+ padding: 0.5rem;
2238
+ border: 1px solid hsl(var(--color-border-default));
2239
+ border-radius: 8px;
2190
2240
  background: white;
2241
+ min-width: 240px;
2191
2242
  }
2192
2243
 
2193
2244
  .fortune-toolbar-select {
2194
- padding-left: 0;
2195
- padding-right: 0;
2196
2245
  overflow: auto;
2197
2246
  max-height: 75vh;
2198
2247
  }
@@ -2204,7 +2253,7 @@ line-height: 16px; /* 133.333% */
2204
2253
  .fortune-toolbar-select-option {
2205
2254
  font-size: 12px;
2206
2255
  min-width: 60px;
2207
- padding: 8px 12px;
2256
+ padding: 8px;
2208
2257
  cursor: pointer;
2209
2258
  -webkit-user-select: none;
2210
2259
  -moz-user-select: none;
@@ -2212,7 +2261,9 @@ line-height: 16px; /* 133.333% */
2212
2261
  }
2213
2262
 
2214
2263
  .fortune-toolbar-select-option:hover {
2215
- background: #efefef;
2264
+ background: hsl(var(--color-bg-default-hover));
2265
+ border-radius: 4px;
2266
+ transition: all 0.2s ease-in-out;
2216
2267
  }
2217
2268
 
2218
2269
  .fortune-toolbar-select::-webkit-scrollbar {
@@ -2411,71 +2462,6 @@ line-height: 16px; /* 133.333% */
2411
2462
  background: #efefef;
2412
2463
  cursor: pointer;
2413
2464
  }
2414
- /*函数公式查找样式*/
2415
- #luckysheet-search-formula {
2416
- font-size: 12px;
2417
- }
2418
-
2419
- #luckysheet-search-formula .inpbox {
2420
- margin-bottom: 5px;
2421
- }
2422
-
2423
- #luckysheet-search-formula .inpbox div {
2424
- display: block;
2425
- margin-bottom: 5px;
2426
- }
2427
-
2428
- #luckysheet-search-formula .inpbox input {
2429
- width: 100%;
2430
- height: 24px;
2431
- line-height: 24px;
2432
- border: 1px solid #d4d4d4;
2433
- padding: 0 10px;
2434
- box-sizing: border-box;
2435
- font-size: 12px;
2436
- }
2437
-
2438
- #luckysheet-search-formula .selbox {
2439
- margin-bottom: 5px;
2440
- }
2441
-
2442
- #luckysheet-search-formula .selbox select {
2443
- width: 50%;
2444
- height: 24px;
2445
- line-height: 24px;
2446
- border: 1px solid #d4d4d4;
2447
- box-sizing: border-box;
2448
- font-size: 12px;
2449
- }
2450
-
2451
- #luckysheet-search-formula .listbox label {
2452
- display: block;
2453
- margin-bottom: 5px;
2454
- }
2455
-
2456
- #formulaTypeList {
2457
- width: 300px;
2458
- height: 170px;
2459
- border: 1px solid #d4d4d4;
2460
- overflow-y: scroll;
2461
- }
2462
-
2463
- .formulaList {
2464
- width: 300px;
2465
- height: 170px;
2466
- border: 1px solid #d4d4d4;
2467
- overflow-y: scroll;
2468
- }
2469
-
2470
- .listBox {
2471
- padding: 5px;
2472
- border-bottom: 1px solid #d4d4d4;
2473
- }
2474
-
2475
- .listBox.on {
2476
- background-color: #8c89fe;
2477
- color: #fff;
2478
- }
2479
2465
 
2480
2466
  #fortune-split-column {
2481
2467
  /* position: absolute;
@@ -3075,30 +3061,30 @@ label {
3075
3061
  }
3076
3062
 
3077
3063
  .fortune-context-menu {
3064
+ min-width: 240px;
3078
3065
  max-height: 100%;
3079
3066
  overflow-y: auto;
3080
3067
  border-radius: 4px;
3081
- box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
3068
+ box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
3082
3069
  transition: opacity 0.218s;
3083
3070
  background: #fff;
3084
- border: 1px solid #E8EBEC;
3085
- border: 1px solid #E8EBEC;
3071
+ border: 1px solid hsl(var(--color-border-default));
3086
3072
  cursor: default;
3087
3073
  font-size: 13px;
3088
3074
  margin: 0;
3089
3075
  outline: none;
3090
- padding: 6px 0;
3076
+ padding: 8px;
3091
3077
  position: absolute;
3092
3078
  z-index: 1004;
3093
3079
  box-sizing: border-box;
3094
3080
  -webkit-user-select: none;
3095
3081
  -moz-user-select: none;
3096
3082
  user-select: none;
3097
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
3083
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
3098
3084
  font-size: 14px;
3099
3085
  max-width: 250px;
3100
3086
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
3101
- color: #363B3F;
3087
+ color: #363b3f;
3102
3088
  line-height: 20px;
3103
3089
  }
3104
3090
 
@@ -3106,8 +3092,14 @@ label {
3106
3092
  display: flex;
3107
3093
  align-items: center;
3108
3094
  height: 20px;
3095
+ cursor: pointer;
3096
+ border-radius: 4px;
3109
3097
  }
3110
3098
 
3099
+ .context-item:hover {
3100
+ background: hsl(var(--color-bg-default-hover));
3101
+ transition: all 0.2s ease-in-out;
3102
+ }
3111
3103
 
3112
3104
  .fortune-context-menu input.luckysheet-mousedown-cancel {
3113
3105
  width: 35px;
@@ -3129,20 +3121,19 @@ label {
3129
3121
  cursor: pointer;
3130
3122
  list-style: none;
3131
3123
  margin: 0;
3132
- padding: 1px 6em 1px 20px;
3133
3124
  white-space: nowrap;
3134
- padding-left: 8px;
3135
3125
  vertical-align: middle;
3136
- padding-right: 24px;
3137
3126
  -webkit-user-select: none;
3138
3127
  -moz-user-select: none;
3139
3128
  user-select: none;
3129
+ border-radius: 4px;
3140
3130
  }
3141
3131
 
3142
3132
  /* 右击菜单项目 hover背景色 */
3143
3133
  .luckysheet-cols-menu .luckysheet-cols-menuitem:hover,
3144
3134
  .luckysheet-cols-menu .luckysheet-cols-menuitem-hover {
3145
- background: #efefef;
3135
+ background: hsl(var(--color-bg-default-hover));
3136
+ transition: all 0.2s ease-in-out;
3146
3137
  }
3147
3138
 
3148
3139
  .luckysheet-cols-menu
@@ -3153,11 +3144,14 @@ label {
3153
3144
  cursor: pointer;
3154
3145
  list-style: none;
3155
3146
  margin: 0;
3156
- padding: 6px 10px 6px 10px !important;
3147
+ padding: 8px !important;
3157
3148
  white-space: nowrap;
3158
3149
  -webkit-user-select: none;
3159
3150
  -moz-user-select: none;
3160
3151
  user-select: none;
3152
+ display: flex;
3153
+ align-items: center;
3154
+ gap: 8px;
3161
3155
  }
3162
3156
 
3163
3157
  .fortune-filter-menu .luckysheet-cols-menuitem {
@@ -3376,30 +3370,10 @@ label {
3376
3370
  right: -18px;
3377
3371
  }
3378
3372
 
3379
- .fortune-sort-title {
3380
- background-color: #fff;
3381
- color: #000;
3382
- cursor: default;
3383
- font-size: 16px;
3384
- font-weight: 400;
3385
- line-height: 24px;
3386
- margin: 0 0 16px;
3387
- }
3388
-
3389
- .fortune-sort-modal > div {
3390
- margin-bottom: 10px;
3391
- }
3392
-
3393
- .fortune-sort-tablec td {
3394
- padding: 5px;
3395
- white-space: nowrap;
3396
- }
3397
-
3398
- .fortune-sort-button {
3399
- margin-top: 10px;
3400
- margin-bottom: 25px;
3373
+ .tippy-box {
3374
+ background-color: transparent !important;
3401
3375
  }
3402
-
3376
+ .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
3403
3377
  #fortune-change-color {
3404
3378
  min-width: 164px;
3405
3379
  height: 252px;