From 85092d6a36987ba944b2774858993b631b4f1d06 Mon Sep 17 00:00:00 2001 From: Chaitanya Deorukhkar Date: Fri, 24 Nov 2023 14:46:21 +0530 Subject: [PATCH] add tests for isLoading and isRefreshing --- .../Table/__tests__/Table.web.test.tsx | 132 + .../__snapshots__/Table.web.test.tsx.snap | 3065 +++++++++++++---- 2 files changed, 2591 insertions(+), 606 deletions(-) diff --git a/packages/blade/src/components/Table/__tests__/Table.web.test.tsx b/packages/blade/src/components/Table/__tests__/Table.web.test.tsx index 6184e430909..ff7b1c82663 100644 --- a/packages/blade/src/components/Table/__tests__/Table.web.test.tsx +++ b/packages/blade/src/components/Table/__tests__/Table.web.test.tsx @@ -387,6 +387,138 @@ describe('', () => { expect(container).toMatchSnapshot(); }); + it('should render table with surfaceLevel', () => { + const { container } = renderWithTheme( +
+ {(tableData) => ( + <> + + + Payment ID + Amount + Status + Type + Method + Name + + + + {tableData.map((tableItem, index) => ( + + {tableItem.paymentId} + {tableItem.amount} + {tableItem.status} + {tableItem.type} + {tableItem.method} + {tableItem.name} + + ))} + + + + - + - + - + - + - + - + + + + )} +
, + ); + expect(container).toMatchSnapshot(); + }); + + it('should render table with isLoading', () => { + const { container } = renderWithTheme( + + {(tableData) => ( + <> + + + Payment ID + Amount + Status + Type + Method + Name + + + + {tableData.map((tableItem, index) => ( + + {tableItem.paymentId} + {tableItem.amount} + {tableItem.status} + {tableItem.type} + {tableItem.method} + {tableItem.name} + + ))} + + + + - + - + - + - + - + - + + + + )} +
, + ); + expect(container).toMatchSnapshot(); + }); + + it('should render table with isRefreshing', () => { + const { container } = renderWithTheme( + + {(tableData) => ( + <> + + + Payment ID + Amount + Status + Type + Method + Name + + + + {tableData.map((tableItem, index) => ( + + {tableItem.paymentId} + {tableItem.amount} + {tableItem.status} + {tableItem.type} + {tableItem.method} + {tableItem.name} + + ))} + + + + - + - + - + - + - + - + + + + )} +
, + ); + expect(container).toMatchSnapshot(); + }); + it('should render table with sticky header, footer & first column', () => { const { container } = renderWithTheme( should render table with comfortable rowDensity 1`] = ` `; -exports[`
should render table with showStripedRows 1`] = ` +exports[`
should render table with isLoading 1`] = ` +.c0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} + +.c1 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.c2 { + padding: 1px; + width: -webkit-max-content; + width: -moz-max-content; + width: max-content; + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-animation: eoUyJr 900ms cubic-bezier(0.5,0,0.3,1.5) infinite; + animation: eoUyJr 900ms cubic-bezier(0.5,0,0.3,1.5) infinite; +} + +
+
+
+
+
+ +
+
+
+
+
+`; + +exports[`
should render table with isRefreshing 1`] = ` .c0 { -webkit-flex: 1; -ms-flex: 1; @@ -2219,7 +2317,7 @@ exports[`
should render table with showStripedRows 1`] = ` position: relative; } -.c7 { +.c1 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2228,10 +2326,44 @@ exports[`
should render table with showStripedRows 1`] = ` -webkit-box-align: center; -ms-flex-align: center; align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + position: absolute; + z-index: 3; height: 100%; + width: 100%; + background-color: hsla(214,15%,18%,0.64); } -.c8 { +.c3 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.c11 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 100%; +} + +.c12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2246,7 +2378,20 @@ exports[`
should render table with showStripedRows 1`] = ` pointer-events: auto; } -.c3 { +.c4 { + padding: 1px; + width: -webkit-max-content; + width: -moz-max-content; + width: max-content; + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-animation: eoUyJr 900ms cubic-bezier(0.5,0,0.3,1.5) infinite; + animation: eoUyJr 900ms cubic-bezier(0.5,0,0.3,1.5) infinite; +} + +.c7 { color: hsla(217,56%,17%,1); font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 0.875rem; @@ -2259,7 +2404,7 @@ exports[`
should render table with showStripedRows 1`] = ` padding: 0; } -.c10 { +.c14 { color: hsla(217,56%,17%,1); font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 0.875rem; @@ -2272,61 +2417,59 @@ exports[`
should render table with showStripedRows 1`] = ` padding: 0; } -.c4.c4.c4 { +.c2 { + opacity: 1; + -webkit-transition: opacity 200ms; + transition: opacity 200ms; +} + +.c8.c8.c8 { border: none; -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); } -.c4.c4.c4 tr:last-child .cell-wrapper { +.c8.c8.c8 tr:last-child .cell-wrapper { border-bottom: none; } -.c4.c4.c4 .row-select-single-selected .cell-wrapper-base, -.c4.c4.c4 .row-select-selected .cell-wrapper-base { +.c8.c8.c8 .row-select-single-selected .cell-wrapper-base, +.c8.c8.c8 .row-select-selected .cell-wrapper-base { background-color: hsla(218,89%,51%,0.09); } -.c4.c4.c4 .row-select-single-selected:hover:not(.disabled-row) .cell-wrapper-base, -.c4.c4.c4 .row-select-selected:hover:not(.disabled-row) .cell-wrapper-base { +.c8.c8.c8 .row-select-single-selected:hover:not(.disabled-row) .cell-wrapper-base, +.c8.c8.c8 .row-select-selected:hover:not(.disabled-row) .cell-wrapper-base { background-color: hsla(218,89%,51%,0.18); } -.c4.c4.c4 .row-select-single-selected:focus:not(.disabled-row) .cell-wrapper-base, -.c4.c4.c4 .row-select-selected:focus:not(.disabled-row) .cell-wrapper-base { +.c8.c8.c8 .row-select-single-selected:focus:not(.disabled-row) .cell-wrapper-base, +.c8.c8.c8 .row-select-selected:focus:not(.disabled-row) .cell-wrapper-base { background-color: hsla(218,89%,51%,0.09); } -.c4.c4.c4 .row-select-single-selected:active:not(.disabled-row) .cell-wrapper-base, -.c4.c4.c4 .row-select-selected:active:not(.disabled-row) .cell-wrapper-base { +.c8.c8.c8 .row-select-single-selected:active:not(.disabled-row) .cell-wrapper-base, +.c8.c8.c8 .row-select-selected:active:not(.disabled-row) .cell-wrapper-base { background-color: hsla(218,89%,51%,0.18); } -.c4.c4.c4 tr:nth-child(even) .cell-wrapper { - background-color: hsla(216,15%,54%,0.09); -} - -.c4.c4.c4 tr:nth-child(even) .cell-wrapper-base { - background-color: transparent; -} - -.c6.c6.c6 { +.c10.c10.c10 { height: 100%; background-color: hsla(0,0%,100%,1); } -.c6.c6.c6 > div:first-child { +.c10.c10.c10 > div:first-child { -webkit-align-self: stretch; -ms-flex-item-align: stretch; align-self: stretch; } -.c6.c6.c6:focus-visible { +.c10.c10.c10:focus-visible { outline: none; box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; } -.c9.c9.c9 { +.c13.c13.c13 { -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); background-color: transparent; @@ -2335,26 +2478,29 @@ exports[`
should render table with showStripedRows 1`] = ` padding-left: 12px; padding-right: 12px; height: 100%; + border-bottom-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; } -.c5.c5.c5 { +.c9.c9.c9 { background-color: transparent; } -.c5.c5.c5:focus { +.c9.c9.c9:focus { outline: none; box-shadow: 0 0 0 2px hsla(218,89%,51%,0.09); } -.c11.c11.c11 { +.c15.c15.c15 { background-color: hsla(216,15%,54%,0.09); } -.c11.c11.c11 tr:last-child th { +.c15.c15.c15 tr:last-child th { border-bottom: none; } -.c12.c12.c12 { +.c16.c16.c16 { height: 100%; background-color: hsla(0,0%,100%,1); border-bottom-width: 1px; @@ -2365,7 +2511,7 @@ exports[`
should render table with showStripedRows 1`] = ` border-top-style: solid; } -.c12.c12.c12 > div { +.c16.c16.c16 > div { background-color: hsla(216,15%,54%,0.09); display: -webkit-box; display: -webkit-flex; @@ -2381,11 +2527,11 @@ exports[`
should render table with showStripedRows 1`] = ` padding-right: 12px; } -.c1.c1.c1 tr:first-child th { +.c5.c5.c5 tr:first-child th { border-top: none; } -.c2.c2.c2 { +.c6.c6.c6 { background-color: hsla(0,0%,100%,1); height: 100%; border-bottom-width: 1px; @@ -2397,7 +2543,7 @@ exports[`
should render table with showStripedRows 1`] = ` cursor: auto; } -.c2.c2.c2 > div { +.c6.c6.c6 > div { background-color: hsla(216,15%,54%,0.09); display: -webkit-box; display: -webkit-flex; @@ -2421,37 +2567,37 @@ exports[`
should render table with showStripedRows 1`] = ` padding-right: 12px; } -.c2.c2.c2:focus-visible { +.c6.c6.c6:focus-visible { box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; outline: none; } @media screen and (min-width:320px) { - .c8 { + .c12 { pointer-events: auto; } } @media screen and (min-width:480px) { - .c8 { + .c12 { pointer-events: auto; } } @media screen and (min-width:768px) { - .c8 { + .c12 { pointer-events: auto; } } @media screen and (min-width:1024px) { - .c8 { + .c12 { pointer-events: auto; } } @media screen and (min-width:1200px) { - .c8 { + .c12 { pointer-events: auto; } } @@ -2461,6 +2607,54 @@ exports[`
should render table with showStripedRows 1`] = ` class="c0" data-blade-component="table" > +
+
+
+
+ +
+
+
+
should render table with showStripedRows 1`] = ` style="--data-table-library_grid-template-columns: 150px 150px 150px 150px 150px 150px;" > @@ -2480,7 +2674,7 @@ exports[`
should render table with showStripedRows 1`] = ` role="rowheader" >
should render table with showStripedRows 1`] = ` >

Payment ID @@ -2498,7 +2692,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Amount @@ -2516,7 +2710,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Status @@ -2534,7 +2728,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Type @@ -2552,7 +2746,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Method @@ -2570,7 +2764,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Name @@ -2590,18 +2784,18 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

rzp01 @@ -2628,7 +2822,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >
@@ -2650,7 +2844,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

pending @@ -2677,7 +2871,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

credit @@ -2704,7 +2898,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Netbanking @@ -2731,7 +2925,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

John Doe @@ -2759,13 +2953,13 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

rzp02 @@ -2792,7 +2986,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >
@@ -2814,7 +3008,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

pending @@ -2841,7 +3035,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

credit @@ -2868,7 +3062,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

UPI @@ -2895,7 +3089,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

Jane Doe @@ -2924,7 +3118,7 @@ exports[` should render table with showStripedRows 1`] = ` @@ -2935,7 +3129,7 @@ exports[`
should render table with showStripedRows 1`] = ` role="rowfooter" >
should render table with showStripedRows 1`] = ` >

- @@ -2952,7 +3146,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

- @@ -2969,7 +3163,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

- @@ -2986,7 +3180,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

- @@ -3003,7 +3197,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

- @@ -3020,7 +3214,7 @@ exports[` should render table with showStripedRows 1`] = `
should render table with showStripedRows 1`] = ` >

- @@ -3043,7 +3237,7 @@ exports[` should render table with showStripedRows 1`] = ` `; -exports[`
should render table with sticky header, footer & first column 1`] = ` +exports[`
should render table with showStripedRows 1`] = ` .c0 { -webkit-flex: 1; -ms-flex: 1; @@ -3051,7 +3245,7 @@ exports[`
should render table with sticky header, footer & first column position: relative; } -.c8 { +.c7 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3063,7 +3257,7 @@ exports[`
should render table with sticky header, footer & first column height: 100%; } -.c9 { +.c8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3078,7 +3272,7 @@ exports[`
should render table with sticky header, footer & first column pointer-events: auto; } -.c4 { +.c3 { color: hsla(217,56%,17%,1); font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 0.875rem; @@ -3091,7 +3285,7 @@ exports[`
should render table with sticky header, footer & first column padding: 0; } -.c11 { +.c10 { color: hsla(217,56%,17%,1); font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-size: 0.875rem; @@ -3104,57 +3298,61 @@ exports[`
should render table with sticky header, footer & first column padding: 0; } -.c1.c1.c1 { - height: 300px; -} - -.c5.c5.c5 { +.c4.c4.c4 { border: none; -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); } -.c5.c5.c5 tr:last-child .cell-wrapper { +.c4.c4.c4 tr:last-child .cell-wrapper { border-bottom: none; } -.c5.c5.c5 .row-select-single-selected .cell-wrapper-base, -.c5.c5.c5 .row-select-selected .cell-wrapper-base { +.c4.c4.c4 .row-select-single-selected .cell-wrapper-base, +.c4.c4.c4 .row-select-selected .cell-wrapper-base { background-color: hsla(218,89%,51%,0.09); } -.c5.c5.c5 .row-select-single-selected:hover:not(.disabled-row) .cell-wrapper-base, -.c5.c5.c5 .row-select-selected:hover:not(.disabled-row) .cell-wrapper-base { +.c4.c4.c4 .row-select-single-selected:hover:not(.disabled-row) .cell-wrapper-base, +.c4.c4.c4 .row-select-selected:hover:not(.disabled-row) .cell-wrapper-base { background-color: hsla(218,89%,51%,0.18); } -.c5.c5.c5 .row-select-single-selected:focus:not(.disabled-row) .cell-wrapper-base, -.c5.c5.c5 .row-select-selected:focus:not(.disabled-row) .cell-wrapper-base { +.c4.c4.c4 .row-select-single-selected:focus:not(.disabled-row) .cell-wrapper-base, +.c4.c4.c4 .row-select-selected:focus:not(.disabled-row) .cell-wrapper-base { background-color: hsla(218,89%,51%,0.09); } -.c5.c5.c5 .row-select-single-selected:active:not(.disabled-row) .cell-wrapper-base, -.c5.c5.c5 .row-select-selected:active:not(.disabled-row) .cell-wrapper-base { +.c4.c4.c4 .row-select-single-selected:active:not(.disabled-row) .cell-wrapper-base, +.c4.c4.c4 .row-select-selected:active:not(.disabled-row) .cell-wrapper-base { background-color: hsla(218,89%,51%,0.18); } -.c7.c7.c7 { +.c4.c4.c4 tr:nth-child(even) .cell-wrapper { + background-color: hsla(216,15%,54%,0.09); +} + +.c4.c4.c4 tr:nth-child(even) .cell-wrapper-base { + background-color: transparent; +} + +.c6.c6.c6 { height: 100%; background-color: hsla(0,0%,100%,1); } -.c7.c7.c7 > div:first-child { +.c6.c6.c6 > div:first-child { -webkit-align-self: stretch; -ms-flex-item-align: stretch; align-self: stretch; } -.c7.c7.c7:focus-visible { +.c6.c6.c6:focus-visible { outline: none; box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; } -.c10.c10.c10 { +.c9.c9.c9 { -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); background-color: transparent; @@ -3163,29 +3361,26 @@ exports[`
should render table with sticky header, footer & first column padding-left: 12px; padding-right: 12px; height: 100%; - border-bottom-width: 1px; - border-bottom-color: hsla(216,15%,54%,0.18); - border-bottom-style: solid; } -.c6.c6.c6 { +.c5.c5.c5 { background-color: transparent; } -.c6.c6.c6:focus { +.c5.c5.c5:focus { outline: none; box-shadow: 0 0 0 2px hsla(218,89%,51%,0.09); } -.c12.c12.c12 { +.c11.c11.c11 { background-color: hsla(216,15%,54%,0.09); } -.c12.c12.c12 tr:last-child th { +.c11.c11.c11 tr:last-child th { border-bottom: none; } -.c13.c13.c13 { +.c12.c12.c12 { height: 100%; background-color: hsla(0,0%,100%,1); border-bottom-width: 1px; @@ -3196,7 +3391,7 @@ exports[`
should render table with sticky header, footer & first column border-top-style: solid; } -.c13.c13.c13 > div { +.c12.c12.c12 > div { background-color: hsla(216,15%,54%,0.09); display: -webkit-box; display: -webkit-flex; @@ -3212,11 +3407,11 @@ exports[`
should render table with sticky header, footer & first column padding-right: 12px; } -.c2.c2.c2 tr:first-child th { +.c1.c1.c1 tr:first-child th { border-top: none; } -.c3.c3.c3 { +.c2.c2.c2 { background-color: hsla(0,0%,100%,1); height: 100%; border-bottom-width: 1px; @@ -3228,7 +3423,7 @@ exports[`
should render table with sticky header, footer & first column cursor: auto; } -.c3.c3.c3 > div { +.c2.c2.c2 > div { background-color: hsla(216,15%,54%,0.09); display: -webkit-box; display: -webkit-flex; @@ -3252,37 +3447,37 @@ exports[`
should render table with sticky header, footer & first column padding-right: 12px; } -.c3.c3.c3:focus-visible { +.c2.c2.c2:focus-visible { box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; outline: none; } @media screen and (min-width:320px) { - .c9 { + .c8 { pointer-events: auto; } } @media screen and (min-width:480px) { - .c9 { + .c8 { pointer-events: auto; } } @media screen and (min-width:768px) { - .c9 { + .c8 { pointer-events: auto; } } @media screen and (min-width:1024px) { - .c9 { + .c8 { pointer-events: auto; } } @media screen and (min-width:1200px) { - .c9 { + .c8 { pointer-events: auto; } } @@ -3293,14 +3488,14 @@ exports[`
should render table with sticky header, footer & first column data-blade-component="table" >
@@ -3311,7 +3506,7 @@ exports[`
should render table with sticky header, footer & first column role="rowheader" >
should render table with sticky header, footer & first column >

Payment ID @@ -3329,7 +3524,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Amount @@ -3347,7 +3542,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Status @@ -3365,7 +3560,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Type @@ -3383,7 +3578,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Method @@ -3401,7 +3596,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Name @@ -3421,18 +3616,18 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

rzp01 @@ -3459,7 +3654,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >
@@ -3481,7 +3676,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

pending @@ -3508,7 +3703,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

credit @@ -3535,7 +3730,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Netbanking @@ -3562,7 +3757,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

John Doe @@ -3590,13 +3785,13 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

rzp02 @@ -3623,7 +3818,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >
@@ -3645,7 +3840,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

pending @@ -3672,7 +3867,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

credit @@ -3699,7 +3894,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

UPI @@ -3726,7 +3921,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Jane Doe @@ -3753,198 +3948,1269 @@ exports[` should render table with sticky header, footer & first column + + - - - - +
-
-
-

- rzp03 -

-
-
+ - +

-
+
-
-
- 120 -
-
+ - +

- -
+
-
-
-

- failed -

-
-
+ - +

- -
+
-
-
-

- debit -

-
-
+ - +

- -
+
-
-
-

- Debit Card -

-
-
+ - +

- -
+
-
-
-

- Alice Smith -

-
-
+ - +

- +
-
-
-
-

- rzp04 +

+

+
+`; + +exports[` should render table with sticky header, footer & first column 1`] = ` +.c0 { + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + position: relative; +} + +.c8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 100%; +} + +.c9 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + pointer-events: auto; +} + +.c4 { + color: hsla(217,56%,17%,1); + font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 0.875rem; + font-weight: 700; + font-style: normal; + -webkit-text-decoration-line: none; + text-decoration-line: none; + line-height: 1.25rem; + margin: 0; + padding: 0; +} + +.c11 { + color: hsla(217,56%,17%,1); + font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 0.875rem; + font-weight: 400; + font-style: normal; + -webkit-text-decoration-line: none; + text-decoration-line: none; + line-height: 1.25rem; + margin: 0; + padding: 0; +} + +.c1.c1.c1 { + height: 300px; +} + +.c5.c5.c5 { + border: none; + -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); + transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); +} + +.c5.c5.c5 tr:last-child .cell-wrapper { + border-bottom: none; +} + +.c5.c5.c5 .row-select-single-selected .cell-wrapper-base, +.c5.c5.c5 .row-select-selected .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.09); +} + +.c5.c5.c5 .row-select-single-selected:hover:not(.disabled-row) .cell-wrapper-base, +.c5.c5.c5 .row-select-selected:hover:not(.disabled-row) .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.18); +} + +.c5.c5.c5 .row-select-single-selected:focus:not(.disabled-row) .cell-wrapper-base, +.c5.c5.c5 .row-select-selected:focus:not(.disabled-row) .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.09); +} + +.c5.c5.c5 .row-select-single-selected:active:not(.disabled-row) .cell-wrapper-base, +.c5.c5.c5 .row-select-selected:active:not(.disabled-row) .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.18); +} + +.c7.c7.c7 { + height: 100%; + background-color: hsla(0,0%,100%,1); +} + +.c7.c7.c7 > div:first-child { + -webkit-align-self: stretch; + -ms-flex-item-align: stretch; + align-self: stretch; +} + +.c7.c7.c7:focus-visible { + outline: none; + box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; +} + +.c10.c10.c10 { + -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); + transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); + background-color: transparent; + padding-top: 16px; + padding-bottom: 16px; + padding-left: 12px; + padding-right: 12px; + height: 100%; + border-bottom-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; +} + +.c6.c6.c6 { + background-color: transparent; +} + +.c6.c6.c6:focus { + outline: none; + box-shadow: 0 0 0 2px hsla(218,89%,51%,0.09); +} + +.c12.c12.c12 { + background-color: hsla(216,15%,54%,0.09); +} + +.c12.c12.c12 tr:last-child th { + border-bottom: none; +} + +.c13.c13.c13 { + height: 100%; + background-color: hsla(0,0%,100%,1); + border-bottom-width: 1px; + border-top-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-top-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; + border-top-style: solid; +} + +.c13.c13.c13 > div { + background-color: hsla(216,15%,54%,0.09); + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + height: 100%; + padding-top: 16px; + padding-bottom: 16px; + padding-left: 12px; + padding-right: 12px; +} + +.c2.c2.c2 tr:first-child th { + border-top: none; +} + +.c3.c3.c3 { + background-color: hsla(0,0%,100%,1); + height: 100%; + border-bottom-width: 1px; + border-top-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-top-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; + border-top-style: solid; + cursor: auto; +} + +.c3.c3.c3 > div { + background-color: hsla(216,15%,54%,0.09); + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 100%; + padding-top: 16px; + padding-bottom: 16px; + padding-left: 12px; + padding-right: 12px; +} + +.c3.c3.c3:focus-visible { + box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; + outline: none; +} + +@media screen and (min-width:320px) { + .c9 { + pointer-events: auto; + } +} + +@media screen and (min-width:480px) { + .c9 { + pointer-events: auto; + } +} + +@media screen and (min-width:768px) { + .c9 { + pointer-events: auto; + } +} + +@media screen and (min-width:1024px) { + .c9 { + pointer-events: auto; + } +} + +@media screen and (min-width:1200px) { + .c9 { + pointer-events: auto; + } +} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

+ Payment ID +

+
+
+
+

+ Amount +

+
+
+
+

+ Status +

+
+
+
+

+ Type +

+
+
+
+

+ Method +

+
+
+
+

+ Name +

+
+
+
+
+
+

+ rzp01 +

+
+
+
+
+
+
+
+ 100 +
+
+
+
+
+
+
+

+ pending +

+
+
+
+
+
+
+
+

+ credit +

+
+
+
+
+
+
+
+

+ Netbanking +

+
+
+
+
+
+
+
+

+ John Doe +

+
+
+
+
+
+
+
+

+ rzp02 +

+
+
+
+
+
+
+
+ 240 +
+
+
+
+
+
+
+

+ pending +

+
+
+
+
+
+
+
+

+ credit +

+
+
+
+
+
+
+
+

+ UPI +

+
+
+
+
+
+
+
+

+ Jane Doe +

+
+
+
+
+
+
+
+

+ rzp03 +

+
+
+
+
+
+
+
+ 120 +
+
+
+
+
+
+
+

+ failed +

+
+
+
+
+
+
+
+

+ debit +

+
+
+
+
+
+
+
+

+ Debit Card +

+
+
+
+
+
+
+
+

+ Alice Smith +

+
+
+
+
+
+
+
+

+ rzp04 +

+
+
+
+
+
+
+
+ 300 +
+
+
+
+
+
+
+

+ completed +

+
+
+
+
+
+
+
+

+ credit +

+
+
+
+
+
+
+
+

+ Credit Card +

+
+
+
+
+
+
+
+

+ Bob Smith +

+
+
+
+
+
+
+
+

+ rzp05 +

+
+
+
+
+
+
+
+ 200 +
+
+
+
+
+
+
+

+ completed +

+
+
+
+
+
+
+
+

+ credit

@@ -3967,7 +5233,259 @@ exports[` should render table with sticky header, footer & first column data-blade-component="base-box" pointer-events="auto" > - 300 +

+ Netbanking +

+ + + + + + + + + + + + + + + + +
+
+
+
+

+ John Doe +

+
+
+
+
+
+
+
+

+ rzp06 +

+
+
+
+
+
+
+
+ 240 +
+
+
+
+
+
+
+

+ pending +

+
+
+
+
+
+
+
+

+ credit +

+
+
+
+
+
+
+
+

+ UPI +

+
+
+
+
+
+
+
+

+ Jane Doe +

+
+
+
+
+
+
+
+

+ rzp07 +

+
+
+
+
+
+
+
+ 120
@@ -3993,7 +5511,7 @@ exports[` should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - completed + failed

@@ -4020,7 +5538,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - credit + debit

@@ -4047,7 +5565,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - Credit Card + Debit Card

@@ -4074,7 +5592,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - Bob Smith + Alice Smith

@@ -4108,7 +5626,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - rzp05 + rzp08

@@ -4131,7 +5649,7 @@ exports[`
should render table with sticky header, footer & first column data-blade-component="base-box" pointer-events="auto" > - 200 + 300 @@ -4211,7 +5729,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - Netbanking + Credit Card

@@ -4238,7 +5756,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - John Doe + Bob Smith

@@ -4272,7 +5790,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - rzp06 + rzp09

@@ -4295,7 +5813,7 @@ exports[`
should render table with sticky header, footer & first column data-blade-component="base-box" pointer-events="auto" > - 240 + 200 @@ -4321,7 +5839,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - pending + completed

@@ -4375,7 +5893,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - UPI + Netbanking

@@ -4402,7 +5920,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - Jane Doe + John Doe

@@ -4436,7 +5954,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - rzp07 + rzp10

@@ -4459,7 +5977,7 @@ exports[`
should render table with sticky header, footer & first column data-blade-component="base-box" pointer-events="auto" > - 120 + 240 @@ -4485,7 +6003,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - failed + pending

@@ -4512,7 +6030,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - debit + credit

@@ -4539,7 +6057,7 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - Debit Card + UPI

@@ -4566,185 +6084,520 @@ exports[`
should render table with sticky header, footer & first column class="c11" data-blade-component="text" > - Alice Smith + Jane Doe

+ + + + + + + + + + + +
+ + +`; + +exports[` should render table with surfaceLevel 1`] = ` +.c0 { + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + position: relative; +} + +.c7 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 100%; +} + +.c8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + pointer-events: auto; +} + +.c3 { + color: hsla(217,56%,17%,1); + font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 0.875rem; + font-weight: 700; + font-style: normal; + -webkit-text-decoration-line: none; + text-decoration-line: none; + line-height: 1.25rem; + margin: 0; + padding: 0; +} + +.c10 { + color: hsla(217,56%,17%,1); + font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 0.875rem; + font-weight: 400; + font-style: normal; + -webkit-text-decoration-line: none; + text-decoration-line: none; + line-height: 1.25rem; + margin: 0; + padding: 0; +} + +.c4.c4.c4 { + border: none; + -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); + transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); +} + +.c4.c4.c4 tr:last-child .cell-wrapper { + border-bottom: none; +} + +.c4.c4.c4 .row-select-single-selected .cell-wrapper-base, +.c4.c4.c4 .row-select-selected .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.09); +} + +.c4.c4.c4 .row-select-single-selected:hover:not(.disabled-row) .cell-wrapper-base, +.c4.c4.c4 .row-select-selected:hover:not(.disabled-row) .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.18); +} + +.c4.c4.c4 .row-select-single-selected:focus:not(.disabled-row) .cell-wrapper-base, +.c4.c4.c4 .row-select-selected:focus:not(.disabled-row) .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.09); +} + +.c4.c4.c4 .row-select-single-selected:active:not(.disabled-row) .cell-wrapper-base, +.c4.c4.c4 .row-select-selected:active:not(.disabled-row) .cell-wrapper-base { + background-color: hsla(218,89%,51%,0.18); +} + +.c6.c6.c6 { + height: 100%; + background-color: hsla(220,27%,98%,1); +} + +.c6.c6.c6 > div:first-child { + -webkit-align-self: stretch; + -ms-flex-item-align: stretch; + align-self: stretch; +} + +.c6.c6.c6:focus-visible { + outline: none; + box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; +} + +.c9.c9.c9 { + -webkit-transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); + transition: background-color 150ms cubic-bezier(0.3,0,0.2,1); + background-color: transparent; + padding-top: 16px; + padding-bottom: 16px; + padding-left: 12px; + padding-right: 12px; + height: 100%; + border-bottom-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; +} + +.c5.c5.c5 { + background-color: transparent; +} + +.c5.c5.c5:focus { + outline: none; + box-shadow: 0 0 0 2px hsla(218,89%,51%,0.09); +} + +.c11.c11.c11 { + background-color: hsla(216,15%,54%,0.09); +} + +.c11.c11.c11 tr:last-child th { + border-bottom: none; +} + +.c12.c12.c12 { + height: 100%; + background-color: hsla(220,27%,98%,1); + border-bottom-width: 1px; + border-top-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-top-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; + border-top-style: solid; +} + +.c12.c12.c12 > div { + background-color: hsla(216,15%,54%,0.09); + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + height: 100%; + padding-top: 16px; + padding-bottom: 16px; + padding-left: 12px; + padding-right: 12px; +} + +.c1.c1.c1 tr:first-child th { + border-top: none; +} + +.c2.c2.c2 { + background-color: hsla(220,27%,98%,1); + height: 100%; + border-bottom-width: 1px; + border-top-width: 1px; + border-bottom-color: hsla(216,15%,54%,0.18); + border-top-color: hsla(216,15%,54%,0.18); + border-bottom-style: solid; + border-top-style: solid; + cursor: auto; +} + +.c2.c2.c2 > div { + background-color: hsla(216,15%,54%,0.09); + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 100%; + padding-top: 16px; + padding-bottom: 16px; + padding-left: 12px; + padding-right: 12px; +} + +.c2.c2.c2:focus-visible { + box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18) inset; + outline: none; +} + +@media screen and (min-width:320px) { + .c8 { + pointer-events: auto; + } +} + +@media screen and (min-width:480px) { + .c8 { + pointer-events: auto; + } +} + +@media screen and (min-width:768px) { + .c8 { + pointer-events: auto; + } +} + +@media screen and (min-width:1024px) { + .c8 { + pointer-events: auto; + } +} + +@media screen and (min-width:1200px) { + .c8 { + pointer-events: auto; + } +} + +
+
+
+ - - + +
-
-
-

- rzp08 -

-
-
+ Payment ID +

-
+
-
-
- 300 -
-
+ Amount +

- -
-
-
-
-

- completed -

-
-
+ +
+
+

+ Status +

- -
+
-
-
-

- credit -

-
-
+ Type +

- -
+
-
-
-

- Credit Card -

-
-
+ Method +

- -
+
-
-
-

- Bob Smith -

-
-
+ Name +

- +
should render table with sticky header, footer & first column >

- rzp09 + rzp01

should render table with sticky header, footer & first column >
- 200 + 100
should render table with sticky header, footer & first column >

- completed + pending

should render table with sticky header, footer & first column >

credit @@ -4847,7 +6700,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Netbanking @@ -4874,7 +6727,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

John Doe @@ -4902,13 +6755,13 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

- rzp10 + rzp02

should render table with sticky header, footer & first column >
@@ -4957,7 +6810,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

pending @@ -4984,7 +6837,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

credit @@ -5011,7 +6864,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

UPI @@ -5038,7 +6891,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

Jane Doe @@ -5067,7 +6920,7 @@ exports[` should render table with sticky header, footer & first column @@ -5078,7 +6931,7 @@ exports[`
should render table with sticky header, footer & first column role="rowfooter" >
should render table with sticky header, footer & first column >

- @@ -5095,7 +6948,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

- @@ -5112,7 +6965,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

- @@ -5129,7 +6982,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

- @@ -5146,7 +6999,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

- @@ -5163,7 +7016,7 @@ exports[` should render table with sticky header, footer & first column
should render table with sticky header, footer & first column >

-