@purpurds/pagination 8.11.0 → 8.12.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.
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { LinkProps, NoLinkProps } from './types';
3
-
4
3
  export type PaginationTexts = {
5
4
  nextButtonAriaLabel: string;
6
5
  /**
@@ -1,6 +1,6 @@
1
- import { jsx as s, jsxs as v } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import { forwardRef as A, useId as ir, useMemo as Vr, createElement as ce, useState as er, useEffect as _e } from "react";
3
+ import { forwardRef as z, useId as ir, useMemo as Vr, createElement as ce, useState as er, useEffect as _e } from "react";
4
4
  import "react-dom";
5
5
  function de(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -39,7 +39,7 @@ function fe() {
39
39
  })(lr)), lr.exports;
40
40
  }
41
41
  var me = fe();
42
- const he = /* @__PURE__ */ de(me), ve = {
42
+ const ve = /* @__PURE__ */ de(me), he = {
43
43
  "purpur-icon": "_purpur-icon_8u1lq_1",
44
44
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
45
45
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -47,7 +47,7 @@ const he = /* @__PURE__ */ de(me), ve = {
47
47
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
48
48
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
49
49
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
50
- }, ye = he.bind(ve), gr = "purpur-icon", $e = "md", be = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), xe = ({ content: e = "", title: n } = {}) => {
50
+ }, ye = ve.bind(he), gr = "purpur-icon", $e = "md", be = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), xe = ({ content: e = "", title: n } = {}) => {
51
51
  const i = [
52
52
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
53
53
  { name: "fill", value: "currentColor" },
@@ -101,7 +101,7 @@ function Oe(...e) {
101
101
  // @__NO_SIDE_EFFECTS__
102
102
  function Ce(e) {
103
103
  const n = /* @__PURE__ */ Pe(e), i = l.forwardRef((o, a) => {
104
- const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(Ae);
104
+ const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(ze);
105
105
  if (g) {
106
106
  const c = g.props.children, f = p.map((u) => u === g ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
107
107
  return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
@@ -115,7 +115,7 @@ function Pe(e) {
115
115
  const n = l.forwardRef((i, o) => {
116
116
  const { children: a, ...r } = i;
117
117
  if (l.isValidElement(a)) {
118
- const t = Re(a), p = ze(r, a.props);
118
+ const t = Re(a), p = Ae(r, a.props);
119
119
  return a.type !== l.Fragment && (p.ref = o ? Oe(o, t) : t), l.cloneElement(a, p);
120
120
  }
121
121
  return l.Children.count(a) > 1 ? l.Children.only(null) : null;
@@ -123,10 +123,10 @@ function Pe(e) {
123
123
  return n.displayName = `${e}.SlotClone`, n;
124
124
  }
125
125
  var je = Symbol("radix.slottable");
126
- function Ae(e) {
126
+ function ze(e) {
127
127
  return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === je;
128
128
  }
129
- function ze(e, n) {
129
+ function Ae(e, n) {
130
130
  const i = { ...n };
131
131
  for (const o in n) {
132
132
  const a = e[o], r = n[o];
@@ -227,7 +227,7 @@ function Ve() {
227
227
  })(X)), X.exports;
228
228
  }
229
229
  var We = Ve();
230
- const z = /* @__PURE__ */ De(We), Zr = (e) => {
230
+ const A = /* @__PURE__ */ De(We), Zr = (e) => {
231
231
  window.location.href = e;
232
232
  }, Be = {
233
233
  "purpur-pagination": "_purpur-pagination_1g3as_1",
@@ -410,9 +410,9 @@ const it = /* @__PURE__ */ rt(tt), nt = {
410
410
  function pt(e) {
411
411
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
412
412
  }
413
- var hr = { exports: {} }, vr;
413
+ var vr = { exports: {} }, hr;
414
414
  function ot() {
415
- return vr || (vr = 1, (function(e) {
415
+ return hr || (hr = 1, (function(e) {
416
416
  (function() {
417
417
  var n = {}.hasOwnProperty;
418
418
  function i() {
@@ -441,24 +441,25 @@ function ot() {
441
441
  }
442
442
  e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
443
443
  })();
444
- })(hr)), hr.exports;
444
+ })(vr)), vr.exports;
445
445
  }
446
446
  var st = ot();
447
447
  const lt = /* @__PURE__ */ pt(st), ut = {
448
- "purpur-paragraph": "_purpur-paragraph_1rh57_1",
449
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
450
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
451
- "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
452
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
453
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
454
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
455
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
456
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
457
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
458
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
459
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
460
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
461
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
448
+ "purpur-paragraph": "_purpur-paragraph_1vz75_1",
449
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
450
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
451
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1vz75_13",
452
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1vz75_16",
453
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1vz75_22",
454
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1vz75_29",
455
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1vz75_36",
456
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1vz75_42",
457
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1vz75_48",
458
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1vz75_54",
459
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1vz75_60",
460
+ "purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
461
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
462
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
462
463
  }, gt = lt.bind(ut), ct = {
463
464
  PARAGRAPH100: "paragraph-100"
464
465
  }, E = "purpur-paragraph", ar = ({
@@ -515,7 +516,7 @@ function dt() {
515
516
  })(yr)), yr.exports;
516
517
  }
517
518
  var ft = dt();
518
- const mt = /* @__PURE__ */ _t(ft), ht = {
519
+ const mt = /* @__PURE__ */ _t(ft), vt = {
519
520
  "purpur-icon": "_purpur-icon_8u1lq_1",
520
521
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
521
522
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -523,7 +524,7 @@ const mt = /* @__PURE__ */ _t(ft), ht = {
523
524
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
524
525
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
525
526
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
526
- }, vt = mt.bind(ht), br = "purpur-icon", yt = "md", $t = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), bt = ({ content: e = "", title: n } = {}) => {
527
+ }, ht = mt.bind(vt), br = "purpur-icon", yt = "md", $t = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), bt = ({ content: e = "", title: n } = {}) => {
527
528
  const i = [
528
529
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
529
530
  { name: "fill", value: "currentColor" },
@@ -535,7 +536,7 @@ const mt = /* @__PURE__ */ _t(ft), ht = {
535
536
  const r = bt({
536
537
  content: xt(e.svg),
537
538
  title: n
538
- }), t = vt(br, `${br}--${o}`, i);
539
+ }), t = ht(br, `${br}--${o}`, i);
539
540
  return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
540
541
  };
541
542
  Jr.displayName = "Icon";
@@ -592,7 +593,7 @@ const Ct = /* @__PURE__ */ St(Ot), Pt = {
592
593
  negative: i = !1,
593
594
  ["aria-relevant"]: o = "additions text",
594
595
  ...a
595
- }) => /* @__PURE__ */ v(
596
+ }) => /* @__PURE__ */ h(
596
597
  "div",
597
598
  {
598
599
  className: Sr(n, T, {
@@ -607,11 +608,11 @@ const Ct = /* @__PURE__ */ St(Ot), Pt = {
607
608
  ]
608
609
  }
609
610
  );
610
- function At(e) {
611
+ function zt(e) {
611
612
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
612
613
  }
613
614
  var Nr = { exports: {} }, Or;
614
- function zt() {
615
+ function At() {
615
616
  return Or || (Or = 1, (function(e) {
616
617
  (function() {
617
618
  var n = {}.hasOwnProperty;
@@ -643,8 +644,8 @@ function zt() {
643
644
  })();
644
645
  })(Nr)), Nr.exports;
645
646
  }
646
- var Rt = zt();
647
- const Et = /* @__PURE__ */ At(Rt), Mt = {
647
+ var Rt = At();
648
+ const Et = /* @__PURE__ */ zt(Rt), Mt = {
648
649
  "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
649
650
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
650
651
  "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
@@ -737,7 +738,7 @@ const Qt = {
737
738
  category: "utility"
738
739
  }, Qr = (e) => /* @__PURE__ */ s(pr, { ...e, svg: Qt });
739
740
  Qr.displayName = "IconChevronDown";
740
- function Ar(e, n) {
741
+ function zr(e, n) {
741
742
  if (typeof e == "function")
742
743
  return e(n);
743
744
  e != null && (e.current = n);
@@ -746,14 +747,14 @@ function Ut(...e) {
746
747
  return (n) => {
747
748
  let i = !1;
748
749
  const o = e.map((a) => {
749
- const r = Ar(a, n);
750
+ const r = zr(a, n);
750
751
  return !i && typeof r == "function" && (i = !0), r;
751
752
  });
752
753
  if (i)
753
754
  return () => {
754
755
  for (let a = 0; a < o.length; a++) {
755
756
  const r = o[a];
756
- typeof r == "function" ? r() : Ar(e[a], null);
757
+ typeof r == "function" ? r() : zr(e[a], null);
757
758
  }
758
759
  };
759
760
  };
@@ -849,7 +850,7 @@ var oi = Xr;
849
850
  function si(e) {
850
851
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
851
852
  }
852
- var zr = { exports: {} }, Rr;
853
+ var Ar = { exports: {} }, Rr;
853
854
  function li() {
854
855
  return Rr || (Rr = 1, (function(e) {
855
856
  (function() {
@@ -880,7 +881,7 @@ function li() {
880
881
  }
881
882
  e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
882
883
  })();
883
- })(zr)), zr.exports;
884
+ })(Ar)), Ar.exports;
884
885
  }
885
886
  var ui = li();
886
887
  const gi = /* @__PURE__ */ si(ui), ci = {
@@ -936,8 +937,8 @@ function mi() {
936
937
  })();
937
938
  })(Er)), Er.exports;
938
939
  }
939
- var hi = mi();
940
- const vi = /* @__PURE__ */ fi(hi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1", bi = {
940
+ var vi = mi();
941
+ const hi = /* @__PURE__ */ fi(vi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1", bi = {
941
942
  "purpur-spinner": "_purpur-spinner_12t9p_2",
942
943
  rotate: yi,
943
944
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
@@ -949,7 +950,7 @@ const vi = /* @__PURE__ */ fi(hi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1",
949
950
  dash: $i,
950
951
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
951
952
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
952
- }, qr = vi.bind(bi), M = "purpur-spinner", xi = {
953
+ }, qr = hi.bind(bi), M = "purpur-spinner", xi = {
953
954
  SM: "sm"
954
955
  }, Yr = ({
955
956
  disabled: e = !1,
@@ -1027,7 +1028,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
1027
1028
  "purpur-select__select-icon--disabled": "_purpur-select__select-icon--disabled_t7uxd_133",
1028
1029
  "purpur-select__select-icon--negative": "_purpur-select__select-icon--negative_t7uxd_136",
1029
1030
  "purpur-select__valid-icon": "_purpur-select__valid-icon_t7uxd_142"
1030
- }, N = Oi.bind(Ci), _ = "purpur-select", or = A(
1031
+ }, N = Oi.bind(Ci), _ = "purpur-select", or = z(
1031
1032
  ({
1032
1033
  label: e,
1033
1034
  options: n,
@@ -1052,14 +1053,14 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
1052
1053
  [`${_}__select-icon--readonly`]: p && !u.disabled,
1053
1054
  [`${_}__select-icon--is-valid`]: y,
1054
1055
  [`${_}__select-icon--negative`]: r
1055
- }), y && N(`${_}__valid-icon`), /* @__PURE__ */ v(
1056
+ }), y && N(`${_}__valid-icon`), /* @__PURE__ */ h(
1056
1057
  "div",
1057
1058
  {
1058
1059
  className: N(_, i, {
1059
1060
  [`${_}--negative`]: r
1060
1061
  }),
1061
1062
  children: [
1062
- e && /* @__PURE__ */ v(
1063
+ e && /* @__PURE__ */ h(
1063
1064
  di,
1064
1065
  {
1065
1066
  htmlFor: $,
@@ -1073,8 +1074,8 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
1073
1074
  ]
1074
1075
  }
1075
1076
  ),
1076
- /* @__PURE__ */ s("div", { className: N(`${_}__field-row`), children: /* @__PURE__ */ v("div", { className: C, children: [
1077
- /* @__PURE__ */ v(
1077
+ /* @__PURE__ */ s("div", { className: N(`${_}__field-row`), children: /* @__PURE__ */ h("div", { className: C, children: [
1078
+ /* @__PURE__ */ h(
1078
1079
  "select",
1079
1080
  {
1080
1081
  ...u,
@@ -1099,7 +1100,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
1099
1100
  ]
1100
1101
  }
1101
1102
  ),
1102
- /* @__PURE__ */ v("div", { className: N(`${_}__end-adornments`), children: [
1103
+ /* @__PURE__ */ h("div", { className: N(`${_}__end-adornments`), children: [
1103
1104
  f ? /* @__PURE__ */ s(
1104
1105
  Yr,
1105
1106
  {
@@ -1169,16 +1170,16 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
1169
1170
  `${n}--option--${i}`
1170
1171
  );
1171
1172
  or.displayName = "Select";
1172
- const Ai = {
1173
+ const zi = {
1173
1174
  "purpur-pagination-page-selector": "_purpur-pagination-page-selector_7pxsw_1",
1174
1175
  "purpur-pagination-page-selector__select-container": "_purpur-pagination-page-selector__select-container_7pxsw_6",
1175
1176
  "purpur-pagination-page-selector__of-total-pages-label": "_purpur-pagination-page-selector__of-total-pages-label_7pxsw_10"
1176
- }, zi = (e) => ({
1177
+ }, Ai = (e) => ({
1177
1178
  options: Vr(
1178
1179
  () => Array.from({ length: e }, (i, o) => ({ label: `${o + 1}`, value: `${o + 1}` })),
1179
1180
  [e]
1180
1181
  )
1181
- }), B = z.bind(Ai), L = "purpur-pagination-page-selector", Ir = A(
1182
+ }), B = A.bind(zi), L = "purpur-pagination-page-selector", Ir = z(
1182
1183
  ({
1183
1184
  ["data-testid"]: e = "purpur-pagination-page-selector",
1184
1185
  asLink: n,
@@ -1193,15 +1194,15 @@ const Ai = {
1193
1194
  pageSelectorLabel: f,
1194
1195
  ...u
1195
1196
  }, x) => {
1196
- const d = ir(), y = B(i, L), { options: O } = zi(t), $ = (w) => {
1197
+ const d = ir(), y = B(i, L), { options: O } = Ai(t), $ = (w) => {
1197
1198
  const C = w.target.value ? Number(w.target.value) : 1;
1198
1199
  if (p(C), n) {
1199
1200
  const P = a?.(C) ?? "";
1200
1201
  r(C, P);
1201
1202
  }
1202
1203
  };
1203
- return /* @__PURE__ */ v("div", { className: y, "data-testid": e, ref: x, ...u, children: [
1204
- /* @__PURE__ */ v("div", { className: B(`${L}__select-container`), children: [
1204
+ return /* @__PURE__ */ h("div", { className: y, "data-testid": e, ref: x, ...u, children: [
1205
+ /* @__PURE__ */ h("div", { className: B(`${L}__select-container`), children: [
1205
1206
  /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(Gr, { "data-testid": `${e}-label`, htmlFor: d, children: f }) }),
1206
1207
  /* @__PURE__ */ s(
1207
1208
  or,
@@ -1240,7 +1241,7 @@ const Ri = {
1240
1241
  })),
1241
1242
  [e]
1242
1243
  )
1243
- }), Z = z.bind(Ri), H = "purpur-pagination-page-size-selector", re = A(
1244
+ }), Z = A.bind(Ri), H = "purpur-pagination-page-size-selector", re = z(
1244
1245
  ({
1245
1246
  ["data-testid"]: e = "purpur-pagination-page-size-selector",
1246
1247
  asLink: n,
@@ -1260,7 +1261,7 @@ const Ri = {
1260
1261
  r ? r({ currentPage: 1, pageSize: $, url: w }) : Zr(w);
1261
1262
  }
1262
1263
  };
1263
- return /* @__PURE__ */ v("div", { className: x, "data-testid": e, ref: f, ...c, children: [
1264
+ return /* @__PURE__ */ h("div", { className: x, "data-testid": e, ref: f, ...c, children: [
1264
1265
  /* @__PURE__ */ s(
1265
1266
  Gr,
1266
1267
  {
@@ -1303,7 +1304,7 @@ const Mi = {
1303
1304
  "purpur-pagination-page-trigger__trigger-item--expressive-negative": "_purpur-pagination-page-trigger__trigger-item--expressive-negative_1pnyd_121",
1304
1305
  "purpur-pagination-page-trigger__trigger-item--page-trigger": "_purpur-pagination-page-trigger__trigger-item--page-trigger_1pnyd_133",
1305
1306
  "purpur-pagination-page-trigger__trigger-item--selected": "_purpur-pagination-page-trigger__trigger-item--selected_1pnyd_142"
1306
- }, F = z.bind(Mi), b = "purpur-pagination-page-trigger", ee = A(
1307
+ }, F = A.bind(Mi), b = "purpur-pagination-page-trigger", ee = z(
1307
1308
  ({
1308
1309
  ["data-testid"]: e = "purpur-pagination-page-trigger",
1309
1310
  linkElement: n,
@@ -1318,7 +1319,7 @@ const Mi = {
1318
1319
  ...f
1319
1320
  }, u) => {
1320
1321
  const x = F(o, b);
1321
- return /* @__PURE__ */ s("li", { className: x, "data-testid": e, ref: u, ...f, children: i ? a ? /* @__PURE__ */ v(
1322
+ return /* @__PURE__ */ s("li", { className: x, "data-testid": e, ref: u, ...f, children: i ? a ? /* @__PURE__ */ h(
1322
1323
  "span",
1323
1324
  {
1324
1325
  className: F(
@@ -1335,7 +1336,7 @@ const Mi = {
1335
1336
  p
1336
1337
  ]
1337
1338
  }
1338
- ) : /* @__PURE__ */ v(
1339
+ ) : /* @__PURE__ */ h(
1339
1340
  n,
1340
1341
  {
1341
1342
  className: F(
@@ -1354,7 +1355,7 @@ const Mi = {
1354
1355
  p
1355
1356
  ]
1356
1357
  }
1357
- ) : /* @__PURE__ */ v(
1358
+ ) : /* @__PURE__ */ h(
1358
1359
  "button",
1359
1360
  {
1360
1361
  "aria-disabled": a,
@@ -1383,7 +1384,7 @@ const qi = {
1383
1384
  "purpur-pagination-pages": "_purpur-pagination-pages_2g8is_1"
1384
1385
  }, ki = {
1385
1386
  "purpur-pagination-truncation-separator": "_purpur-pagination-truncation-separator_b9cij_1"
1386
- }, Di = z.bind(ki), Vi = "purpur-pagination-truncation-separator", te = ({
1387
+ }, Di = A.bind(ki), Vi = "purpur-pagination-truncation-separator", te = ({
1387
1388
  ["data-testid"]: e = "purpur-pagination-truncation-separator",
1388
1389
  className: n,
1389
1390
  ["aria-label"]: i,
@@ -1393,7 +1394,7 @@ const qi = {
1393
1394
  return /* @__PURE__ */ s("li", { className: a, "data-testid": e, ...o, children: /* @__PURE__ */ s(ar, { "aria-label": i, children: "..." }) });
1394
1395
  };
1395
1396
  te.displayName = "PaginationTruncationSeparator";
1396
- const Wi = z.bind(qi), Bi = "purpur-pagination-pages", ie = A(
1397
+ const Wi = A.bind(qi), Bi = "purpur-pagination-pages", ie = z(
1397
1398
  ({
1398
1399
  ["data-testid"]: e = "purpur-pagination-pages",
1399
1400
  linkElement: n,
@@ -1457,7 +1458,7 @@ const Li = {
1457
1458
  "purpur-pagination-step-trigger__trigger-item--expressive-negative": "_purpur-pagination-step-trigger__trigger-item--expressive-negative_1t19c_118",
1458
1459
  "purpur-pagination-step-trigger__trigger-item--step-trigger": "_purpur-pagination-step-trigger__trigger-item--step-trigger_1t19c_130",
1459
1460
  "purpur-pagination-step-trigger__trigger-item--step-trigger--not-icon-only": "_purpur-pagination-step-trigger__trigger-item--step-trigger--not-icon-only_1t19c_137"
1460
- }, G = z.bind(Li), m = "purpur-pagination-step-trigger", tr = A(
1461
+ }, G = A.bind(Li), m = "purpur-pagination-step-trigger", tr = z(
1461
1462
  ({
1462
1463
  ["aria-label"]: e,
1463
1464
  ["data-testid"]: n = "purpur-pagination-step-trigger",
@@ -1548,7 +1549,7 @@ function Hi(e, n) {
1548
1549
  const o = [e - 2, e - 1, e];
1549
1550
  return o.includes(n) ? [1, e - 3, ...o] : [1, n - 1, n, n + 1, e];
1550
1551
  }
1551
- const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1552
+ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
1552
1553
  ({
1553
1554
  ["data-testid"]: e = "purpur-pagination",
1554
1555
  linkElement: n = "a",
@@ -1573,7 +1574,7 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1573
1574
  truncationSeparatorAriaLabel: q,
1574
1575
  ...ne
1575
1576
  }, ae) => {
1576
- const pe = S(a, h), [Q, oe] = er(y), { pages: U, numberOfPages: k } = Zi(P, Q, r), D = !w && !c, V = (j) => {
1577
+ const pe = S(a, v), [Q, oe] = er(y), { pages: U, numberOfPages: k } = Zi(P, Q, r), D = !w && !c, V = (j) => {
1577
1578
  f?.({ currentPage: j, pageSize: y });
1578
1579
  }, se = (j) => t?.({ page: j, pageSize: y }) ?? "", le = (j) => {
1579
1580
  oe(j), f?.({ currentPage: 1, pageSize: j });
@@ -1583,21 +1584,21 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1583
1584
  asLink: void 0,
1584
1585
  hrefGetter: void 0
1585
1586
  }, ge = i ? "nav" : "div";
1586
- return k ? /* @__PURE__ */ s(ge, { className: pe, "data-testid": e, ref: ae, ...ne, children: /* @__PURE__ */ v(
1587
+ return k ? /* @__PURE__ */ s(ge, { className: pe, "data-testid": e, ref: ae, ...ne, children: /* @__PURE__ */ h(
1587
1588
  "div",
1588
1589
  {
1589
- className: S(`${h}__pagination-container`, {
1590
- [`${h}__pagination-container--with-page-size-select`]: !!o
1590
+ className: S(`${v}__pagination-container`, {
1591
+ [`${v}__pagination-container--with-page-size-select`]: !!o
1591
1592
  }),
1592
1593
  children: [
1593
- /* @__PURE__ */ v("div", { className: S(`${h}__page-navigation-container`), children: [
1594
- /* @__PURE__ */ v(
1594
+ /* @__PURE__ */ h("div", { className: S(`${v}__page-navigation-container`), children: [
1595
+ /* @__PURE__ */ h(
1595
1596
  tr,
1596
1597
  {
1597
1598
  ...W,
1598
1599
  linkElement: n,
1599
1600
  "aria-label": $,
1600
- className: S(`${h}__step-trigger`),
1601
+ className: S(`${v}__step-trigger`),
1601
1602
  "data-testid": `${e}-previous-step-trigger`,
1602
1603
  disabled: r === 1,
1603
1604
  onPageChange: V,
@@ -1608,8 +1609,8 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1608
1609
  /* @__PURE__ */ s(
1609
1610
  "span",
1610
1611
  {
1611
- className: S(`${h}__step-trigger-label`, {
1612
- [`${h}__step-trigger-label--not-icon-only`]: !D
1612
+ className: S(`${v}__step-trigger-label`, {
1613
+ [`${v}__step-trigger-label--not-icon-only`]: !D
1613
1614
  }),
1614
1615
  children: w
1615
1616
  }
@@ -1618,13 +1619,13 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1618
1619
  ]
1619
1620
  }
1620
1621
  ),
1621
- /* @__PURE__ */ v("div", { className: S(`${h}__page-trigger-container`), children: [
1622
+ /* @__PURE__ */ h("div", { className: S(`${v}__page-trigger-container`), children: [
1622
1623
  /* @__PURE__ */ s(
1623
1624
  Ir,
1624
1625
  {
1625
1626
  ...W,
1626
- className: S(`${h}__page-selector`, {
1627
- [`${h}__page-selector--visible`]: U.length > 3
1627
+ className: S(`${v}__page-selector`, {
1628
+ [`${v}__page-selector--visible`]: U.length > 3
1628
1629
  }),
1629
1630
  currentPage: r,
1630
1631
  "data-testid": `${e}-page-selector`,
@@ -1641,8 +1642,8 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1641
1642
  {
1642
1643
  ...W,
1643
1644
  linkElement: n,
1644
- className: S(`${h}__pages`, {
1645
- [`${h}__pages--visible`]: U.length <= 3
1645
+ className: S(`${v}__pages`, {
1646
+ [`${v}__pages--visible`]: U.length <= 3
1646
1647
  }),
1647
1648
  currentPage: r,
1648
1649
  "data-testid": `${e}-pages`,
@@ -1653,13 +1654,13 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1653
1654
  }
1654
1655
  )
1655
1656
  ] }),
1656
- /* @__PURE__ */ v(
1657
+ /* @__PURE__ */ h(
1657
1658
  tr,
1658
1659
  {
1659
1660
  ...W,
1660
1661
  linkElement: n,
1661
1662
  "aria-label": g,
1662
- className: S(`${h}__step-trigger`),
1663
+ className: S(`${v}__step-trigger`),
1663
1664
  "data-testid": `${e}-next-step-trigger`,
1664
1665
  disabled: r === k,
1665
1666
  onPageChange: V,
@@ -1669,8 +1670,8 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1669
1670
  /* @__PURE__ */ s(
1670
1671
  "span",
1671
1672
  {
1672
- className: S(`${h}__step-trigger-label`, {
1673
- [`${h}__step-trigger-label--not-icon-only`]: !D
1673
+ className: S(`${v}__step-trigger-label`, {
1674
+ [`${v}__step-trigger-label--not-icon-only`]: !D
1674
1675
  }),
1675
1676
  children: c
1676
1677
  }
@@ -1681,12 +1682,12 @@ const S = z.bind(Be), h = "purpur-pagination", Fi = A(
1681
1682
  }
1682
1683
  )
1683
1684
  ] }),
1684
- o && /* @__PURE__ */ s("div", { className: S(`${h}__page-size-select-container`), children: /* @__PURE__ */ s(
1685
+ o && /* @__PURE__ */ s("div", { className: S(`${v}__page-size-select-container`), children: /* @__PURE__ */ s(
1685
1686
  re,
1686
1687
  {
1687
1688
  ...i ? { asLink: !0, hrefGetter: t, navigationFunction: p } : { asLink: void 0, hrefGetter: void 0 },
1688
1689
  availablePageSizes: o,
1689
- className: S(`${h}__page-size-selector`),
1690
+ className: S(`${v}__page-size-selector`),
1690
1691
  "data-testid": `${e}-page-size-selector`,
1691
1692
  onPageSizeChange: le,
1692
1693
  pageSize: Q,