@indico-data/design-system 3.0.3 → 3.0.4
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/lib/index.css +3 -0
- package/lib/index.esm.css +3 -0
- package/lib/index.esm.js +6 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/input/Input.tsx +1 -0
- package/src/components/forms/input/styles/Input.scss +3 -0
- package/src/components/pagination/Pagination.tsx +2 -2
- package/src/components/tanstackTable/TanstackTable.tsx +5 -1
package/package.json
CHANGED
|
@@ -64,7 +64,7 @@ export const Pagination = ({
|
|
|
64
64
|
variant="link"
|
|
65
65
|
onClick={handlePreviousPage}
|
|
66
66
|
iconLeft="chevron-left"
|
|
67
|
-
isDisabled={isPreviousButtonDisabled}
|
|
67
|
+
isDisabled={isPreviousButtonDisabled || totalPages === 0}
|
|
68
68
|
/>
|
|
69
69
|
</div>
|
|
70
70
|
</Col>
|
|
@@ -106,7 +106,7 @@ export const Pagination = ({
|
|
|
106
106
|
variant="link"
|
|
107
107
|
onClick={handleNextPage}
|
|
108
108
|
iconLeft="chevron-right"
|
|
109
|
-
isDisabled={isNextButtonDisabled}
|
|
109
|
+
isDisabled={isNextButtonDisabled || totalPages === 0}
|
|
110
110
|
/>
|
|
111
111
|
</div>
|
|
112
112
|
</Col>
|
|
@@ -168,7 +168,11 @@ export function TanstackTable<T extends object>({
|
|
|
168
168
|
rowCount={rowCount}
|
|
169
169
|
onChangePage={onChangePage}
|
|
170
170
|
rowsPerPage={rowsPerPage}
|
|
171
|
-
totalEntriesText={
|
|
171
|
+
totalEntriesText={
|
|
172
|
+
totalEntriesText ?? rowCount === 1
|
|
173
|
+
? '1 entry'
|
|
174
|
+
: `${totalRowsOnPage} of ${rowCount} entries`
|
|
175
|
+
}
|
|
172
176
|
/>
|
|
173
177
|
) : null}
|
|
174
178
|
</div>
|