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.js
CHANGED
|
@@ -23904,22 +23904,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
23904
23904
|
position: absolute;
|
|
23905
23905
|
`;
|
|
23906
23906
|
|
|
23907
|
-
const QuickFilterDropdownSingle =
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
|
|
23917
|
-
|
|
23918
|
-
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
} = _ref;
|
|
23907
|
+
const QuickFilterDropdownSingle = ({
|
|
23908
|
+
label,
|
|
23909
|
+
hoverColor,
|
|
23910
|
+
options,
|
|
23911
|
+
selectedValue,
|
|
23912
|
+
placeHolder,
|
|
23913
|
+
onChange,
|
|
23914
|
+
disabled,
|
|
23915
|
+
width,
|
|
23916
|
+
error,
|
|
23917
|
+
errorMessage,
|
|
23918
|
+
xIconShow,
|
|
23919
|
+
labelColor,
|
|
23920
|
+
showLabelOnTop
|
|
23921
|
+
}) => {
|
|
23923
23922
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
23924
23923
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
23925
23924
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24316,24 +24315,23 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24316
24315
|
cursor: pointer;
|
|
24317
24316
|
`;
|
|
24318
24317
|
|
|
24319
|
-
const QuickFilterDropdownMultiSelection =
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24326
|
-
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
} = _ref;
|
|
24318
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24319
|
+
label,
|
|
24320
|
+
labelEmptyValue,
|
|
24321
|
+
options,
|
|
24322
|
+
selectedValue,
|
|
24323
|
+
placeHolder,
|
|
24324
|
+
onChange,
|
|
24325
|
+
required,
|
|
24326
|
+
disabled,
|
|
24327
|
+
width,
|
|
24328
|
+
error,
|
|
24329
|
+
errorMessage,
|
|
24330
|
+
labelColor,
|
|
24331
|
+
xIconShow,
|
|
24332
|
+
checkBoxColor,
|
|
24333
|
+
showLabelOnTop
|
|
24334
|
+
}) => {
|
|
24337
24335
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24338
24336
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24339
24337
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -35565,9 +35563,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35565
35563
|
}
|
|
35566
35564
|
`;
|
|
35567
35565
|
|
|
35568
|
-
/**
|
|
35569
|
-
* ToggleSwitch component for on/off states.
|
|
35570
|
-
* Supports small/large sizes and disabled state.
|
|
35566
|
+
/**
|
|
35567
|
+
* ToggleSwitch component for on/off states.
|
|
35568
|
+
* Supports small/large sizes and disabled state.
|
|
35571
35569
|
*/
|
|
35572
35570
|
function ToggleSwitch(_ref) {
|
|
35573
35571
|
let {
|
|
@@ -37549,94 +37547,170 @@ const TableHeader = ({
|
|
|
37549
37547
|
|
|
37550
37548
|
// Shared tooltip styles
|
|
37551
37549
|
const tooltipStyles = styled.css`
|
|
37552
|
-
|
|
37553
|
-
|
|
37554
|
-
|
|
37555
|
-
|
|
37556
|
-
|
|
37557
|
-
|
|
37558
|
-
|
|
37559
|
-
|
|
37560
|
-
|
|
37561
|
-
|
|
37562
|
-
|
|
37563
|
-
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
|
-
|
|
37570
|
-
|
|
37571
|
-
|
|
37572
|
-
|
|
37573
|
-
|
|
37574
|
-
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37578
|
-
|
|
37550
|
+
/* CSS-only tooltip */
|
|
37551
|
+
&[data-tooltip]:hover::before {
|
|
37552
|
+
content: attr(data-tooltip);
|
|
37553
|
+
position: fixed;
|
|
37554
|
+
background-color: white;
|
|
37555
|
+
color: #333;
|
|
37556
|
+
padding: 10px 16px;
|
|
37557
|
+
border-radius: 4px;
|
|
37558
|
+
font-family: "Poppins", sans-serif;
|
|
37559
|
+
font-size: 14px;
|
|
37560
|
+
font-weight: 400;
|
|
37561
|
+
z-index: 1000;
|
|
37562
|
+
pointer-events: none;
|
|
37563
|
+
width: 200px;
|
|
37564
|
+
white-space: pre-wrap;
|
|
37565
|
+
word-wrap: break-word;
|
|
37566
|
+
line-height: 1.8;
|
|
37567
|
+
box-shadow:
|
|
37568
|
+
0 -2px 8px rgba(0, 0, 0, 0.15),
|
|
37569
|
+
0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37570
|
+
|
|
37571
|
+
/* Position above the element - using dynamic offset */
|
|
37572
|
+
top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px));
|
|
37573
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2);
|
|
37574
|
+
transform: translateX(-50%);
|
|
37575
|
+
|
|
37576
|
+
/* Add delay */
|
|
37577
|
+
opacity: 0;
|
|
37578
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37579
|
+
}
|
|
37580
|
+
|
|
37581
|
+
/* Tooltip arrow */
|
|
37582
|
+
&[data-tooltip]:hover::after {
|
|
37583
|
+
content: "";
|
|
37584
|
+
position: fixed;
|
|
37585
|
+
top: calc(
|
|
37586
|
+
var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) +
|
|
37587
|
+
var(--tooltip-height, 50px)
|
|
37588
|
+
); /* Use estimated tooltip height */
|
|
37589
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2);
|
|
37590
|
+
transform: translateX(-50%);
|
|
37591
|
+
border: 8px solid transparent;
|
|
37592
|
+
border-top-color: white;
|
|
37593
|
+
z-index: 1001;
|
|
37594
|
+
pointer-events: none;
|
|
37595
|
+
|
|
37596
|
+
/* Add delay */
|
|
37597
|
+
opacity: 0;
|
|
37598
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37599
|
+
}
|
|
37600
|
+
|
|
37601
|
+
@keyframes showTooltip {
|
|
37602
|
+
to {
|
|
37603
|
+
opacity: 1;
|
|
37579
37604
|
}
|
|
37580
|
-
|
|
37581
|
-
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37585
|
-
|
|
37586
|
-
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
border-top-color: white;
|
|
37590
|
-
z-index: 1001;
|
|
37591
|
-
pointer-events: none;
|
|
37592
|
-
|
|
37593
|
-
/* Add delay */
|
|
37594
|
-
opacity: 0;
|
|
37595
|
-
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37605
|
+
}
|
|
37606
|
+
`;
|
|
37607
|
+
|
|
37608
|
+
// Simple new row highlight animation
|
|
37609
|
+
const shimmerAnimation = styled.css`
|
|
37610
|
+
@keyframes newRowHighlight {
|
|
37611
|
+
0% {
|
|
37612
|
+
background-color: #ffffff;
|
|
37613
|
+
border-left-color: transparent;
|
|
37596
37614
|
}
|
|
37597
|
-
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
|
|
37601
|
-
|
|
37615
|
+
15% {
|
|
37616
|
+
background-color: #f0f8f0;
|
|
37617
|
+
border-left-color: #5fcc70;
|
|
37618
|
+
}
|
|
37619
|
+
85% {
|
|
37620
|
+
background-color: #f0f8f0;
|
|
37621
|
+
border-left-color: #5fcc70;
|
|
37602
37622
|
}
|
|
37623
|
+
100% {
|
|
37624
|
+
background-color: #ffffff;
|
|
37625
|
+
border-left-color: transparent;
|
|
37626
|
+
}
|
|
37627
|
+
}
|
|
37603
37628
|
`;
|
|
37604
37629
|
const StyledTableBody = styled__default["default"].tbody`
|
|
37605
|
-
|
|
37606
|
-
|
|
37607
|
-
|
|
37630
|
+
background-color: white;
|
|
37631
|
+
font-family: "Poppins", sans-serif;
|
|
37632
|
+
position: relative;
|
|
37608
37633
|
`;
|
|
37609
37634
|
const TableRow = styled__default["default"].tr`
|
|
37610
|
-
|
|
37611
|
-
|
|
37612
|
-
|
|
37613
|
-
|
|
37614
|
-
|
|
37615
|
-
|
|
37616
|
-
|
|
37617
|
-
|
|
37618
|
-
|
|
37619
|
-
|
|
37620
|
-
|
|
37621
|
-
|
|
37622
|
-
|
|
37623
|
-
|
|
37624
|
-
|
|
37625
|
-
|
|
37626
|
-
|
|
37627
|
-
|
|
37628
|
-
|
|
37629
|
-
|
|
37630
|
-
|
|
37631
|
-
}
|
|
37635
|
+
border-bottom: 1px solid #f2f2f2;
|
|
37636
|
+
transition: all 0.3s ease;
|
|
37637
|
+
font-family: "Poppins", sans-serif;
|
|
37638
|
+
position: relative;
|
|
37639
|
+
|
|
37640
|
+
&:hover {
|
|
37641
|
+
background-color: #e6f0f0;
|
|
37642
|
+
}
|
|
37643
|
+
|
|
37644
|
+
&:last-child {
|
|
37645
|
+
border-bottom: none;
|
|
37646
|
+
}
|
|
37647
|
+
|
|
37648
|
+
/* Simple new row highlight */
|
|
37649
|
+
&.shimmer-row {
|
|
37650
|
+
border-left: 3px solid transparent;
|
|
37651
|
+
animation: newRowHighlight 3s ease-out;
|
|
37652
|
+
animation-fill-mode: both;
|
|
37653
|
+
}
|
|
37654
|
+
|
|
37655
|
+
${shimmerAnimation}
|
|
37632
37656
|
`;
|
|
37633
37657
|
styled__default["default"].div`
|
|
37658
|
+
position: absolute;
|
|
37659
|
+
background-color: white;
|
|
37660
|
+
color: #333;
|
|
37661
|
+
padding: 10px 16px;
|
|
37662
|
+
border-radius: 4px;
|
|
37663
|
+
font-family: "Poppins", sans-serif;
|
|
37664
|
+
font-size: 14px;
|
|
37665
|
+
font-weight: 400;
|
|
37666
|
+
z-index: 1000;
|
|
37667
|
+
pointer-events: none;
|
|
37668
|
+
width: 200px;
|
|
37669
|
+
white-space: pre-wrap;
|
|
37670
|
+
word-wrap: break-word;
|
|
37671
|
+
line-height: 1.8;
|
|
37672
|
+
box-shadow:
|
|
37673
|
+
0 -2px 8px rgba(0, 0, 0, 0.15),
|
|
37674
|
+
0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37675
|
+
transform: translate(-50%, -100%);
|
|
37676
|
+
|
|
37677
|
+
&::after {
|
|
37678
|
+
content: "";
|
|
37634
37679
|
position: absolute;
|
|
37680
|
+
top: 100%;
|
|
37681
|
+
left: 50%;
|
|
37682
|
+
transform: translateX(-50%);
|
|
37683
|
+
border: 8px solid transparent;
|
|
37684
|
+
border-top-color: white;
|
|
37685
|
+
}
|
|
37686
|
+
`;
|
|
37687
|
+
const TableCell = styled__default["default"].td`
|
|
37688
|
+
padding: 12px 16px;
|
|
37689
|
+
color: ${props => props.$color || "#212121"};
|
|
37690
|
+
font-size: 14px;
|
|
37691
|
+
font-weight: 400;
|
|
37692
|
+
font-family: "Poppins", sans-serif;
|
|
37693
|
+
line-height: 30px;
|
|
37694
|
+
height: 32px;
|
|
37695
|
+
vertical-align: middle;
|
|
37696
|
+
white-space: nowrap;
|
|
37697
|
+
overflow: hidden;
|
|
37698
|
+
text-overflow: ellipsis;
|
|
37699
|
+
min-width: ${props => props.$minWidth || "80px"};
|
|
37700
|
+
max-width: ${props => props.$maxWidth || "300px"};
|
|
37701
|
+
width: auto;
|
|
37702
|
+
position: relative;
|
|
37703
|
+
transition: all 0.3s ease;
|
|
37704
|
+
|
|
37705
|
+
/* CSS-only tooltip */
|
|
37706
|
+
&[data-tooltip]:hover::before {
|
|
37707
|
+
content: attr(data-tooltip);
|
|
37708
|
+
position: fixed;
|
|
37635
37709
|
background-color: white;
|
|
37636
37710
|
color: #333;
|
|
37637
37711
|
padding: 10px 16px;
|
|
37638
37712
|
border-radius: 4px;
|
|
37639
|
-
font-family:
|
|
37713
|
+
font-family: "Poppins", sans-serif;
|
|
37640
37714
|
font-size: 14px;
|
|
37641
37715
|
font-weight: 400;
|
|
37642
37716
|
z-index: 1000;
|
|
@@ -37645,201 +37719,157 @@ styled__default["default"].div`
|
|
|
37645
37719
|
white-space: pre-wrap;
|
|
37646
37720
|
word-wrap: break-word;
|
|
37647
37721
|
line-height: 1.8;
|
|
37648
|
-
|
|
37649
|
-
|
|
37650
|
-
|
|
37722
|
+
box-shadow:
|
|
37723
|
+
0 -2px 8px rgba(0, 0, 0, 0.15),
|
|
37724
|
+
0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37651
37725
|
|
|
37652
|
-
|
|
37653
|
-
|
|
37654
|
-
|
|
37655
|
-
|
|
37656
|
-
|
|
37657
|
-
|
|
37658
|
-
|
|
37659
|
-
|
|
37660
|
-
|
|
37661
|
-
|
|
37662
|
-
|
|
37663
|
-
|
|
37664
|
-
|
|
37665
|
-
|
|
37666
|
-
|
|
37667
|
-
|
|
37668
|
-
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
|
|
37672
|
-
|
|
37673
|
-
|
|
37674
|
-
|
|
37675
|
-
|
|
37676
|
-
|
|
37677
|
-
|
|
37678
|
-
|
|
37679
|
-
|
|
37680
|
-
|
|
37681
|
-
|
|
37682
|
-
|
|
37683
|
-
|
|
37684
|
-
|
|
37685
|
-
padding: 10px 16px;
|
|
37686
|
-
border-radius: 4px;
|
|
37687
|
-
font-family: 'Poppins', sans-serif;
|
|
37688
|
-
font-size: 14px;
|
|
37689
|
-
font-weight: 400;
|
|
37690
|
-
z-index: 1000;
|
|
37691
|
-
pointer-events: none;
|
|
37692
|
-
width: 200px;
|
|
37693
|
-
white-space: pre-wrap;
|
|
37694
|
-
word-wrap: break-word;
|
|
37695
|
-
line-height: 1.8;
|
|
37696
|
-
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
37697
|
-
|
|
37698
|
-
/* Position above the element - using dynamic offset */
|
|
37699
|
-
top: calc(var(--cell-top, 0px) - var(--cell-offset, 40px));
|
|
37700
|
-
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37701
|
-
transform: translateX(-50%);
|
|
37702
|
-
|
|
37703
|
-
/* Add delay */
|
|
37704
|
-
opacity: 0;
|
|
37705
|
-
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37706
|
-
}
|
|
37707
|
-
|
|
37708
|
-
/* Tooltip arrow */
|
|
37709
|
-
&[data-tooltip]:hover::after {
|
|
37710
|
-
content: '';
|
|
37711
|
-
position: fixed;
|
|
37712
|
-
top: calc(var(--cell-top, 0px) - var(--cell-offset, 40px) + var(--cell-height, 50px));
|
|
37713
|
-
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37714
|
-
transform: translateX(-50%);
|
|
37715
|
-
border: 8px solid transparent;
|
|
37716
|
-
border-top-color: white;
|
|
37717
|
-
z-index: 1001;
|
|
37718
|
-
pointer-events: none;
|
|
37719
|
-
|
|
37720
|
-
/* Add delay */
|
|
37721
|
-
opacity: 0;
|
|
37722
|
-
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37723
|
-
}
|
|
37724
|
-
|
|
37725
|
-
&[title] {
|
|
37726
|
-
&:hover::after {
|
|
37727
|
-
font-family: 'Poppins', sans-serif;
|
|
37728
|
-
font-size: 14px;
|
|
37729
|
-
}
|
|
37726
|
+
/* Position above the element - using dynamic offset */
|
|
37727
|
+
top: calc(var(--cell-top, 0px) - var(--cell-offset, 40px));
|
|
37728
|
+
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37729
|
+
transform: translateX(-50%);
|
|
37730
|
+
|
|
37731
|
+
/* Add delay */
|
|
37732
|
+
opacity: 0;
|
|
37733
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37734
|
+
}
|
|
37735
|
+
|
|
37736
|
+
/* Tooltip arrow */
|
|
37737
|
+
&[data-tooltip]:hover::after {
|
|
37738
|
+
content: "";
|
|
37739
|
+
position: fixed;
|
|
37740
|
+
top: calc(
|
|
37741
|
+
var(--cell-top, 0px) - var(--cell-offset, 40px) + var(--cell-height, 50px)
|
|
37742
|
+
);
|
|
37743
|
+
left: calc(var(--cell-left, 0px) + var(--cell-width, 0px) / 2);
|
|
37744
|
+
transform: translateX(-50%);
|
|
37745
|
+
border: 8px solid transparent;
|
|
37746
|
+
border-top-color: white;
|
|
37747
|
+
z-index: 1001;
|
|
37748
|
+
pointer-events: none;
|
|
37749
|
+
|
|
37750
|
+
/* Add delay */
|
|
37751
|
+
opacity: 0;
|
|
37752
|
+
animation: showTooltip 0.3s ease-in-out 0.5s forwards;
|
|
37753
|
+
}
|
|
37754
|
+
|
|
37755
|
+
&[title] {
|
|
37756
|
+
&:hover::after {
|
|
37757
|
+
font-family: "Poppins", sans-serif;
|
|
37758
|
+
font-size: 14px;
|
|
37730
37759
|
}
|
|
37731
|
-
|
|
37732
|
-
|
|
37760
|
+
}
|
|
37761
|
+
|
|
37762
|
+
${props => {
|
|
37733
37763
|
switch (props.$fieldType) {
|
|
37734
|
-
case
|
|
37764
|
+
case "currency":
|
|
37735
37765
|
return styled.css`
|
|
37736
|
-
|
|
37737
|
-
|
|
37738
|
-
|
|
37739
|
-
case
|
|
37766
|
+
font-family: "Poppins", sans-serif;
|
|
37767
|
+
font-weight: 500;
|
|
37768
|
+
`;
|
|
37769
|
+
case "number":
|
|
37740
37770
|
return styled.css`
|
|
37741
|
-
|
|
37742
|
-
|
|
37743
|
-
`;
|
|
37771
|
+
font-family: "Poppins", sans-serif;
|
|
37772
|
+
`;
|
|
37744
37773
|
default:
|
|
37745
|
-
return
|
|
37774
|
+
return "";
|
|
37746
37775
|
}
|
|
37747
37776
|
}}
|
|
37748
37777
|
`;
|
|
37749
37778
|
|
|
37750
37779
|
// Loading skeleton styles
|
|
37751
37780
|
styled__default["default"].td`
|
|
37752
|
-
|
|
37753
|
-
|
|
37781
|
+
padding: 12px 16px;
|
|
37782
|
+
font-family: "Poppins", sans-serif;
|
|
37754
37783
|
`;
|
|
37755
37784
|
styled__default["default"].div`
|
|
37756
|
-
|
|
37757
|
-
|
|
37758
|
-
|
|
37759
|
-
|
|
37760
|
-
|
|
37761
|
-
|
|
37762
|
-
|
|
37763
|
-
|
|
37764
|
-
|
|
37765
|
-
|
|
37766
|
-
|
|
37785
|
+
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
|
37786
|
+
background-size: 200% 100%;
|
|
37787
|
+
animation: loading 1.5s infinite;
|
|
37788
|
+
height: 20px;
|
|
37789
|
+
border-radius: 4px;
|
|
37790
|
+
width: ${props => props.$width || "100%"};
|
|
37791
|
+
font-family: "Poppins", sans-serif;
|
|
37792
|
+
|
|
37793
|
+
@keyframes loading {
|
|
37794
|
+
0% {
|
|
37795
|
+
background-position: 200% 0;
|
|
37796
|
+
}
|
|
37797
|
+
100% {
|
|
37798
|
+
background-position: -200% 0;
|
|
37767
37799
|
}
|
|
37800
|
+
}
|
|
37768
37801
|
`;
|
|
37769
37802
|
styled__default["default"].div`
|
|
37770
|
-
|
|
37771
|
-
|
|
37772
|
-
|
|
37803
|
+
display: flex;
|
|
37804
|
+
align-items: center;
|
|
37805
|
+
gap: 8px;
|
|
37773
37806
|
`;
|
|
37774
37807
|
const ButtonWrapper = styled__default["default"].div`
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37808
|
+
display: inline-block;
|
|
37809
|
+
position: relative;
|
|
37810
|
+
|
|
37811
|
+
${tooltipStyles}
|
|
37779
37812
|
`;
|
|
37780
37813
|
const SentStatus = styled__default["default"].div`
|
|
37781
|
-
|
|
37782
|
-
|
|
37783
|
-
|
|
37784
|
-
|
|
37785
|
-
|
|
37786
|
-
|
|
37787
|
-
|
|
37788
|
-
|
|
37789
|
-
|
|
37790
|
-
${tooltipStyles}
|
|
37814
|
+
display: flex;
|
|
37815
|
+
align-items: center;
|
|
37816
|
+
font-weight: 500;
|
|
37817
|
+
gap: 8px;
|
|
37818
|
+
color: #5fcc70;
|
|
37819
|
+
user-select: none;
|
|
37820
|
+
position: relative;
|
|
37821
|
+
|
|
37822
|
+
${tooltipStyles}
|
|
37791
37823
|
`;
|
|
37792
37824
|
const TrashIconWrapper = styled__default["default"].div`
|
|
37793
|
-
|
|
37794
|
-
|
|
37795
|
-
|
|
37796
|
-
|
|
37797
|
-
|
|
37798
|
-
|
|
37799
|
-
|
|
37800
|
-
|
|
37801
|
-
|
|
37802
|
-
|
|
37803
|
-
|
|
37804
|
-
|
|
37805
|
-
|
|
37806
|
-
|
|
37807
|
-
|
|
37808
|
-
|
|
37809
|
-
|
|
37810
|
-
|
|
37811
|
-
|
|
37812
|
-
|
|
37813
|
-
|
|
37814
|
-
|
|
37815
|
-
|
|
37816
|
-
fill: ${props => props.$buttonColor};
|
|
37817
|
-
}
|
|
37825
|
+
cursor: pointer;
|
|
37826
|
+
transition: color 0.2s ease;
|
|
37827
|
+
display: inline-flex;
|
|
37828
|
+
align-items: center;
|
|
37829
|
+
justify-content: center;
|
|
37830
|
+
width: 100%;
|
|
37831
|
+
height: 100%;
|
|
37832
|
+
position: relative;
|
|
37833
|
+
|
|
37834
|
+
${tooltipStyles}
|
|
37835
|
+
|
|
37836
|
+
/* Override tooltip position to move left */
|
|
37837
|
+
&[data-tooltip]:hover::before {
|
|
37838
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37839
|
+
}
|
|
37840
|
+
|
|
37841
|
+
&[data-tooltip]:hover::after {
|
|
37842
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37843
|
+
}
|
|
37844
|
+
|
|
37845
|
+
&:hover {
|
|
37846
|
+
svg path {
|
|
37847
|
+
fill: ${props => props.$buttonColor};
|
|
37818
37848
|
}
|
|
37849
|
+
}
|
|
37819
37850
|
`;
|
|
37820
37851
|
const DisabledTrashIconWrapper = styled__default["default"].div`
|
|
37821
|
-
|
|
37822
|
-
|
|
37823
|
-
|
|
37824
|
-
|
|
37825
|
-
|
|
37826
|
-
|
|
37827
|
-
|
|
37828
|
-
|
|
37829
|
-
|
|
37830
|
-
|
|
37831
|
-
|
|
37832
|
-
|
|
37833
|
-
|
|
37834
|
-
|
|
37835
|
-
|
|
37836
|
-
|
|
37837
|
-
|
|
37838
|
-
|
|
37839
|
-
|
|
37840
|
-
|
|
37841
|
-
|
|
37842
|
-
}
|
|
37852
|
+
display: inline-flex;
|
|
37853
|
+
align-items: center;
|
|
37854
|
+
justify-content: center;
|
|
37855
|
+
width: 100%;
|
|
37856
|
+
height: 100%;
|
|
37857
|
+
position: relative;
|
|
37858
|
+
|
|
37859
|
+
${tooltipStyles}
|
|
37860
|
+
|
|
37861
|
+
/* Override tooltip position to move left */
|
|
37862
|
+
&[data-tooltip]:hover::before {
|
|
37863
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37864
|
+
}
|
|
37865
|
+
|
|
37866
|
+
&[data-tooltip]:hover::after {
|
|
37867
|
+
left: calc(var(--tooltip-left, 0px) + var(--tooltip-width, 0px) / 2 - 50px);
|
|
37868
|
+
}
|
|
37869
|
+
|
|
37870
|
+
svg {
|
|
37871
|
+
color: #d9d9d9;
|
|
37872
|
+
}
|
|
37843
37873
|
`;
|
|
37844
37874
|
|
|
37845
37875
|
// OkIcon.jsx
|
|
@@ -37908,7 +37938,8 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
37908
37938
|
buttonColor,
|
|
37909
37939
|
onDeleteClick,
|
|
37910
37940
|
resetFocus = false,
|
|
37911
|
-
onFocusChange
|
|
37941
|
+
onFocusChange,
|
|
37942
|
+
indexToShimmer = 0
|
|
37912
37943
|
}, ref) => {
|
|
37913
37944
|
const [hoveredRowIndex, setHoveredRowIndex] = React$1.useState(null);
|
|
37914
37945
|
const [focusedRowIndex, setFocusedRowIndex] = React$1.useState(null);
|
|
@@ -38142,6 +38173,7 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
38142
38173
|
return /*#__PURE__*/React__default["default"].createElement(StyledTableBody, null, data.map((row, rowIndex) => /*#__PURE__*/React__default["default"].createElement(TableRow, {
|
|
38143
38174
|
key: rowIndex,
|
|
38144
38175
|
"data-row-index": rowIndex,
|
|
38176
|
+
className: indexToShimmer === rowIndex ? 'shimmer-row' : '',
|
|
38145
38177
|
$isFocused: focusedRowIndex === rowIndex,
|
|
38146
38178
|
onMouseEnter: () => setHoveredRowIndex(rowIndex),
|
|
38147
38179
|
onMouseLeave: () => setHoveredRowIndex(null),
|
|
@@ -41376,6 +41408,7 @@ const Table = /*#__PURE__*/React$1.forwardRef((props, ref) => {
|
|
|
41376
41408
|
showNoDataInSearch = false,
|
|
41377
41409
|
noDataInSearchTitle = "No Results Found",
|
|
41378
41410
|
noDataInSearchMessage = "Try to refine your query and search again",
|
|
41411
|
+
indexToShimmer = -1,
|
|
41379
41412
|
// New props for focus management
|
|
41380
41413
|
resetTableFocus = false,
|
|
41381
41414
|
onTableFocusChange = () => {},
|
|
@@ -41476,6 +41509,7 @@ const Table = /*#__PURE__*/React$1.forwardRef((props, ref) => {
|
|
|
41476
41509
|
}), columns.length > 0 && data.length > 0 && /*#__PURE__*/React__default["default"].createElement(TableBody, {
|
|
41477
41510
|
ref: tableBodyRef,
|
|
41478
41511
|
columns: columns,
|
|
41512
|
+
indexToShimmer: indexToShimmer,
|
|
41479
41513
|
data: data,
|
|
41480
41514
|
onRowClick: onRowClick,
|
|
41481
41515
|
onSendClick: onSendClick,
|