@indico-data/design-system 3.0.1 → 3.0.2

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.js CHANGED
@@ -5542,7 +5542,7 @@ const Pagination = (_a) => {
5542
5542
  const hasError = Number(inputValue) > totalPages || Number(inputValue) < 1;
5543
5543
  return (jsxRuntime.jsx("div", Object.assign({ className: classes }, rest, { children: jsxRuntime.jsx(Container, { children: jsxRuntime.jsxs(Row, { gutterWidth: 12, align: "center", children: [jsxRuntime.jsx(Col, { xs: "content", children: jsxRuntime.jsx("div", { className: "pagination__previous", children: jsxRuntime.jsx(Button$1, { "data-testid": "pagination-previous-button", ariaLabel: "Previous Page", variant: "link", onClick: handlePreviousPage, iconLeft: "chevron-left", isDisabled: isPreviousButtonDisabled }) }) }), jsxRuntime.jsx(Col, { xs: "content", children: jsxRuntime.jsx("div", { className: "pagination__current-page", children: jsxRuntime.jsx(LabeledInput, { "data-testid": "pagination-current-page-input", className: classNames('pagination__current-page-input', {
5544
5544
  'has-error': hasError,
5545
- }), value: inputValue, name: "currentPage", label: "Current Page", hasHiddenLabel: true, onKeyDown: (e) => {
5545
+ }), value: totalPages === 0 ? '0' : inputValue, name: "currentPage", label: "Current Page", hasHiddenLabel: true, onKeyDown: (e) => {
5546
5546
  if (e.key === 'Enter') {
5547
5547
  validateAndUpdatePage(e.currentTarget.value);
5548
5548
  }
@@ -43060,7 +43060,7 @@ const h="react-tooltip-core-styles",w="react-tooltip-base-styles",b={core:!1,bas
43060
43060
 
43061
43061
  const Tooltip = (_a) => {
43062
43062
  var { id, clickToShow, delayShow, delayHide, children, zIndex = 1000, place = 'top' } = _a, rest = __rest(_a, ["id", "clickToShow", "delayShow", "delayHide", "children", "zIndex", "place"]);
43063
- return (jsxRuntime.jsx(M, Object.assign({ border: "solid var(--pf-border-thin)var(--pf-border-color)", style: {
43063
+ return (jsxRuntime.jsx(M, Object.assign({ style: {
43064
43064
  backgroundColor: 'var(--pf-tooltip-background-color)',
43065
43065
  color: 'var(--pf-tooltip-font-color)',
43066
43066
  zIndex,