hooks
4 years ago
images
4 years ago
BulkActionCheckbox.tsx
4 years ago
BulkActionSelect.module.scss
4 years ago
BulkActionSelect.tsx
4 years ago
Filters.tsx
4 years ago
FormSelect.module.scss
4 years ago
FormSelect.tsx
4 years ago
Input.module.scss
4 years ago
Input.tsx
4 years ago
ListTable.module.scss
4 years ago
ListTable.tsx
4 years ago
ListTablePage.module.scss
3 years ago
ListTableRows.module.scss
3 years ago
ListTableRows.tsx
4 years ago
Pagination.module.scss
4 years ago
Pagination.tsx
4 years ago
README.MD
4 years ago
RowAction.module.scss
4 years ago
RowAction.tsx
4 years ago
Select.module.scss
4 years ago
Select.tsx
4 years ago
TableCell.module.scss
4 years ago
TableCell.tsx
4 years ago
TestLabel.module.scss
4 years ago
TestLabel.tsx
4 years ago
TypeBadge.module.scss
4 years ago
TypeBadge.tsx
4 years ago
api.ts
4 years ago
index.tsx
4 years ago
ListTableRows.module.scss
144 lines
| 1 | .deleted { |
| 2 | animation: disappear 400ms ease-in; |
| 3 | animation-fill-mode: forwards; |
| 4 | pointer-events: none; |
| 5 | } |
| 6 | |
| 7 | @keyframes disappear { |
| 8 | 0% { |
| 9 | filter: grayscale(0); |
| 10 | } |
| 11 | 50% { |
| 12 | opacity: 1; |
| 13 | } |
| 14 | 100% { |
| 15 | filter: grayscale(1); |
| 16 | opacity: 0; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | tr.duplicated { |
| 21 | animation: disappear 0.5s ease-in reverse; |
| 22 | } |
| 23 | |
| 24 | .tableRowActions { |
| 25 | position: absolute; |
| 26 | inset-block-end: 1rem; |
| 27 | |
| 28 | display: flex; |
| 29 | align-items: center; |
| 30 | column-gap: 1.25rem; |
| 31 | word-break: keep-all; |
| 32 | transition: opacity 150ms ease-in-out; |
| 33 | |
| 34 | > * { |
| 35 | position: relative; |
| 36 | color: #0878b0; |
| 37 | font-weight: 400; |
| 38 | line-height: 1; |
| 39 | flex-shrink: 0; |
| 40 | } |
| 41 | |
| 42 | > * + ::before { |
| 43 | position: absolute; |
| 44 | content: ""; |
| 45 | inset-block: auto; |
| 46 | inset-inline-start: calc(-.6725rem); |
| 47 | block-size: 110%; |
| 48 | inline-size: 0.125rem; |
| 49 | background-color: #dedede; |
| 50 | } |
| 51 | |
| 52 | > a { |
| 53 | text-decoration: none; |
| 54 | } |
| 55 | |
| 56 | &:focus-within { |
| 57 | opacity: 1; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | .tableRow { |
| 62 | &:nth-child(odd) { |
| 63 | background-color: #f6f7f7; |
| 64 | } |
| 65 | |
| 66 | &:nth-child(even) { |
| 67 | background-color: #fff; |
| 68 | } |
| 69 | |
| 70 | &:hover .tableRowActions { |
| 71 | opacity: 1; |
| 72 | } |
| 73 | |
| 74 | & .start { |
| 75 | text-align: start; |
| 76 | } |
| 77 | |
| 78 | & .center { |
| 79 | text-align: center; |
| 80 | } |
| 81 | |
| 82 | & .end { |
| 83 | text-align: end; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | .donationStatus { |
| 88 | display: flex; |
| 89 | flex-direction: row; |
| 90 | column-gap: 1rem; |
| 91 | align-items: center; |
| 92 | |
| 93 | & > * { |
| 94 | flex-shrink: 0; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | .statusMessage { |
| 99 | font-weight: 600; |
| 100 | font-size: 1.2em; |
| 101 | padding-inline: 2.5em; |
| 102 | padding-block: 2em; |
| 103 | } |
| 104 | |
| 105 | div.pending, div.processing, div.preapproval { |
| 106 | background-color: rgba(8, 120, 176); |
| 107 | } |
| 108 | |
| 109 | div.draft, div.auto-draft { |
| 110 | background-color: rgba(244, 148, 32); |
| 111 | } |
| 112 | |
| 113 | div.future { |
| 114 | background-color: rgba(164, 99, 191); |
| 115 | } |
| 116 | |
| 117 | div.trash, div.failed, div.revoked { |
| 118 | background-color: rgba(232, 75, 59); |
| 119 | } |
| 120 | |
| 121 | div.private, div.refunded { |
| 122 | background-color: rgba(51, 51, 51, 1); |
| 123 | } |
| 124 | |
| 125 | div.abandoned { |
| 126 | background-color: rgba(244, 197, 32, 1) |
| 127 | } |
| 128 | |
| 129 | .unclickable { |
| 130 | pointer-events: none; |
| 131 | } |
| 132 | |
| 133 | .monetary { |
| 134 | font-size: 1.25em; |
| 135 | font-weight: 700; |
| 136 | color: var(--give-primary-color); |
| 137 | } |
| 138 | |
| 139 | @media (hover: hover) and (pointer: fine) { |
| 140 | .tableRowActions { |
| 141 | opacity: 0; |
| 142 | } |
| 143 | } |
| 144 |