@oliasoft-open-source/react-ui-library 4.19.0-beta-1 → 4.19.0-beta-3
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/README.md +2 -0
- package/dist/global.css +70 -68
- package/dist/index.d.ts +1 -0
- package/dist/index.js +62 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1094,8 +1094,10 @@ The `List` component renders a list of data items with various customization opt
|
|
|
1094
1094
|
|
|
1095
1095
|
| Prop | Description | Default Value |
|
|
1096
1096
|
|-----------------------------|-----------------------------------------------------------------------------------------------------------------|--------------------------|
|
|
1097
|
+
| `scrollable` | Determines whether the list is scrollable. | `false` |
|
|
1097
1098
|
| `hideScrollbar` | Determines whether to hide the scrollbar when scrolling. | `false` |
|
|
1098
1099
|
| `triggerScrollToActiveItem` | Specifies whether scrolling should be triggered to display the active item. | `false` |
|
|
1100
|
+
| `infiniteScroll` | Specifies whether to enable infinite scroll functionality. | `false` |
|
|
1099
1101
|
|
|
1100
1102
|
### Usage Example
|
|
1101
1103
|
|
package/dist/global.css
CHANGED
|
@@ -2442,131 +2442,131 @@ html[data-theme='dark'] {
|
|
|
2442
2442
|
border-top-left-radius: 0 !important;
|
|
2443
2443
|
border-bottom-left-radius: 0 !important;
|
|
2444
2444
|
}
|
|
2445
|
-
.
|
|
2445
|
+
._inputInTable_1wss1_1 {
|
|
2446
2446
|
background-color: transparent;
|
|
2447
2447
|
border-radius: inherit !important;
|
|
2448
2448
|
height: var(--size);
|
|
2449
2449
|
min-height: 100%;
|
|
2450
2450
|
}
|
|
2451
|
-
.
|
|
2451
|
+
._inputInTable_1wss1_1:not(:hover):not([data-error]):not([data-warning]) {
|
|
2452
2452
|
border-color: transparent;
|
|
2453
2453
|
}
|
|
2454
|
-
.
|
|
2454
|
+
._inputInTable_1wss1_1:not(:focus) {
|
|
2455
2455
|
box-shadow: none;
|
|
2456
2456
|
}
|
|
2457
|
-
.
|
|
2457
|
+
._inputHover_1wss1_13 {
|
|
2458
2458
|
position: relative;
|
|
2459
2459
|
border-color: var(--color-border-hover);
|
|
2460
2460
|
z-index: 2;
|
|
2461
2461
|
}
|
|
2462
|
-
.
|
|
2462
|
+
._inputFocus_1wss1_18 {
|
|
2463
2463
|
position: relative;
|
|
2464
2464
|
outline: none !important;
|
|
2465
2465
|
border-color: var(--color-border-focus) !important;
|
|
2466
2466
|
box-shadow: var(--shadow-focus);
|
|
2467
2467
|
z-index: 3;
|
|
2468
2468
|
}
|
|
2469
|
-
.
|
|
2470
|
-
.
|
|
2469
|
+
._inputError_1wss1_25,
|
|
2470
|
+
._inputWarning_1wss1_26 {
|
|
2471
2471
|
position: relative;
|
|
2472
2472
|
}
|
|
2473
|
-
.
|
|
2473
|
+
._inputError_1wss1_25 {
|
|
2474
2474
|
z-index: 2;
|
|
2475
2475
|
border-color: var(--color-border-error);
|
|
2476
2476
|
color: var(--color-text-error) !important;
|
|
2477
2477
|
background-color: var(--color-background-error-muted);
|
|
2478
2478
|
}
|
|
2479
|
-
.
|
|
2479
|
+
._inputError_1wss1_25:hover {
|
|
2480
2480
|
border-color: var(--color-border-error-hover) !important;
|
|
2481
2481
|
}
|
|
2482
|
-
.
|
|
2482
|
+
._inputError_1wss1_25:focus {
|
|
2483
2483
|
position: relative;
|
|
2484
2484
|
outline: none !important;
|
|
2485
2485
|
border-color: var(--color-border-focus) !important;
|
|
2486
2486
|
box-shadow: var(--shadow-focus);
|
|
2487
2487
|
z-index: 3;
|
|
2488
2488
|
}
|
|
2489
|
-
.
|
|
2489
|
+
._inputWarning_1wss1_26 {
|
|
2490
2490
|
z-index: 1;
|
|
2491
2491
|
border-color: var(--color-border-warning);
|
|
2492
2492
|
color: var(--color-text-warning) !important;
|
|
2493
2493
|
background-color: var(--color-background-warning-muted);
|
|
2494
2494
|
}
|
|
2495
|
-
.
|
|
2495
|
+
._inputWarning_1wss1_26:hover {
|
|
2496
2496
|
border-color: var(--color-border-warning-hover) !important;
|
|
2497
2497
|
}
|
|
2498
|
-
.
|
|
2498
|
+
._inputWarning_1wss1_26:focus {
|
|
2499
2499
|
position: relative;
|
|
2500
2500
|
outline: none !important;
|
|
2501
2501
|
border-color: var(--color-border-focus) !important;
|
|
2502
2502
|
box-shadow: var(--shadow-focus);
|
|
2503
2503
|
z-index: 3;
|
|
2504
2504
|
}
|
|
2505
|
-
.
|
|
2505
|
+
._inputDisabled_1wss1_61 {
|
|
2506
2506
|
pointer-events: none;
|
|
2507
2507
|
background-color: var(--color-background-disabled);
|
|
2508
2508
|
color: var(--color-text-muted);
|
|
2509
2509
|
box-shadow: none;
|
|
2510
2510
|
}
|
|
2511
|
-
.
|
|
2511
|
+
._hideScrollbars_1wss1_67 {
|
|
2512
2512
|
/* Firefox */
|
|
2513
2513
|
scrollbar-width: none;
|
|
2514
2514
|
/* IE 10+ */
|
|
2515
2515
|
-ms-overflow-style: none;
|
|
2516
2516
|
/* Chrome, Safari and Opera */
|
|
2517
2517
|
}
|
|
2518
|
-
.
|
|
2518
|
+
._hideScrollbars_1wss1_67::-webkit-scrollbar {
|
|
2519
2519
|
display: none;
|
|
2520
2520
|
}
|
|
2521
|
-
.
|
|
2521
|
+
._list_1wss1_77 {
|
|
2522
2522
|
display: flex;
|
|
2523
2523
|
flex-direction: column;
|
|
2524
2524
|
max-height: 100%;
|
|
2525
2525
|
overflow: hidden;
|
|
2526
2526
|
}
|
|
2527
|
-
.
|
|
2527
|
+
._bordered_1wss1_83 {
|
|
2528
2528
|
border: 1px solid var(--color-border);
|
|
2529
2529
|
border-radius: var(--border-radius);
|
|
2530
2530
|
}
|
|
2531
|
-
.
|
|
2531
|
+
._bordered_1wss1_83 ._virtualRow_1wss1_87:last-child ._item_1wss1_87 {
|
|
2532
2532
|
border-bottom: none;
|
|
2533
2533
|
}
|
|
2534
|
-
.
|
|
2535
|
-
.
|
|
2534
|
+
._header_1wss1_90 ._headerTitle_1wss1_90,
|
|
2535
|
+
._heading_1wss1_91 ._itemHeader_1wss1_91 {
|
|
2536
2536
|
transition: opacity 0.3s;
|
|
2537
2537
|
}
|
|
2538
|
-
.
|
|
2539
|
-
.
|
|
2538
|
+
._narrow_1wss1_94 ._header_1wss1_90 ._headerTitle_1wss1_90,
|
|
2539
|
+
._narrow_1wss1_94 ._heading_1wss1_91 ._itemHeader_1wss1_91 {
|
|
2540
2540
|
opacity: 0;
|
|
2541
2541
|
}
|
|
2542
|
-
.
|
|
2542
|
+
._stickyHeader_1wss1_98 {
|
|
2543
2543
|
position: sticky;
|
|
2544
2544
|
top: 0;
|
|
2545
2545
|
background-color: var(--color-background);
|
|
2546
2546
|
z-index: 10;
|
|
2547
2547
|
}
|
|
2548
|
-
.
|
|
2548
|
+
._itemHeader_1wss1_91 {
|
|
2549
2549
|
padding: var(--padding-xs) var(--padding);
|
|
2550
2550
|
display: flex;
|
|
2551
2551
|
align-items: flex-start;
|
|
2552
2552
|
}
|
|
2553
|
-
.
|
|
2553
|
+
._itemHeader_1wss1_91 ._title_1wss1_109 {
|
|
2554
2554
|
margin: 0;
|
|
2555
2555
|
padding: 0;
|
|
2556
2556
|
flex-grow: 1;
|
|
2557
2557
|
min-width: 0;
|
|
2558
2558
|
}
|
|
2559
|
-
.
|
|
2559
|
+
._itemHeader_1wss1_91 ._name_1wss1_115 {
|
|
2560
2560
|
font-weight: 400;
|
|
2561
2561
|
display: block;
|
|
2562
2562
|
}
|
|
2563
|
-
.
|
|
2563
|
+
._itemHeader_1wss1_91 ._iconTooltipMargin_1wss1_119 {
|
|
2564
2564
|
margin-left: var(--padding-xs);
|
|
2565
2565
|
}
|
|
2566
|
-
.
|
|
2566
|
+
._itemHeader_1wss1_91 ._bold_1wss1_122 {
|
|
2567
2567
|
font-weight: bold;
|
|
2568
2568
|
}
|
|
2569
|
-
.
|
|
2569
|
+
._header_1wss1_90 {
|
|
2570
2570
|
padding: var(--padding);
|
|
2571
2571
|
display: flex;
|
|
2572
2572
|
align-items: center;
|
|
@@ -2574,7 +2574,7 @@ html[data-theme='dark'] {
|
|
|
2574
2574
|
position: sticky;
|
|
2575
2575
|
top: 0;
|
|
2576
2576
|
}
|
|
2577
|
-
.
|
|
2577
|
+
._toggleNarrow_1wss1_133 {
|
|
2578
2578
|
margin-right: 16px;
|
|
2579
2579
|
margin-left: -5px;
|
|
2580
2580
|
color: #c8c8c8;
|
|
@@ -2583,16 +2583,16 @@ html[data-theme='dark'] {
|
|
|
2583
2583
|
width: 22px;
|
|
2584
2584
|
justify-content: center;
|
|
2585
2585
|
}
|
|
2586
|
-
.
|
|
2586
|
+
._toggleNarrow_1wss1_133:hover {
|
|
2587
2587
|
color: var(--color-text-primary-hover);
|
|
2588
2588
|
}
|
|
2589
|
-
.
|
|
2589
|
+
._toggleNarrow_1wss1_133:active {
|
|
2590
2590
|
color: var(--color-text-primary-active);
|
|
2591
2591
|
}
|
|
2592
|
-
.
|
|
2592
|
+
._narrow_1wss1_94 ._toggleNarrow_1wss1_133 {
|
|
2593
2593
|
transform: scaleX(-1);
|
|
2594
2594
|
}
|
|
2595
|
-
.
|
|
2595
|
+
._drag_1wss1_151 {
|
|
2596
2596
|
color: var(--color-text-faint);
|
|
2597
2597
|
display: flex;
|
|
2598
2598
|
align-items: center;
|
|
@@ -2606,24 +2606,22 @@ html[data-theme='dark'] {
|
|
|
2606
2606
|
width: var(--size-sm);
|
|
2607
2607
|
flex-shrink: 0;
|
|
2608
2608
|
}
|
|
2609
|
-
.
|
|
2609
|
+
._drag_1wss1_151:hover {
|
|
2610
2610
|
color: var(--color-text-primary-hover);
|
|
2611
2611
|
}
|
|
2612
|
-
.
|
|
2612
|
+
._drag_1wss1_151:active {
|
|
2613
2613
|
cursor: grabbing;
|
|
2614
2614
|
color: var(--color-text-primary-active);
|
|
2615
2615
|
}
|
|
2616
|
-
.
|
|
2616
|
+
._dragOverlay_1wss1_172 {
|
|
2617
2617
|
box-shadow: var(--shadow-layer);
|
|
2618
2618
|
border-radius: var(--border-radius);
|
|
2619
2619
|
overflow: hidden;
|
|
2620
2620
|
}
|
|
2621
|
-
.
|
|
2622
|
-
flex: 1;
|
|
2623
|
-
overflow-y: auto;
|
|
2621
|
+
._listContent_1wss1_177 {
|
|
2624
2622
|
background: var(--color-background);
|
|
2625
2623
|
}
|
|
2626
|
-
.
|
|
2624
|
+
._item_1wss1_87 {
|
|
2627
2625
|
color: inherit;
|
|
2628
2626
|
display: block;
|
|
2629
2627
|
transition: background-color 0.2s;
|
|
@@ -2634,7 +2632,7 @@ html[data-theme='dark'] {
|
|
|
2634
2632
|
overflow-wrap: break-word;
|
|
2635
2633
|
hyphens: auto;
|
|
2636
2634
|
}
|
|
2637
|
-
.
|
|
2635
|
+
._item_1wss1_87:not(._heading_1wss1_91):after {
|
|
2638
2636
|
content: '';
|
|
2639
2637
|
position: absolute;
|
|
2640
2638
|
left: 0;
|
|
@@ -2645,41 +2643,41 @@ html[data-theme='dark'] {
|
|
|
2645
2643
|
border-bottom-left-radius: inherit;
|
|
2646
2644
|
transition: background 0.3s, width 0.3s;
|
|
2647
2645
|
}
|
|
2648
|
-
.
|
|
2646
|
+
._item_1wss1_87._action_1wss1_202 {
|
|
2649
2647
|
cursor: pointer;
|
|
2650
2648
|
}
|
|
2651
|
-
.
|
|
2649
|
+
._item_1wss1_87._action_1wss1_202:not(._active_1wss1_205):hover {
|
|
2652
2650
|
background: var(--color-background-listitem-hover);
|
|
2653
2651
|
}
|
|
2654
|
-
.
|
|
2652
|
+
._item_1wss1_87._action_1wss1_202:not(._active_1wss1_205):hover:after {
|
|
2655
2653
|
width: 5px;
|
|
2656
2654
|
background: rgba(0, 0, 0, 0.1);
|
|
2657
2655
|
}
|
|
2658
|
-
.
|
|
2656
|
+
._item_1wss1_87._indented_1wss1_212:after {
|
|
2659
2657
|
width: 3px;
|
|
2660
2658
|
background: rgba(0, 0, 0, 0.1);
|
|
2661
2659
|
}
|
|
2662
|
-
.
|
|
2660
|
+
._item_1wss1_87._active_1wss1_205 {
|
|
2663
2661
|
cursor: default;
|
|
2664
2662
|
position: relative;
|
|
2665
2663
|
z-index: 1;
|
|
2666
2664
|
background: var(--color-background-listitem-active);
|
|
2667
2665
|
}
|
|
2668
|
-
.
|
|
2666
|
+
._item_1wss1_87._active_1wss1_205:after {
|
|
2669
2667
|
background: var(--color-background-primary) !important;
|
|
2670
2668
|
}
|
|
2671
|
-
.
|
|
2669
|
+
._item_1wss1_87._disabled_1wss1_225 {
|
|
2672
2670
|
color: var(--color-text-faint);
|
|
2673
2671
|
pointer-events: none;
|
|
2674
2672
|
}
|
|
2675
|
-
.
|
|
2673
|
+
._item_1wss1_87._heading_1wss1_91 {
|
|
2676
2674
|
color: var(--color-text-muted);
|
|
2677
2675
|
background-color: var(--color-background-cardheader);
|
|
2678
2676
|
}
|
|
2679
|
-
.
|
|
2677
|
+
._item_1wss1_87._heading_1wss1_91._action_1wss1_202:hover {
|
|
2680
2678
|
color: var(--color-text-primary-hover);
|
|
2681
2679
|
}
|
|
2682
|
-
.
|
|
2680
|
+
._item_1wss1_87 ._label_1wss1_236 {
|
|
2683
2681
|
margin-right: var(--padding-xs);
|
|
2684
2682
|
flex-shrink: 0;
|
|
2685
2683
|
width: var(--size-sm);
|
|
@@ -2690,38 +2688,38 @@ html[data-theme='dark'] {
|
|
|
2690
2688
|
align-items: center;
|
|
2691
2689
|
justify-content: center;
|
|
2692
2690
|
}
|
|
2693
|
-
.
|
|
2694
|
-
.
|
|
2691
|
+
._item_1wss1_87 ._details_1wss1_247,
|
|
2692
|
+
._item_1wss1_87 ._metadata_1wss1_248 {
|
|
2695
2693
|
display: block;
|
|
2696
2694
|
width: 100%;
|
|
2697
2695
|
font-weight: normal;
|
|
2698
2696
|
}
|
|
2699
|
-
.
|
|
2697
|
+
._item_1wss1_87 ._metadata_1wss1_248 {
|
|
2700
2698
|
color: var(--color-text-muted);
|
|
2701
2699
|
}
|
|
2702
|
-
.
|
|
2700
|
+
._item_1wss1_87 ._itemContent_1wss1_256 {
|
|
2703
2701
|
padding: 0 var(--padding) var(--padding-sm);
|
|
2704
2702
|
cursor: auto;
|
|
2705
2703
|
}
|
|
2706
|
-
.
|
|
2704
|
+
._item_1wss1_87 ._itemContent_1wss1_256:empty {
|
|
2707
2705
|
padding: inherit;
|
|
2708
2706
|
}
|
|
2709
|
-
.
|
|
2707
|
+
._indentIcon_1wss1_263 {
|
|
2710
2708
|
color: var(--color-text-faint);
|
|
2711
2709
|
flex-shrink: 0;
|
|
2712
2710
|
margin-right: var(--padding-xxs);
|
|
2713
2711
|
}
|
|
2714
|
-
.
|
|
2712
|
+
._expandIcon_1wss1_268 {
|
|
2715
2713
|
flex-shrink: 0;
|
|
2716
2714
|
position: relative;
|
|
2717
2715
|
display: flex;
|
|
2718
2716
|
height: var(--line-height);
|
|
2719
2717
|
margin-right: var(--padding-xs);
|
|
2720
2718
|
}
|
|
2721
|
-
.
|
|
2719
|
+
._expandIcon_1wss1_268._expanded_1wss1_275 svg {
|
|
2722
2720
|
transform: rotate(90deg);
|
|
2723
2721
|
}
|
|
2724
|
-
.
|
|
2722
|
+
._right_1wss1_278 {
|
|
2725
2723
|
margin-left: auto;
|
|
2726
2724
|
display: flex;
|
|
2727
2725
|
align-items: center;
|
|
@@ -2729,29 +2727,33 @@ html[data-theme='dark'] {
|
|
|
2729
2727
|
margin-bottom: calc((var(--line-height) - var(--size-sm)) / 2);
|
|
2730
2728
|
min-height: var(--size-sm);
|
|
2731
2729
|
}
|
|
2732
|
-
.
|
|
2730
|
+
._actions_1wss1_286 {
|
|
2733
2731
|
margin-left: var(--padding-xs);
|
|
2734
2732
|
display: flex;
|
|
2735
2733
|
align-items: center;
|
|
2736
2734
|
}
|
|
2737
|
-
.
|
|
2735
|
+
._scrollableList_1wss1_291 {
|
|
2736
|
+
height: 100%;
|
|
2737
|
+
overflow-y: auto;
|
|
2738
|
+
}
|
|
2739
|
+
._hideScrollbar_1wss1_67 {
|
|
2738
2740
|
/* Firefox */
|
|
2739
2741
|
scrollbar-width: none;
|
|
2740
2742
|
/* IE 10+ */
|
|
2741
2743
|
-ms-overflow-style: none;
|
|
2742
2744
|
/* Chrome, Safari and Opera */
|
|
2743
2745
|
}
|
|
2744
|
-
.
|
|
2746
|
+
._hideScrollbar_1wss1_67::-webkit-scrollbar {
|
|
2745
2747
|
display: none;
|
|
2746
2748
|
}
|
|
2747
|
-
.
|
|
2749
|
+
._noPointerEvents_1wss1_305 {
|
|
2748
2750
|
pointer-events: none;
|
|
2749
2751
|
}
|
|
2750
|
-
.
|
|
2752
|
+
._virtualRows_1wss1_308 {
|
|
2751
2753
|
width: 100%;
|
|
2752
2754
|
position: relative;
|
|
2753
2755
|
}
|
|
2754
|
-
.
|
|
2756
|
+
._virtualRow_1wss1_87 {
|
|
2755
2757
|
position: absolute;
|
|
2756
2758
|
top: 0;
|
|
2757
2759
|
left: 0;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -9501,47 +9501,48 @@ const InputGroupAddon = ({
|
|
|
9501
9501
|
})();
|
|
9502
9502
|
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$u.addon, order2, small2 ? styles$u.small : ""), children });
|
|
9503
9503
|
};
|
|
9504
|
-
const inputInTable$8 = "
|
|
9505
|
-
const inputHover$8 = "
|
|
9506
|
-
const inputFocus$8 = "
|
|
9507
|
-
const inputError$8 = "
|
|
9508
|
-
const inputWarning$8 = "
|
|
9509
|
-
const inputDisabled$8 = "
|
|
9510
|
-
const hideScrollbars$8 = "
|
|
9511
|
-
const list$1 = "
|
|
9512
|
-
const bordered$1 = "
|
|
9513
|
-
const virtualRow = "
|
|
9514
|
-
const item$4 = "
|
|
9515
|
-
const header$1 = "
|
|
9516
|
-
const headerTitle = "
|
|
9517
|
-
const heading$3 = "
|
|
9518
|
-
const itemHeader = "
|
|
9519
|
-
const narrow = "
|
|
9520
|
-
const stickyHeader = "
|
|
9521
|
-
const title$3 = "
|
|
9522
|
-
const name = "
|
|
9523
|
-
const iconTooltipMargin = "
|
|
9524
|
-
const bold = "
|
|
9525
|
-
const toggleNarrow = "
|
|
9526
|
-
const drag$1 = "
|
|
9527
|
-
const dragOverlay$1 = "
|
|
9528
|
-
const listContent = "
|
|
9529
|
-
const action = "
|
|
9530
|
-
const active$3 = "
|
|
9531
|
-
const indented = "
|
|
9532
|
-
const disabled$5 = "
|
|
9533
|
-
const label$6 = "
|
|
9534
|
-
const details$2 = "
|
|
9535
|
-
const metadata = "
|
|
9536
|
-
const itemContent = "
|
|
9537
|
-
const indentIcon = "
|
|
9538
|
-
const expandIcon = "
|
|
9539
|
-
const expanded = "
|
|
9540
|
-
const right$4 = "
|
|
9541
|
-
const actions = "
|
|
9542
|
-
const
|
|
9543
|
-
const
|
|
9544
|
-
const
|
|
9504
|
+
const inputInTable$8 = "_inputInTable_1wss1_1";
|
|
9505
|
+
const inputHover$8 = "_inputHover_1wss1_13";
|
|
9506
|
+
const inputFocus$8 = "_inputFocus_1wss1_18";
|
|
9507
|
+
const inputError$8 = "_inputError_1wss1_25";
|
|
9508
|
+
const inputWarning$8 = "_inputWarning_1wss1_26";
|
|
9509
|
+
const inputDisabled$8 = "_inputDisabled_1wss1_61";
|
|
9510
|
+
const hideScrollbars$8 = "_hideScrollbars_1wss1_67";
|
|
9511
|
+
const list$1 = "_list_1wss1_77";
|
|
9512
|
+
const bordered$1 = "_bordered_1wss1_83";
|
|
9513
|
+
const virtualRow = "_virtualRow_1wss1_87";
|
|
9514
|
+
const item$4 = "_item_1wss1_87";
|
|
9515
|
+
const header$1 = "_header_1wss1_90";
|
|
9516
|
+
const headerTitle = "_headerTitle_1wss1_90";
|
|
9517
|
+
const heading$3 = "_heading_1wss1_91";
|
|
9518
|
+
const itemHeader = "_itemHeader_1wss1_91";
|
|
9519
|
+
const narrow = "_narrow_1wss1_94";
|
|
9520
|
+
const stickyHeader = "_stickyHeader_1wss1_98";
|
|
9521
|
+
const title$3 = "_title_1wss1_109";
|
|
9522
|
+
const name = "_name_1wss1_115";
|
|
9523
|
+
const iconTooltipMargin = "_iconTooltipMargin_1wss1_119";
|
|
9524
|
+
const bold = "_bold_1wss1_122";
|
|
9525
|
+
const toggleNarrow = "_toggleNarrow_1wss1_133";
|
|
9526
|
+
const drag$1 = "_drag_1wss1_151";
|
|
9527
|
+
const dragOverlay$1 = "_dragOverlay_1wss1_172";
|
|
9528
|
+
const listContent = "_listContent_1wss1_177";
|
|
9529
|
+
const action = "_action_1wss1_202";
|
|
9530
|
+
const active$3 = "_active_1wss1_205";
|
|
9531
|
+
const indented = "_indented_1wss1_212";
|
|
9532
|
+
const disabled$5 = "_disabled_1wss1_225";
|
|
9533
|
+
const label$6 = "_label_1wss1_236";
|
|
9534
|
+
const details$2 = "_details_1wss1_247";
|
|
9535
|
+
const metadata = "_metadata_1wss1_248";
|
|
9536
|
+
const itemContent = "_itemContent_1wss1_256";
|
|
9537
|
+
const indentIcon = "_indentIcon_1wss1_263";
|
|
9538
|
+
const expandIcon = "_expandIcon_1wss1_268";
|
|
9539
|
+
const expanded = "_expanded_1wss1_275";
|
|
9540
|
+
const right$4 = "_right_1wss1_278";
|
|
9541
|
+
const actions = "_actions_1wss1_286";
|
|
9542
|
+
const scrollableList = "_scrollableList_1wss1_291";
|
|
9543
|
+
const hideScrollbar = "_hideScrollbar_1wss1_67";
|
|
9544
|
+
const noPointerEvents = "_noPointerEvents_1wss1_305";
|
|
9545
|
+
const virtualRows = "_virtualRows_1wss1_308";
|
|
9545
9546
|
const listStyles = {
|
|
9546
9547
|
inputInTable: inputInTable$8,
|
|
9547
9548
|
inputHover: inputHover$8,
|
|
@@ -9581,6 +9582,7 @@ const listStyles = {
|
|
|
9581
9582
|
expanded,
|
|
9582
9583
|
right: right$4,
|
|
9583
9584
|
actions,
|
|
9585
|
+
scrollableList,
|
|
9584
9586
|
hideScrollbar,
|
|
9585
9587
|
noPointerEvents,
|
|
9586
9588
|
virtualRows
|
|
@@ -13884,7 +13886,7 @@ const ListDragWrapper = ({
|
|
|
13884
13886
|
const { active: active2, over } = event;
|
|
13885
13887
|
const from3 = active2 == null ? void 0 : active2.id;
|
|
13886
13888
|
const to2 = over == null ? void 0 : over.id;
|
|
13887
|
-
if (from3 !== to2) {
|
|
13889
|
+
if (to2 !== void 0 && from3 !== to2) {
|
|
13888
13890
|
onListReorder({
|
|
13889
13891
|
from: Number(from3),
|
|
13890
13892
|
to: Number(to2)
|
|
@@ -14679,13 +14681,19 @@ const ListScrollWrapper = ({
|
|
|
14679
14681
|
scrollDetails,
|
|
14680
14682
|
children
|
|
14681
14683
|
}) => {
|
|
14682
|
-
const {
|
|
14684
|
+
const {
|
|
14685
|
+
scrollable,
|
|
14686
|
+
hideScrollbar: hideScrollbar2,
|
|
14687
|
+
triggerScrollToActiveItem,
|
|
14688
|
+
infiniteScroll
|
|
14689
|
+
} = scrollDetails;
|
|
14683
14690
|
if (!infiniteScroll) {
|
|
14684
14691
|
return /* @__PURE__ */ jsx(
|
|
14685
14692
|
"div",
|
|
14686
14693
|
{
|
|
14687
14694
|
className: cx$2(
|
|
14688
14695
|
listStyles.listContent,
|
|
14696
|
+
scrollable ? listStyles.scrollableList : "",
|
|
14689
14697
|
hideScrollbar2 ? listStyles.hideScrollbar : ""
|
|
14690
14698
|
),
|
|
14691
14699
|
children: /* @__PURE__ */ jsx("div", { children: children({}) })
|
|
@@ -14694,11 +14702,14 @@ const ListScrollWrapper = ({
|
|
|
14694
14702
|
}
|
|
14695
14703
|
const listContainerRef = useRef(null);
|
|
14696
14704
|
const estimateItemHeight = () => {
|
|
14697
|
-
|
|
14705
|
+
const LINE_HEIGHT = 20;
|
|
14706
|
+
const PADDING2 = 8;
|
|
14707
|
+
const BORDER_WIDTH = 1;
|
|
14708
|
+
let height2 = LINE_HEIGHT + PADDING2 * 2 + BORDER_WIDTH;
|
|
14698
14709
|
if (items.length > 0) {
|
|
14699
14710
|
const item2 = items[items.length - 1];
|
|
14700
|
-
if (item2.details) height2 +=
|
|
14701
|
-
if (item2.metadata) height2 +=
|
|
14711
|
+
if (item2.details) height2 += LINE_HEIGHT;
|
|
14712
|
+
if (item2.metadata) height2 += LINE_HEIGHT;
|
|
14702
14713
|
}
|
|
14703
14714
|
return height2;
|
|
14704
14715
|
};
|
|
@@ -14728,6 +14739,7 @@ const ListScrollWrapper = ({
|
|
|
14728
14739
|
{
|
|
14729
14740
|
className: cx$2(
|
|
14730
14741
|
listStyles.listContent,
|
|
14742
|
+
listStyles.scrollableList,
|
|
14731
14743
|
hideScrollbar2 ? listStyles.hideScrollbar : ""
|
|
14732
14744
|
),
|
|
14733
14745
|
ref: listContainerRef,
|
|
@@ -14760,8 +14772,10 @@ const List = ({
|
|
|
14760
14772
|
height: height2,
|
|
14761
14773
|
testId,
|
|
14762
14774
|
scrollDetails = {
|
|
14775
|
+
scrollable: false,
|
|
14763
14776
|
hideScrollbar: false,
|
|
14764
|
-
triggerScrollToActiveItem: false
|
|
14777
|
+
triggerScrollToActiveItem: false,
|
|
14778
|
+
infiniteScroll: false
|
|
14765
14779
|
}
|
|
14766
14780
|
}) => {
|
|
14767
14781
|
return /* @__PURE__ */ jsxs(
|
|
@@ -67003,7 +67017,7 @@ const SettingField = ({
|
|
|
67003
67017
|
{ label: "Admin only", value: "superusers_admin" }
|
|
67004
67018
|
];
|
|
67005
67019
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
67006
|
-
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", children: [
|
|
67020
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", wrap: false, children: [
|
|
67007
67021
|
children,
|
|
67008
67022
|
!noPermission && /* @__PURE__ */ jsx(
|
|
67009
67023
|
Select,
|