@theroutingcompany/components 0.0.22 → 0.0.23

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.
@@ -9768,21 +9768,25 @@ const ob = O(wp)`
9768
9768
  color: ${m.color_fill_inverse_pressed};
9769
9769
  }
9770
9770
  `, QP = O(La)`
9771
- background: ${m.color_fill_secondary_enabled};
9771
+ background: ${m.color_white};
9772
9772
  color: ${m.color_fill_primary_enabled};
9773
-
9773
+ border: 1px solid ${m.color_outline_secondary_enabled};
9774
+
9774
9775
  &:hover {
9775
- background: ${m.color_fill_secondary_hover};
9776
+ background: hsl(0deg 0% 0% / 3%);
9776
9777
  color: ${m.color_fill_primary_hover};
9778
+ border-color: ${m.color_outline_secondary_enabled};
9777
9779
  }
9778
-
9780
+
9779
9781
  &[data-state~='pressed'] {
9780
- background: ${m.color_fill_secondary_pressed};
9782
+ background: ${m.color_divider_weak}; // Interactive/Fill/Tertiary/Pressed
9781
9783
  color: ${m.color_fill_primary_enabled};
9784
+ border-color: hsl(0deg 0% 0% / 48%); // Interactive/Outline/Primary/Pressed
9782
9785
  }
9783
9786
 
9784
9787
  &:disabled {
9785
9788
  background: ${m.color_fill_secondary_disabled};
9789
+ border-color: hsl(0deg 0% 14% / 16%);
9786
9790
  }
9787
9791
  `, e7 = O(La)`
9788
9792
  background: ${m.color_fill_danger_enabled};
@@ -10309,7 +10313,7 @@ function hI({
10309
10313
  nextButtonProps: l
10310
10314
  }
10311
10315
  ),
10312
- /* @__PURE__ */ oe(ob, { gap: "400", children: [
10316
+ /* @__PURE__ */ oe(ob, { gap: "400", justifyContent: "space-between", children: [
10313
10317
  /* @__PURE__ */ S(pu, { state: o, timeZone: e }),
10314
10318
  /* @__PURE__ */ S(
10315
10319
  pu,
@@ -20411,7 +20415,8 @@ const NI = Object.assign(cn, {
20411
20415
  display: flex;
20412
20416
  flex-direction: column;
20413
20417
  gap: ${m.sizing_500};
20414
- padding-block: ${m.sizing_500};
20418
+ padding-top: var(--padding-top, ${m.sizing_500});
20419
+ padding-bottom: var(--padding-bottom, ${m.sizing_500});
20415
20420
  margin: 0 auto;
20416
20421
  `, rT = O.header`
20417
20422
  z-index: 3;
@@ -20496,23 +20501,31 @@ function jI({
20496
20501
  onClick: n,
20497
20502
  onNext: o,
20498
20503
  className: a,
20499
- ariaLabel: i = "Pagination Navigation"
20504
+ ariaLabel: i = "Pagination Navigation",
20505
+ displayAtMost: s = 6
20500
20506
  }) {
20501
- const s = Array.from({ length: e }, (p, h) => h), l = 6;
20502
- let c = s;
20503
- const d = l - 1;
20504
- if (e > 5) {
20505
- const p = e - 1;
20506
- t > e - d ? c = [0, -1, ...s.slice(-d)] : t + 1 < d ? c = [...s.slice(0, d), -1, p] : c = [
20507
- 0,
20508
- -1,
20509
- // to signify a gap, or make it a string?
20510
- ...c.slice(t - 1, t),
20511
- t,
20512
- ...c.slice(t + 1, t + 2),
20513
- -1,
20514
- p
20515
- ];
20507
+ const l = Array.from({ length: e }, (p, h) => h);
20508
+ let c = l;
20509
+ const d = s - 1;
20510
+ if (e > d) {
20511
+ const h = e - 1;
20512
+ if (t > e - d)
20513
+ c = [0, -1, ...l.slice(-d)];
20514
+ else if (t + 1 < d)
20515
+ c = [...l.slice(0, d), -1, h];
20516
+ else {
20517
+ const b = Math.round(s / 2);
20518
+ c = [
20519
+ 0,
20520
+ -1,
20521
+ // to signify a gap, or make it a string?
20522
+ ...c.slice(t - b, t),
20523
+ t,
20524
+ ...c.slice(t + 1, t + b + 1),
20525
+ -1,
20526
+ h
20527
+ ];
20528
+ }
20516
20529
  }
20517
20530
  const u = t === 0, f = t === e - 1;
20518
20531
  return /* @__PURE__ */ oe(oT, { "aria-label": i, className: a, children: [
@@ -20534,7 +20547,7 @@ function jI({
20534
20547
  onClick: () => n(p),
20535
20548
  children: p + 1
20536
20549
  },
20537
- p
20550
+ `${p}-${h}`
20538
20551
  ) : (
20539
20552
  // @ts-expect-error 'as' is not on the type of PaginatorNumber
20540
20553
  /* @__PURE__ */ S(el, { as: "span", children: "..." }, `${p}-${h}`)