@nearform/quantum 1.7.0 → 1.7.1

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/dist/index.js CHANGED
@@ -3667,9 +3667,10 @@ var PageNumberStyles = (0, import_class_variance_authority21.cva)([
3667
3667
  "rounded-xs",
3668
3668
  "text-foreground-muted",
3669
3669
  "dark:text-foreground-muted-dark",
3670
+ "hover:bg-button-tertiary-hover",
3671
+ "dark:hover:bg-button-tertiary-hover-dark",
3670
3672
  "active:bg-accent",
3671
3673
  "active:text-primary-10",
3672
- "dark:hover:bg-background-dark",
3673
3674
  "dark:active:bg-primary-30",
3674
3675
  "dark:active:text-grey-900"
3675
3676
  ]);
@@ -3683,6 +3684,16 @@ var PageNumberActiveStyles = (0, import_class_variance_authority21.cva)([
3683
3684
  "dark:hover:bg-primary-30",
3684
3685
  "dark:hover:text-grey-900"
3685
3686
  ]);
3687
+ var StepButtonStyles = (0, import_class_variance_authority21.cva)([
3688
+ "px-4",
3689
+ "rounded-xs",
3690
+ "text-foreground",
3691
+ "dark:text-foreground-dark",
3692
+ "enabled:hover:bg-button-tertiary-hover",
3693
+ "dark:enabled:hover:bg-button-tertiary-hover-dark",
3694
+ "disabled:text-foreground-subtle",
3695
+ "dark:disabled:text-foreground-subtle-dark"
3696
+ ]);
3686
3697
  var Pagination = import_react7.default.forwardRef(
3687
3698
  (_a, ref) => {
3688
3699
  var _b = _a, {
@@ -3762,18 +3773,19 @@ var Pagination = import_react7.default.forwardRef(
3762
3773
  ref
3763
3774
  }, props), {
3764
3775
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("ul", { children: [
3765
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3776
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3766
3777
  "button",
3767
3778
  {
3768
3779
  type: "button",
3769
3780
  "aria-label": previousLabel,
3781
+ className: StepButtonStyles(),
3770
3782
  onClick: goToPrevPage,
3771
3783
  disabled: currentPage === 1 || totalPages === 0,
3772
3784
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3773
3785
  assets_exports.BsChevronLeft,
3774
3786
  {
3775
3787
  "aria-hidden": "true",
3776
- className: "w-3 h-9 pt-3 pb-3 -mb-1 text-foreground dark:text-foreground-dark"
3788
+ className: "w-3 h-9 pt-3 pb-3 -mb-1"
3777
3789
  }
3778
3790
  )
3779
3791
  }
@@ -3810,18 +3822,19 @@ var Pagination = import_react7.default.forwardRef(
3810
3822
  }
3811
3823
  ) : null
3812
3824
  ] }, pgNumber)),
3813
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3825
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3814
3826
  "button",
3815
3827
  {
3816
3828
  type: "button",
3817
3829
  "aria-label": nextLabel,
3830
+ className: StepButtonStyles(),
3818
3831
  onClick: goToNextPage,
3819
3832
  disabled: currentPage === totalPages || totalPages === 0,
3820
3833
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3821
3834
  assets_exports.BsChevronRight,
3822
3835
  {
3823
3836
  "aria-hidden": "true",
3824
- className: "w-3 h-9 py-3 -mb-1 text-foreground dark:text-foreground-dark"
3837
+ className: "w-3 h-9 py-3 -mb-1"
3825
3838
  }
3826
3839
  )
3827
3840
  }