sag_components 2.0.0-beta128 → 2.0.0-beta130
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.esm.js +315 -281
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +315 -281
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23894,22 +23894,21 @@ const DeleteIcon = styled.div`
|
|
|
23894
23894
|
position: absolute;
|
|
23895
23895
|
`;
|
|
23896
23896
|
|
|
23897
|
-
const QuickFilterDropdownSingle =
|
|
23898
|
-
|
|
23899
|
-
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
} = _ref;
|
|
23897
|
+
const QuickFilterDropdownSingle = ({
|
|
23898
|
+
label,
|
|
23899
|
+
hoverColor,
|
|
23900
|
+
options,
|
|
23901
|
+
selectedValue,
|
|
23902
|
+
placeHolder,
|
|
23903
|
+
onChange,
|
|
23904
|
+
disabled,
|
|
23905
|
+
width,
|
|
23906
|
+
error,
|
|
23907
|
+
errorMessage,
|
|
23908
|
+
xIconShow,
|
|
23909
|
+
labelColor,
|
|
23910
|
+
showLabelOnTop
|
|
23911
|
+
}) => {
|
|
23913
23912
|
const [isFocused, setIsFocused] = useState(false);
|
|
23914
23913
|
const [showOptions, setShowOptions] = useState(false);
|
|
23915
23914
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24306,24 +24305,23 @@ const IconContainer$2 = styled.div`
|
|
|
24306
24305
|
cursor: pointer;
|
|
24307
24306
|
`;
|
|
24308
24307
|
|
|
24309
|
-
const QuickFilterDropdownMultiSelection =
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24326
|
-
} = _ref;
|
|
24308
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24309
|
+
label,
|
|
24310
|
+
labelEmptyValue,
|
|
24311
|
+
options,
|
|
24312
|
+
selectedValue,
|
|
24313
|
+
placeHolder,
|
|
24314
|
+
onChange,
|
|
24315
|
+
required,
|
|
24316
|
+
disabled,
|
|
24317
|
+
width,
|
|
24318
|
+
error,
|
|
24319
|
+
errorMessage,
|
|
24320
|
+
labelColor,
|
|
24321
|
+
xIconShow,
|
|
24322
|
+
checkBoxColor,
|
|
24323
|
+
showLabelOnTop
|
|
24324
|
+
}) => {
|
|
24327
24325
|
const [isFocused, setIsFocused] = useState(false);
|
|
24328
24326
|
const [showOptions, setShowOptions] = useState(false);
|
|
24329
24327
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35555,9 +35553,9 @@ const ToggleSlider = styled.span`
|
|
|
35555
35553
|
}
|
|
35556
35554
|
`;
|
|
35557
35555
|
|
|
35558
|
-
/**
|
|
35559
|
-
* ToggleSwitch component for on/off states.
|
|
35560
|
-
* Supports small/large sizes and disabled state.
|
|
35556
|
+
/**
|
|
35557
|
+
* ToggleSwitch component for on/off states.
|
|
35558
|
+
* Supports small/large sizes and disabled state.
|
|
35561
35559
|
*/
|
|
35562
35560
|
function ToggleSwitch(_ref) {
|
|
35563
35561
|
let {
|
|
@@ -37539,94 +37537,170 @@ const TableHeader = ({
|
|
|
37539
37537
|
|
|
37540
37538
|
// Shared tooltip styles
|
|
37541
37539
|
const tooltipStyles = css`
|
|
37542
|
-
|
|
37543
|
-
|
|
37544
|
-
|
|
37545
|
-
|
|
37546
|
-
|
|
37547
|
-
|
|
37548
|
-
|
|
37549
|
-
|
|
37550
|
-
|
|
37551
|
-
|
|
37552
|
-
|
|
37553
|
-
|
|
37554
|
-
|
|
37555
|
-
|
|
37556
|
-
|
|
37557
|
-
|
|
37558
|
-
|
|
37559
|
-
|
|
37560
|
-
|
|
37561
|
-
|
|
37562
|
-
|
|
37563
|
-
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
|
|
37567
|
-
|
|
37568
|
-
|
|
37540
|
+
/* CSS-only tooltip */
|
|
37541
|
+
&[data-tooltip]:hover::before {
|
|
37542
|
+
content: attr(data-tooltip);
|
|
37543
|
+
position: fixed;
|
|
37544
|
+
background-color: white;
|
|
37545
|
+
color: #333;
|
|
37546
|
+
padding: 10px 16px;
|
|
37547
|
+
border-radius: 4px;
|
|
37548
|
+
font-family: "Poppins", sans-serif;
|
|
37549
|
+
font-size: 14px;
|
|
37550
|
+
font-weight: 400;
|
|
37551
|
+
z-index: 1000;
|
|
37552
|
+
pointer-events: none;
|
|
37553
|
+
width: 200px;
|
|
37554
|
+
white-space: pre-wrap;
|
|
37555
|
+
word-wrap: break-word;
|
|
37556
|
+
line-height: 1.8;
|
|
37557
|
+
box-shadow:
|
|
37558
|
+
0 -2px 8px rgba(0, 0, 0, 0.15),
|
|
37559
|
+
0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37560
|
+
|
|
37561
|
+
/* Position above the element - using dynamic offset */
|
|
37562
|
+
top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px));
|
|
37563
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2);
|
|
37564
|
+
transform: translateX(-50%);
|
|
37565
|
+
|
|
37566
|
+
/* Add delay */
|
|
37567
|
+
opacity: 0;
|
|
37568
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37569
|
+
}
|
|
37570
|
+
|
|
37571
|
+
/* Tooltip arrow */
|
|
37572
|
+
&[data-tooltip]:hover::after {
|
|
37573
|
+
content: "";
|
|
37574
|
+
position: fixed;
|
|
37575
|
+
top: calc(
|
|
37576
|
+
var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) +
|
|
37577
|
+
var(--tooltip-height, 50px)
|
|
37578
|
+
); /* Use estimated tooltip height */
|
|
37579
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2);
|
|
37580
|
+
transform: translateX(-50%);
|
|
37581
|
+
border: 8px solid transparent;
|
|
37582
|
+
border-top-color: white;
|
|
37583
|
+
z-index: 1001;
|
|
37584
|
+
pointer-events: none;
|
|
37585
|
+
|
|
37586
|
+
/* Add delay */
|
|
37587
|
+
opacity: 0;
|
|
37588
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37589
|
+
}
|
|
37590
|
+
|
|
37591
|
+
@keyframes showTooltip {
|
|
37592
|
+
to {
|
|
37593
|
+
opacity: 1;
|
|
37569
37594
|
}
|
|
37570
|
-
|
|
37571
|
-
|
|
37572
|
-
|
|
37573
|
-
|
|
37574
|
-
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37578
|
-
|
|
37579
|
-
border-top-color: white;
|
|
37580
|
-
z-index: 1001;
|
|
37581
|
-
pointer-events: none;
|
|
37582
|
-
|
|
37583
|
-
/* Add delay */
|
|
37584
|
-
opacity: 0;
|
|
37585
|
-
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37595
|
+
}
|
|
37596
|
+
`;
|
|
37597
|
+
|
|
37598
|
+
// Simple new row highlight animation
|
|
37599
|
+
const shimmerAnimation = css`
|
|
37600
|
+
@keyframes newRowHighlight {
|
|
37601
|
+
0% {
|
|
37602
|
+
background-color: #ffffff;
|
|
37603
|
+
border-left-color: transparent;
|
|
37586
37604
|
}
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37605
|
+
15% {
|
|
37606
|
+
background-color: #f0f8f0;
|
|
37607
|
+
border-left-color: #5fcc70;
|
|
37608
|
+
}
|
|
37609
|
+
85% {
|
|
37610
|
+
background-color: #f0f8f0;
|
|
37611
|
+
border-left-color: #5fcc70;
|
|
37592
37612
|
}
|
|
37613
|
+
100% {
|
|
37614
|
+
background-color: #ffffff;
|
|
37615
|
+
border-left-color: transparent;
|
|
37616
|
+
}
|
|
37617
|
+
}
|
|
37593
37618
|
`;
|
|
37594
37619
|
const StyledTableBody = styled.tbody`
|
|
37595
|
-
|
|
37596
|
-
|
|
37597
|
-
|
|
37620
|
+
background-color: white;
|
|
37621
|
+
font-family: "Poppins", sans-serif;
|
|
37622
|
+
position: relative;
|
|
37598
37623
|
`;
|
|
37599
37624
|
const TableRow = styled.tr`
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
|
|
37606
|
-
|
|
37607
|
-
|
|
37608
|
-
|
|
37609
|
-
|
|
37610
|
-
|
|
37611
|
-
|
|
37612
|
-
|
|
37613
|
-
|
|
37614
|
-
|
|
37615
|
-
|
|
37616
|
-
|
|
37617
|
-
|
|
37618
|
-
|
|
37619
|
-
|
|
37620
|
-
|
|
37621
|
-
}
|
|
37625
|
+
border-bottom: 1px solid #f2f2f2;
|
|
37626
|
+
transition: all 0.3s ease;
|
|
37627
|
+
font-family: "Poppins", sans-serif;
|
|
37628
|
+
position: relative;
|
|
37629
|
+
|
|
37630
|
+
&:hover {
|
|
37631
|
+
background-color: #e6f0f0;
|
|
37632
|
+
}
|
|
37633
|
+
|
|
37634
|
+
&:last-child {
|
|
37635
|
+
border-bottom: none;
|
|
37636
|
+
}
|
|
37637
|
+
|
|
37638
|
+
/* Simple new row highlight */
|
|
37639
|
+
&.shimmer-row {
|
|
37640
|
+
border-left: 3px solid transparent;
|
|
37641
|
+
animation: newRowHighlight 3s ease-out;
|
|
37642
|
+
animation-fill-mode: both;
|
|
37643
|
+
}
|
|
37644
|
+
|
|
37645
|
+
${shimmerAnimation}
|
|
37622
37646
|
`;
|
|
37623
37647
|
styled.div`
|
|
37648
|
+
position: absolute;
|
|
37649
|
+
background-color: white;
|
|
37650
|
+
color: #333;
|
|
37651
|
+
padding: 10px 16px;
|
|
37652
|
+
border-radius: 4px;
|
|
37653
|
+
font-family: "Poppins", sans-serif;
|
|
37654
|
+
font-size: 14px;
|
|
37655
|
+
font-weight: 400;
|
|
37656
|
+
z-index: 1000;
|
|
37657
|
+
pointer-events: none;
|
|
37658
|
+
width: 200px;
|
|
37659
|
+
white-space: pre-wrap;
|
|
37660
|
+
word-wrap: break-word;
|
|
37661
|
+
line-height: 1.8;
|
|
37662
|
+
box-shadow:
|
|
37663
|
+
0 -2px 8px rgba(0, 0, 0, 0.15),
|
|
37664
|
+
0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37665
|
+
transform: translate(-50%, -100%);
|
|
37666
|
+
|
|
37667
|
+
&::after {
|
|
37668
|
+
content: "";
|
|
37624
37669
|
position: absolute;
|
|
37670
|
+
top: 100%;
|
|
37671
|
+
left: 50%;
|
|
37672
|
+
transform: translateX(-50%);
|
|
37673
|
+
border: 8px solid transparent;
|
|
37674
|
+
border-top-color: white;
|
|
37675
|
+
}
|
|
37676
|
+
`;
|
|
37677
|
+
const TableCell = styled.td`
|
|
37678
|
+
padding: 12px 16px;
|
|
37679
|
+
color: ${props => props.$color || "#212121"};
|
|
37680
|
+
font-size: 14px;
|
|
37681
|
+
font-weight: 400;
|
|
37682
|
+
font-family: "Poppins", sans-serif;
|
|
37683
|
+
line-height: 30px;
|
|
37684
|
+
height: 32px;
|
|
37685
|
+
vertical-align: middle;
|
|
37686
|
+
white-space: nowrap;
|
|
37687
|
+
overflow: hidden;
|
|
37688
|
+
text-overflow: ellipsis;
|
|
37689
|
+
min-width: ${props => props.$minWidth || "80px"};
|
|
37690
|
+
max-width: ${props => props.$maxWidth || "300px"};
|
|
37691
|
+
width: auto;
|
|
37692
|
+
position: relative;
|
|
37693
|
+
transition: all 0.3s ease;
|
|
37694
|
+
|
|
37695
|
+
/* CSS-only tooltip */
|
|
37696
|
+
&[data-tooltip]:hover::before {
|
|
37697
|
+
content: attr(data-tooltip);
|
|
37698
|
+
position: fixed;
|
|
37625
37699
|
background-color: white;
|
|
37626
37700
|
color: #333;
|
|
37627
37701
|
padding: 10px 16px;
|
|
37628
37702
|
border-radius: 4px;
|
|
37629
|
-
font-family:
|
|
37703
|
+
font-family: "Poppins", sans-serif;
|
|
37630
37704
|
font-size: 14px;
|
|
37631
37705
|
font-weight: 400;
|
|
37632
37706
|
z-index: 1000;
|
|
@@ -37635,201 +37709,157 @@ styled.div`
|
|
|
37635
37709
|
white-space: pre-wrap;
|
|
37636
37710
|
word-wrap: break-word;
|
|
37637
37711
|
line-height: 1.8;
|
|
37638
|
-
|
|
37639
|
-
|
|
37640
|
-
|
|
37712
|
+
box-shadow:
|
|
37713
|
+
0 -2px 8px rgba(0, 0, 0, 0.15),
|
|
37714
|
+
0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37641
37715
|
|
|
37642
|
-
|
|
37643
|
-
|
|
37644
|
-
|
|
37645
|
-
|
|
37646
|
-
|
|
37647
|
-
|
|
37648
|
-
|
|
37649
|
-
|
|
37650
|
-
|
|
37651
|
-
|
|
37652
|
-
|
|
37653
|
-
|
|
37654
|
-
|
|
37655
|
-
|
|
37656
|
-
|
|
37657
|
-
|
|
37658
|
-
|
|
37659
|
-
|
|
37660
|
-
|
|
37661
|
-
|
|
37662
|
-
|
|
37663
|
-
|
|
37664
|
-
|
|
37665
|
-
|
|
37666
|
-
|
|
37667
|
-
|
|
37668
|
-
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
|
|
37672
|
-
|
|
37673
|
-
|
|
37674
|
-
|
|
37675
|
-
padding: 10px 16px;
|
|
37676
|
-
border-radius: 4px;
|
|
37677
|
-
font-family: 'Poppins', sans-serif;
|
|
37678
|
-
font-size: 14px;
|
|
37679
|
-
font-weight: 400;
|
|
37680
|
-
z-index: 1000;
|
|
37681
|
-
pointer-events: none;
|
|
37682
|
-
width: 200px;
|
|
37683
|
-
white-space: pre-wrap;
|
|
37684
|
-
word-wrap: break-word;
|
|
37685
|
-
line-height: 1.8;
|
|
37686
|
-
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37687
|
-
|
|
37688
|
-
/* Position above the element - using dynamic offset */
|
|
37689
|
-
top: calc(var(--cell-top, 0px) - var(--cell-offset, 40px));
|
|
37690
|
-
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37691
|
-
transform: translateX(-50%);
|
|
37692
|
-
|
|
37693
|
-
/* Add delay */
|
|
37694
|
-
opacity: 0;
|
|
37695
|
-
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37696
|
-
}
|
|
37697
|
-
|
|
37698
|
-
/* Tooltip arrow */
|
|
37699
|
-
&[data-tooltip]:hover::after {
|
|
37700
|
-
content: '';
|
|
37701
|
-
position: fixed;
|
|
37702
|
-
top: calc(var(--cell-top, 0px) - var(--cell-offset, 40px) + var(--cell-height, 50px));
|
|
37703
|
-
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37704
|
-
transform: translateX(-50%);
|
|
37705
|
-
border: 8px solid transparent;
|
|
37706
|
-
border-top-color: white;
|
|
37707
|
-
z-index: 1001;
|
|
37708
|
-
pointer-events: none;
|
|
37709
|
-
|
|
37710
|
-
/* Add delay */
|
|
37711
|
-
opacity: 0;
|
|
37712
|
-
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37713
|
-
}
|
|
37714
|
-
|
|
37715
|
-
&[title] {
|
|
37716
|
-
&:hover::after {
|
|
37717
|
-
font-family: 'Poppins', sans-serif;
|
|
37718
|
-
font-size: 14px;
|
|
37719
|
-
}
|
|
37716
|
+
/* Position above the element - using dynamic offset */
|
|
37717
|
+
top: calc(var(--cell-top, 0px) - var(--cell-offset, 40px));
|
|
37718
|
+
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37719
|
+
transform: translateX(-50%);
|
|
37720
|
+
|
|
37721
|
+
/* Add delay */
|
|
37722
|
+
opacity: 0;
|
|
37723
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37724
|
+
}
|
|
37725
|
+
|
|
37726
|
+
/* Tooltip arrow */
|
|
37727
|
+
&[data-tooltip]:hover::after {
|
|
37728
|
+
content: "";
|
|
37729
|
+
position: fixed;
|
|
37730
|
+
top: calc(
|
|
37731
|
+
var(--cell-top, 0px) - var(--cell-offset, 40px) + var(--cell-height, 50px)
|
|
37732
|
+
);
|
|
37733
|
+
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37734
|
+
transform: translateX(-50%);
|
|
37735
|
+
border: 8px solid transparent;
|
|
37736
|
+
border-top-color: white;
|
|
37737
|
+
z-index: 1001;
|
|
37738
|
+
pointer-events: none;
|
|
37739
|
+
|
|
37740
|
+
/* Add delay */
|
|
37741
|
+
opacity: 0;
|
|
37742
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37743
|
+
}
|
|
37744
|
+
|
|
37745
|
+
&[title] {
|
|
37746
|
+
&:hover::after {
|
|
37747
|
+
font-family: "Poppins", sans-serif;
|
|
37748
|
+
font-size: 14px;
|
|
37720
37749
|
}
|
|
37721
|
-
|
|
37722
|
-
|
|
37750
|
+
}
|
|
37751
|
+
|
|
37752
|
+
${props => {
|
|
37723
37753
|
switch (props.$fieldType) {
|
|
37724
|
-
case
|
|
37754
|
+
case "currency":
|
|
37725
37755
|
return css`
|
|
37726
|
-
|
|
37727
|
-
|
|
37728
|
-
|
|
37729
|
-
case
|
|
37756
|
+
font-family: "Poppins", sans-serif;
|
|
37757
|
+
font-weight: 500;
|
|
37758
|
+
`;
|
|
37759
|
+
case "number":
|
|
37730
37760
|
return css`
|
|
37731
|
-
|
|
37732
|
-
|
|
37733
|
-
`;
|
|
37761
|
+
font-family: "Poppins", sans-serif;
|
|
37762
|
+
`;
|
|
37734
37763
|
default:
|
|
37735
|
-
return
|
|
37764
|
+
return "";
|
|
37736
37765
|
}
|
|
37737
37766
|
}}
|
|
37738
37767
|
`;
|
|
37739
37768
|
|
|
37740
37769
|
// Loading skeleton styles
|
|
37741
37770
|
styled.td`
|
|
37742
|
-
|
|
37743
|
-
|
|
37771
|
+
padding: 12px 16px;
|
|
37772
|
+
font-family: "Poppins", sans-serif;
|
|
37744
37773
|
`;
|
|
37745
37774
|
styled.div`
|
|
37746
|
-
|
|
37747
|
-
|
|
37748
|
-
|
|
37749
|
-
|
|
37750
|
-
|
|
37751
|
-
|
|
37752
|
-
|
|
37753
|
-
|
|
37754
|
-
|
|
37755
|
-
|
|
37756
|
-
|
|
37775
|
+
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
|
37776
|
+
background-size: 200% 100%;
|
|
37777
|
+
animation: loading 1.5s infinite;
|
|
37778
|
+
height: 20px;
|
|
37779
|
+
border-radius: 4px;
|
|
37780
|
+
width: ${props => props.$width || "100%"};
|
|
37781
|
+
font-family: "Poppins", sans-serif;
|
|
37782
|
+
|
|
37783
|
+
@keyframes loading {
|
|
37784
|
+
0% {
|
|
37785
|
+
background-position: 200% 0;
|
|
37786
|
+
}
|
|
37787
|
+
100% {
|
|
37788
|
+
background-position: -200% 0;
|
|
37757
37789
|
}
|
|
37790
|
+
}
|
|
37758
37791
|
`;
|
|
37759
37792
|
styled.div`
|
|
37760
|
-
|
|
37761
|
-
|
|
37762
|
-
|
|
37793
|
+
display: flex;
|
|
37794
|
+
align-items: center;
|
|
37795
|
+
gap: 8px;
|
|
37763
37796
|
`;
|
|
37764
37797
|
const ButtonWrapper = styled.div`
|
|
37765
|
-
|
|
37766
|
-
|
|
37767
|
-
|
|
37768
|
-
|
|
37798
|
+
display: inline-block;
|
|
37799
|
+
position: relative;
|
|
37800
|
+
|
|
37801
|
+
${tooltipStyles}
|
|
37769
37802
|
`;
|
|
37770
37803
|
const SentStatus = styled.div`
|
|
37771
|
-
|
|
37772
|
-
|
|
37773
|
-
|
|
37774
|
-
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37779
|
-
|
|
37780
|
-
${tooltipStyles}
|
|
37804
|
+
display: flex;
|
|
37805
|
+
align-items: center;
|
|
37806
|
+
font-weight: 500;
|
|
37807
|
+
gap: 8px;
|
|
37808
|
+
color: #5fcc70;
|
|
37809
|
+
user-select: none;
|
|
37810
|
+
position: relative;
|
|
37811
|
+
|
|
37812
|
+
${tooltipStyles}
|
|
37781
37813
|
`;
|
|
37782
37814
|
const TrashIconWrapper = styled.div`
|
|
37783
|
-
|
|
37784
|
-
|
|
37785
|
-
|
|
37786
|
-
|
|
37787
|
-
|
|
37788
|
-
|
|
37789
|
-
|
|
37790
|
-
|
|
37791
|
-
|
|
37792
|
-
|
|
37793
|
-
|
|
37794
|
-
|
|
37795
|
-
|
|
37796
|
-
|
|
37797
|
-
|
|
37798
|
-
|
|
37799
|
-
|
|
37800
|
-
|
|
37801
|
-
|
|
37802
|
-
|
|
37803
|
-
|
|
37804
|
-
|
|
37805
|
-
|
|
37806
|
-
fill: ${props => props.$buttonColor};
|
|
37807
|
-
}
|
|
37815
|
+
cursor: pointer;
|
|
37816
|
+
transition: color 0.2s ease;
|
|
37817
|
+
display: inline-flex;
|
|
37818
|
+
align-items: center;
|
|
37819
|
+
justify-content: center;
|
|
37820
|
+
width: 100%;
|
|
37821
|
+
height: 100%;
|
|
37822
|
+
position: relative;
|
|
37823
|
+
|
|
37824
|
+
${tooltipStyles}
|
|
37825
|
+
|
|
37826
|
+
/* Override tooltip position to move left */
|
|
37827
|
+
&[data-tooltip]:hover::before {
|
|
37828
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37829
|
+
}
|
|
37830
|
+
|
|
37831
|
+
&[data-tooltip]:hover::after {
|
|
37832
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37833
|
+
}
|
|
37834
|
+
|
|
37835
|
+
&:hover {
|
|
37836
|
+
svg path {
|
|
37837
|
+
fill: ${props => props.$buttonColor};
|
|
37808
37838
|
}
|
|
37839
|
+
}
|
|
37809
37840
|
`;
|
|
37810
37841
|
const DisabledTrashIconWrapper = styled.div`
|
|
37811
|
-
|
|
37812
|
-
|
|
37813
|
-
|
|
37814
|
-
|
|
37815
|
-
|
|
37816
|
-
|
|
37817
|
-
|
|
37818
|
-
|
|
37819
|
-
|
|
37820
|
-
|
|
37821
|
-
|
|
37822
|
-
|
|
37823
|
-
|
|
37824
|
-
|
|
37825
|
-
|
|
37826
|
-
|
|
37827
|
-
|
|
37828
|
-
|
|
37829
|
-
|
|
37830
|
-
|
|
37831
|
-
|
|
37832
|
-
}
|
|
37842
|
+
display: inline-flex;
|
|
37843
|
+
align-items: center;
|
|
37844
|
+
justify-content: center;
|
|
37845
|
+
width: 100%;
|
|
37846
|
+
height: 100%;
|
|
37847
|
+
position: relative;
|
|
37848
|
+
|
|
37849
|
+
${tooltipStyles}
|
|
37850
|
+
|
|
37851
|
+
/* Override tooltip position to move left */
|
|
37852
|
+
&[data-tooltip]:hover::before {
|
|
37853
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37854
|
+
}
|
|
37855
|
+
|
|
37856
|
+
&[data-tooltip]:hover::after {
|
|
37857
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37858
|
+
}
|
|
37859
|
+
|
|
37860
|
+
svg {
|
|
37861
|
+
color: #d9d9d9;
|
|
37862
|
+
}
|
|
37833
37863
|
`;
|
|
37834
37864
|
|
|
37835
37865
|
// OkIcon.jsx
|
|
@@ -37898,7 +37928,8 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
37898
37928
|
buttonColor,
|
|
37899
37929
|
onDeleteClick,
|
|
37900
37930
|
resetFocus = false,
|
|
37901
|
-
onFocusChange
|
|
37931
|
+
onFocusChange,
|
|
37932
|
+
indexToShimmer = 0
|
|
37902
37933
|
}, ref) => {
|
|
37903
37934
|
const [hoveredRowIndex, setHoveredRowIndex] = useState(null);
|
|
37904
37935
|
const [focusedRowIndex, setFocusedRowIndex] = useState(null);
|
|
@@ -38132,6 +38163,7 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
38132
38163
|
return /*#__PURE__*/React$1.createElement(StyledTableBody, null, data.map((row, rowIndex) => /*#__PURE__*/React$1.createElement(TableRow, {
|
|
38133
38164
|
key: rowIndex,
|
|
38134
38165
|
"data-row-index": rowIndex,
|
|
38166
|
+
className: indexToShimmer === rowIndex ? 'shimmer-row' : '',
|
|
38135
38167
|
$isFocused: focusedRowIndex === rowIndex,
|
|
38136
38168
|
onMouseEnter: () => setHoveredRowIndex(rowIndex),
|
|
38137
38169
|
onMouseLeave: () => setHoveredRowIndex(null),
|
|
@@ -41366,6 +41398,7 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
41366
41398
|
showNoDataInSearch = false,
|
|
41367
41399
|
noDataInSearchTitle = "No Results Found",
|
|
41368
41400
|
noDataInSearchMessage = "Try to refine your query and search again",
|
|
41401
|
+
indexToShimmer = -1,
|
|
41369
41402
|
// New props for focus management
|
|
41370
41403
|
resetTableFocus = false,
|
|
41371
41404
|
onTableFocusChange = () => {},
|
|
@@ -41466,6 +41499,7 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
41466
41499
|
}), columns.length > 0 && data.length > 0 && /*#__PURE__*/React$1.createElement(TableBody, {
|
|
41467
41500
|
ref: tableBodyRef,
|
|
41468
41501
|
columns: columns,
|
|
41502
|
+
indexToShimmer: indexToShimmer,
|
|
41469
41503
|
data: data,
|
|
41470
41504
|
onRowClick: onRowClick,
|
|
41471
41505
|
onSendClick: onSendClick,
|