@fileverse-dev/fortune-react 1.0.2-mod-48-patch-3 → 1.0.2-mod-52

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 {
@@ -2620,7 +2654,39 @@ input[type="number"].condition-rules-project-input {
2620
2654
  /* position: absolute;
2621
2655
  padding: 30px 42px;
2622
2656
  z-index: 1002; */
2623
- min-width: 500px;
2657
+ /* min-width: 500px; */
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
+ }
2624
2690
  }
2625
2691
  #fortune-split-column label {
2626
2692
  -webkit-user-select: none;
@@ -2631,12 +2697,15 @@ input[type="number"].condition-rules-project-input {
2631
2697
  font-size: 16px;
2632
2698
  }
2633
2699
  #fortune-split-column .splitDelimiters {
2634
- margin-top: 10px;
2700
+ margin-top: 20px;
2701
+ }
2702
+ .splitSymbols {
2703
+ width: 464px
2635
2704
  }
2636
2705
  #fortune-split-column .splitSymbols {
2637
2706
  position: relative;
2638
- border: 1px solid #dfdfdf;
2639
- padding: 5px;
2707
+ /* border: 1px solid #dfdfdf; */
2708
+ padding: 5px 5px 5px 0;
2640
2709
  margin: 5px 0px;
2641
2710
  }
2642
2711
  #fortune-split-column .splitSymbol {
@@ -2654,10 +2723,13 @@ input[type="number"].condition-rules-project-input {
2654
2723
  }
2655
2724
  #fortune-split-column .splitDataPreview {
2656
2725
  font-size: 14px;
2657
- margin-top: 26px;
2726
+ /* margin-top: 26px; */
2727
+ margin-bottom: 12px;
2658
2728
  }
2659
2729
  #fortune-split-column .splitColumnData {
2660
2730
  border: 1px solid #dfdfdf;
2731
+ border-radius: 4px;
2732
+ background-color: #F8F9FA;
2661
2733
  padding: 5px;
2662
2734
  margin: 5px 0px;
2663
2735
  height: 100px;
@@ -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 {
@@ -2620,7 +2654,39 @@ input[type="number"].condition-rules-project-input {
2620
2654
  /* position: absolute;
2621
2655
  padding: 30px 42px;
2622
2656
  z-index: 1002; */
2623
- min-width: 500px;
2657
+ /* min-width: 500px; */
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
+ }
2624
2690
  }
2625
2691
  #fortune-split-column label {
2626
2692
  -webkit-user-select: none;
@@ -2631,12 +2697,15 @@ input[type="number"].condition-rules-project-input {
2631
2697
  font-size: 16px;
2632
2698
  }
2633
2699
  #fortune-split-column .splitDelimiters {
2634
- margin-top: 10px;
2700
+ margin-top: 20px;
2701
+ }
2702
+ .splitSymbols {
2703
+ width: 464px
2635
2704
  }
2636
2705
  #fortune-split-column .splitSymbols {
2637
2706
  position: relative;
2638
- border: 1px solid #dfdfdf;
2639
- padding: 5px;
2707
+ /* border: 1px solid #dfdfdf; */
2708
+ padding: 5px 5px 5px 0;
2640
2709
  margin: 5px 0px;
2641
2710
  }
2642
2711
  #fortune-split-column .splitSymbol {
@@ -2654,10 +2723,13 @@ input[type="number"].condition-rules-project-input {
2654
2723
  }
2655
2724
  #fortune-split-column .splitDataPreview {
2656
2725
  font-size: 14px;
2657
- margin-top: 26px;
2726
+ /* margin-top: 26px; */
2727
+ margin-bottom: 12px;
2658
2728
  }
2659
2729
  #fortune-split-column .splitColumnData {
2660
2730
  border: 1px solid #dfdfdf;
2731
+ border-radius: 4px;
2732
+ background-color: #F8F9FA;
2661
2733
  padding: 5px;
2662
2734
  margin: 5px 0px;
2663
2735
  height: 100px;