@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -56,6 +56,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
56
56
  const inputClasses = classNames(
57
57
  'input',
58
58
  {
59
+ 'is-clearable': isClearable,
59
60
  error: hasErrors,
60
61
  'input--has-icon': iconName,
61
62
  },
@@ -27,4 +27,7 @@
27
27
  color: var(--pf-form-input-color);
28
28
  cursor: pointer;
29
29
  }
30
+ .is-clearable {
31
+ padding-right: var(--pf-padding-6);
32
+ }
30
33
  }
@@ -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={totalEntriesText ?? `${totalRowsOnPage} of ${rowCount} entries`}
171
+ totalEntriesText={
172
+ totalEntriesText ?? rowCount === 1
173
+ ? '1 entry'
174
+ : `${totalRowsOnPage} of ${rowCount} entries`
175
+ }
172
176
  />
173
177
  ) : null}
174
178
  </div>