welcome-ui 8.0.0 → 8.0.3

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.
Files changed (90) hide show
  1. package/dist/AXB53BZF-BOEe01VW.mjs +25 -0
  2. package/dist/Accordion.mjs +17 -17
  3. package/dist/Alert.mjs +19 -19
  4. package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-B1IDizRs.mjs} +298 -295
  5. package/dist/Badge.mjs +1 -1
  6. package/dist/Breadcrumb.mjs +27 -26
  7. package/dist/Button.mjs +2 -2
  8. package/dist/Checkbox.mjs +1 -1
  9. package/dist/{CustomInput-D_13Gd_3.mjs → CustomInput-IA_gVoXd.mjs} +2991 -2859
  10. package/dist/DatePicker.mjs +4 -4
  11. package/dist/DateTimePicker.mjs +9 -9
  12. package/dist/DateTimePickerCommon.mjs +1 -1
  13. package/dist/Drawer.mjs +7 -7
  14. package/dist/DropdownMenu.mjs +262 -262
  15. package/dist/Field.mjs +25 -25
  16. package/dist/FileDrop.mjs +273 -267
  17. package/dist/FileUpload.mjs +26 -26
  18. package/dist/Files.mjs +1 -1
  19. package/dist/Hint.mjs +1 -1
  20. package/dist/{ITI7HKP4-BONrZ9Pq.mjs → ITI7HKP4-EL9KXYBU.mjs} +150 -150
  21. package/dist/Icons.mjs +88 -88
  22. package/dist/IconsFont.mjs +159 -159
  23. package/dist/InputText.mjs +1 -1
  24. package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-BzklVBKM.mjs} +70 -70
  25. package/dist/KUU7WJ55-CS4NemC6.mjs +61 -0
  26. package/dist/{LVA2YJMS-qFC9J-lt.mjs → LVA2YJMS-DDEmK0pp.mjs} +491 -488
  27. package/dist/Label.mjs +2 -2
  28. package/dist/Link.mjs +3 -3
  29. package/dist/MTZPJQMC-CMjAwC0N.mjs +15 -0
  30. package/dist/Modal.mjs +13 -13
  31. package/dist/NLEBE274-QOMV1l7e.mjs +84 -0
  32. package/dist/P2CTZE2T-Cl2w7OLV.mjs +300 -0
  33. package/dist/P4IRICAX-DezbJY4s.mjs +37 -0
  34. package/dist/Pagination.mjs +22 -22
  35. package/dist/Picker.mjs +2 -2
  36. package/dist/Popover.mjs +2 -2
  37. package/dist/QYJ6MIDR-Bb0O5xUM.mjs +97 -0
  38. package/dist/Radio.mjs +18 -18
  39. package/dist/RadioGroup.mjs +15 -15
  40. package/dist/RadioTab.mjs +9 -9
  41. package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-jn06-eLy.mjs} +17 -17
  42. package/dist/Search.mjs +2 -2
  43. package/dist/Select.mjs +719 -716
  44. package/dist/Shape.mjs +1 -1
  45. package/dist/Slider.mjs +1 -1
  46. package/dist/Swiper.mjs +284 -278
  47. package/dist/Tabs.mjs +128 -128
  48. package/dist/Tag.mjs +16 -16
  49. package/dist/Text.mjs +1 -1
  50. package/dist/Textarea.mjs +4 -4
  51. package/dist/TimePicker.mjs +6 -6
  52. package/dist/Toast.mjs +69 -69
  53. package/dist/Toggle.mjs +2 -2
  54. package/dist/Tooltip.mjs +60 -60
  55. package/dist/UniversalLink.mjs +8 -8
  56. package/dist/VEVQD5MH-CuegL0m0.mjs +20 -0
  57. package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-BMzoZtCu.mjs} +31 -33
  58. package/dist/VariantIcon.mjs +4 -4
  59. package/dist/WelcomeLoader.mjs +4862 -9223
  60. package/dist/X5NMLKT6-CvSCix-_.mjs +25 -0
  61. package/dist/YV4JVR4I-Bh7B7TET.mjs +344 -0
  62. package/dist/downshift.esm-D0ns_SQs.mjs +1082 -0
  63. package/dist/{field-styles-DLIhqG_8.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  64. package/dist/{index-BDeIsk2X.mjs → index-5PUh49rV.mjs} +56 -56
  65. package/dist/{index-DEJJvyGk.mjs → index-B0gDDiFm.mjs} +7 -7
  66. package/dist/{index-CExLVjET.mjs → index-B22SHR8h.mjs} +4 -4
  67. package/dist/index-BhcLigYU.mjs +77 -0
  68. package/dist/{index-BJAZgeHL.mjs → index-Bkl89twW.mjs} +4 -4
  69. package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
  70. package/dist/{index-BpRjq7lj.mjs → index-CQD9fgf_.mjs} +3 -3
  71. package/dist/{index-BRDOakbf.mjs → index-CmsWSKKs.mjs} +5 -5
  72. package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
  73. package/dist/{index-BrfXjmHY.mjs → index-wr_b5GSV.mjs} +6 -6
  74. package/dist/radio-group-RFyDp0KD.mjs +51 -0
  75. package/dist/theme.mjs +670 -615
  76. package/dist/{use-viewport-m3glsbna.mjs → use-viewport-CfklieD-.mjs} +5 -5
  77. package/dist/utils.mjs +29 -91
  78. package/package.json +13 -13
  79. package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
  80. package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
  81. package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
  82. package/dist/NLEBE274-C94QU78N.mjs +0 -84
  83. package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
  84. package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
  85. package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
  86. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
  87. package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
  88. package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
  89. package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
  90. package/dist/radio-group-CGC6DTFJ.mjs +0 -51
package/dist/Label.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import e from "react";
3
3
  import { w as u } from "./wrap-children-aq69jtFP.mjs";
4
- import o, { css as n, th as g } from "@xstyled/styled-components";
4
+ import o, { th as g, css as n } from "@xstyled/styled-components";
5
5
  import { shouldForwardProp as w, forwardRef as y } from "./System.mjs";
6
6
  import "./Icon.mjs";
7
7
  import { L as x } from "./index-BQtDgQBH.mjs";
@@ -22,7 +22,7 @@ const s = o.labelBox.withConfig({ shouldForwardProp: w })(
22
22
  margin-right: sm;
23
23
  }
24
24
 
25
- :last-child {
25
+ &:last-child {
26
26
  ${t && L};
27
27
  }
28
28
  }
package/dist/Link.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import i from "react";
3
- import h, { css as x, th as e, typography as g } from "@xstyled/styled-components";
3
+ import h, { th as e, typography as x, css as g } from "@xstyled/styled-components";
4
4
  import { UniversalLink as k } from "./UniversalLink.mjs";
5
5
  import { shouldForwardProp as y, forwardRef as $ } from "./System.mjs";
6
6
  import "./Icon.mjs";
7
7
  import { E as w } from "./index-DqBUFsqP.mjs";
8
8
  const E = h(k).withConfig({ shouldForwardProp: y })(
9
- ({ isExternal: t, variant: n = "primary" }) => x`
9
+ ({ isExternal: t, variant: n = "primary" }) => g`
10
10
  display: inline-flex;
11
11
  flex-direction: row;
12
12
  align-items: center;
@@ -24,7 +24,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
24
24
  ${e("links.default")};
25
25
  ${e(`links.${n}.default`)};
26
26
  ${t && e("links.withExternalLink")};
27
- ${g};
27
+ ${x};
28
28
  }
29
29
 
30
30
  &:hover,
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { D as e, c as r } from "./VGCJ63VH-BMzoZtCu.mjs";
3
+ import { v as t } from "./LVA2YJMS-DDEmK0pp.mjs";
4
+ var o = t(
5
+ [r],
6
+ [e]
7
+ ), x = o.useContext;
8
+ o.useScopedContext;
9
+ var i = o.useProviderContext, n = o.ContextProvider, s = o.ScopedContextProvider;
10
+ export {
11
+ s as P,
12
+ n as a,
13
+ x as b,
14
+ i as u
15
+ };
package/dist/Modal.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import o, { useState as G, useMemo as J, Children as D, useEffect as K, cloneElement as F } from "react";
3
- import i, { css as f, th as l, up as L, useTheme as v, system as Q } from "@xstyled/styled-components";
3
+ import i, { th as l, css as f, up as L, useTheme as w, system as Q } from "@xstyled/styled-components";
4
4
  import { Text as p } from "./Text.mjs";
5
5
  import { Box as $ } from "./Box.mjs";
6
6
  import { CloseButton as U } from "./CloseButton.mjs";
7
- import { D as H } from "./SYRFVSLH-cVmYtx36.mjs";
7
+ import { D as H } from "./SYRFVSLH-jn06-eLy.mjs";
8
8
  import { forwardRef as c } from "./System.mjs";
9
9
  import { StyledSwiper as X } from "./Swiper.mjs";
10
10
  import { IconsFont as Y } from "./IconsFont.mjs";
11
11
  import { Button as Z } from "./Button.mjs";
12
12
  import { Shape as ee } from "./Shape.mjs";
13
- import { u as te, D as oe } from "./JC64G2H7-Dey-8h60.mjs";
14
- import { D as ne } from "./AXB53BZF-CGoc4K3d.mjs";
13
+ import { D as te, u as oe } from "./JC64G2H7-BzklVBKM.mjs";
14
+ import { D as ne } from "./AXB53BZF-BOEe01VW.mjs";
15
15
  const S = i.divBox.withConfig({
16
16
  shouldForwardProp: (e) => !["hideOnInteractOutside"].includes(e)
17
17
  })(
@@ -91,7 +91,7 @@ const S = i.divBox.withConfig({
91
91
  `, ce = i.divBox`
92
92
  ${l("modals.footer.information")};
93
93
  `, W = ({ isOnHeader: e, ...t }) => {
94
- const n = v();
94
+ const n = w();
95
95
  return /* @__PURE__ */ o.createElement(
96
96
  H,
97
97
  {
@@ -114,7 +114,7 @@ const N = c(({ children: e, information: t, ...n }, r) => /* @__PURE__ */ o.crea
114
114
  N.displayName = "Footer";
115
115
  const T = c(
116
116
  ({ children: e, store: t, withClosingButton: n = !0, ...r }, s) => {
117
- const { borderWidths: u, space: d } = v(), [y, h] = G(!1), g = t.useState("contentElement"), B = t.useState("open"), m = J(
117
+ const { borderWidths: u, space: d } = w(), [y, h] = G(!1), g = t.useState("contentElement"), B = t.useState("open"), m = J(
118
118
  () => D.map(e, (a) => {
119
119
  if (o.isValidElement(a)) {
120
120
  const x = a.type;
@@ -217,7 +217,7 @@ const z = "calc(100vw - 2 * 2rem);", I = "calc(100vw - 2 * 1rem);", _ = "calc(10
217
217
  }
218
218
  `, O = i(p).attrs({ lines: 2, variant: "h4" })`
219
219
  margin: 0;
220
- `, b = "4rem", w = "6rem", ue = i.divBox`
220
+ `, b = "4rem", v = "6rem", ue = i.divBox`
221
221
  display: flex;
222
222
  flex-direction: column;
223
223
  border-radius: xxl;
@@ -230,7 +230,7 @@ const z = "calc(100vw - 2 * 2rem);", I = "calc(100vw - 2 * 1rem);", _ = "calc(10
230
230
  flex-shrink: 0;
231
231
 
232
232
  @media (min-width: md) {
233
- max-height: calc(100vh - 2 * 5rem - ${w});
233
+ max-height: calc(100vh - 2 * 5rem - ${v});
234
234
  }
235
235
  }
236
236
 
@@ -239,7 +239,7 @@ const z = "calc(100vw - 2 * 2rem);", I = "calc(100vw - 2 * 1rem);", _ = "calc(10
239
239
  max-height: calc(100vh - 2 * 5rem - ${b});
240
240
 
241
241
  @media (min-width: md) {
242
- max-height: calc(100vh - 2 * 5rem - ${w});
242
+ max-height: calc(100vh - 2 * 5rem - ${v});
243
243
  }
244
244
  }
245
245
  `, pe = c(
@@ -251,7 +251,7 @@ const z = "calc(100vw - 2 * 2rem);", I = "calc(100vw - 2 * 1rem);", _ = "calc(10
251
251
  flexDirection: "column",
252
252
  flexShrink: 0,
253
253
  gap: "xxs",
254
- h: { _: b, md: w },
254
+ h: { _: b, md: v },
255
255
  justifyContent: "center",
256
256
  px: { _: "md", md: "xl" },
257
257
  w: "100%"
@@ -302,7 +302,7 @@ const he = ({ children: e }) => /* @__PURE__ */ o.createElement(A, null, /* @__P
302
302
  });
303
303
  function Te(e) {
304
304
  const { onClose: t, setOpen: n, ...r } = e || {};
305
- return te({
305
+ return oe({
306
306
  animated: !0,
307
307
  setOpen: (u) => {
308
308
  !u && t && t(), n == null || n(u);
@@ -324,7 +324,7 @@ const xe = c(
324
324
  store: d,
325
325
  ...y
326
326
  }, h) => /* @__PURE__ */ o.createElement(
327
- oe,
327
+ te,
328
328
  {
329
329
  "aria-label": e,
330
330
  backdrop: n && /* @__PURE__ */ o.createElement(xe, { backdrop: n, hideOnInteractOutside: s }),
@@ -339,7 +339,7 @@ const xe = c(
339
339
  ), P = c((e, t) => /* @__PURE__ */ o.createElement(ae, { ref: t, ...e }));
340
340
  P.displayName = "Body";
341
341
  const ye = (e) => {
342
- const { modals: t } = v();
342
+ const { modals: t } = w();
343
343
  return /* @__PURE__ */ o.createElement("div", null, /* @__PURE__ */ o.createElement(ee, { ...t.cover, ...e }));
344
344
  }, Ee = c(({ as: e, store: t, ...n }, r) => /* @__PURE__ */ o.createElement(
345
345
  ne,
@@ -0,0 +1,84 @@
1
+ "use client";
2
+ import { C as U, a as A, u as T } from "./P2CTZE2T-Cl2w7OLV.mjs";
3
+ import { v as j, w, f as z, c as D, h as H, _ as M, x as O, j as $, l as q, y as B, b as v, d as G, e as J, g as p, z as K } from "./LVA2YJMS-DDEmK0pp.mjs";
4
+ import { u as L } from "./YV4JVR4I-Bh7B7TET.mjs";
5
+ import { useRef as Q, useEffect as R } from "react";
6
+ var m = j(
7
+ [A],
8
+ [U]
9
+ ), V = m.useContext, re = m.useProviderContext, ne = m.ScopedContextProvider, k = "input";
10
+ function W(u, r) {
11
+ if (r !== void 0)
12
+ return u != null && r != null ? r === u : !!r;
13
+ }
14
+ function X(u, r) {
15
+ return u === "input" && (!r || r === "radio");
16
+ }
17
+ var Y = D(function(r) {
18
+ var d = r, {
19
+ store: t,
20
+ name: c,
21
+ value: i,
22
+ checked: C
23
+ } = d, o = M(d, [
24
+ "store",
25
+ "name",
26
+ "value",
27
+ "checked"
28
+ ]);
29
+ const x = V();
30
+ t = t || x;
31
+ const a = O(o.id), l = Q(null), s = L(
32
+ t,
33
+ (e) => C ?? W(i, e == null ? void 0 : e.value)
34
+ );
35
+ R(() => {
36
+ !a || !s || (t == null ? void 0 : t.getState().activeId) === a || t == null || t.setActiveId(a);
37
+ }, [t, s, a]);
38
+ const P = o.onChange, S = $(l, k), n = X(S, o.type), I = q(o), [_, b] = B();
39
+ R(() => {
40
+ const e = l.current;
41
+ e && (n || (s !== void 0 && (e.checked = s), c !== void 0 && (e.name = c), i !== void 0 && (e.value = `${i}`)));
42
+ }, [_, n, s, c, i]);
43
+ const f = v((e) => {
44
+ if (I) {
45
+ e.preventDefault(), e.stopPropagation();
46
+ return;
47
+ }
48
+ (t == null ? void 0 : t.getState().value) !== i && (n || (e.currentTarget.checked = !0, b()), P == null || P(e), !e.defaultPrevented && (t == null || t.setValue(i)));
49
+ }), g = o.onClick, F = v((e) => {
50
+ g == null || g(e), !e.defaultPrevented && (n || f(e));
51
+ }), h = o.onFocus, y = v((e) => {
52
+ if (h == null || h(e), e.defaultPrevented || !n || !t) return;
53
+ const { moves: E, activeId: N } = t.getState();
54
+ E && (a && N !== a || f(e));
55
+ });
56
+ return o = G(p({
57
+ id: a,
58
+ role: n ? void 0 : "radio",
59
+ type: n ? "radio" : void 0,
60
+ "aria-checked": s
61
+ }, o), {
62
+ ref: J(l, o.ref),
63
+ onChange: f,
64
+ onClick: F,
65
+ onFocus: y
66
+ }), o = T(p({
67
+ store: t,
68
+ clickOnEnter: !n
69
+ }, o)), K(p({
70
+ name: n ? c : void 0,
71
+ value: n ? i : void 0,
72
+ checked: s
73
+ }, o));
74
+ }), ie = w(
75
+ z(function(r) {
76
+ const d = Y(r);
77
+ return H(k, d);
78
+ })
79
+ );
80
+ export {
81
+ ie as R,
82
+ ne as a,
83
+ re as u
84
+ };
@@ -0,0 +1,300 @@
1
+ "use client";
2
+ import { v as Y, p as $, I as Ce, c as G, J as xe, _ as J, x as q, d as S, e as Q, g as P, z as X, f as Z, h as ee, l as Se, b as D, K as Pe, L as O, o as F, M as we, u as j, N as he, O as Ee, E as ye, t as Te, k as Re, P as De, w as Oe } from "./LVA2YJMS-DDEmK0pp.mjs";
3
+ import { createContext as te, useRef as _, useEffect as Fe, useContext as _e, useCallback as Ae, useMemo as ke } from "react";
4
+ import { u as ze } from "./KUU7WJ55-CS4NemC6.mjs";
5
+ import { f as Ke } from "./YV4JVR4I-Bh7B7TET.mjs";
6
+ var w = Y(), Le = w.useContext;
7
+ w.useScopedContext;
8
+ w.useProviderContext;
9
+ var Ne = w.ContextProvider, Me = w.ScopedContextProvider, h = Y(
10
+ [Ne],
11
+ [Me]
12
+ ), Be = h.useContext;
13
+ h.useScopedContext;
14
+ var st = h.useProviderContext, ut = h.ContextProvider, at = h.ScopedContextProvider, He = te(
15
+ void 0
16
+ ), Ue = te(
17
+ void 0
18
+ ), Ve = { id: null };
19
+ function lt(r, n, o = !1) {
20
+ const t = r.findIndex((a) => a.id === n);
21
+ return [
22
+ ...r.slice(t + 1),
23
+ ...o ? [Ve] : [],
24
+ ...r.slice(0, t)
25
+ ];
26
+ }
27
+ function ct(r, n) {
28
+ return r.find((o) => !o.disabled);
29
+ }
30
+ function je(r, n) {
31
+ return n && r.item(n) || null;
32
+ }
33
+ function ft(r) {
34
+ const n = [];
35
+ for (const o of r) {
36
+ const t = n.find((a) => {
37
+ var d;
38
+ return ((d = a[0]) == null ? void 0 : d.rowId) === o.rowId;
39
+ });
40
+ t ? t.push(o) : n.push([o]);
41
+ }
42
+ return n;
43
+ }
44
+ function We(r, n = !1) {
45
+ if ($(r))
46
+ r.setSelectionRange(
47
+ n ? r.value.length : 0,
48
+ r.value.length
49
+ );
50
+ else if (r.isContentEditable) {
51
+ const o = Ce(r).getSelection();
52
+ o == null || o.selectAllChildren(r), n && (o == null || o.collapseToEnd());
53
+ }
54
+ }
55
+ var A = Symbol("FOCUS_SILENTLY");
56
+ function Ye(r) {
57
+ r[A] = !0, r.focus({ preventScroll: !0 });
58
+ }
59
+ function dt(r) {
60
+ const n = r[A];
61
+ return delete r[A], n;
62
+ }
63
+ function re(r, n, o) {
64
+ return !(!n || n === o || !r.item(n.id));
65
+ }
66
+ var $e = "div", ne = G(
67
+ function(n) {
68
+ var o = n, {
69
+ store: t,
70
+ shouldRegisterItem: a = !0,
71
+ getItem: d = xe,
72
+ element: g
73
+ } = o, v = J(o, [
74
+ "store",
75
+ "shouldRegisterItem",
76
+ "getItem",
77
+ // @ts-expect-error This prop may come from a collection renderer.
78
+ "element"
79
+ ]);
80
+ const c = Le();
81
+ t = t || c;
82
+ const m = q(v.id), p = _(g);
83
+ return Fe(() => {
84
+ const i = p.current;
85
+ if (!m || !i || !a) return;
86
+ const b = d({ id: m, element: i });
87
+ return t == null ? void 0 : t.renderItem(b);
88
+ }, [m, a, d, t]), v = S(P({}, v), {
89
+ ref: Q(p, v.ref)
90
+ }), X(v);
91
+ }
92
+ );
93
+ Z(function(n) {
94
+ const o = ne(n);
95
+ return ee($e, o);
96
+ });
97
+ var Ge = "button";
98
+ function Je(r) {
99
+ return O(r) ? !0 : r.tagName === "INPUT" && !Re(r);
100
+ }
101
+ function qe(r, n = !1) {
102
+ const o = r.clientHeight, { top: t } = r.getBoundingClientRect(), a = Math.max(o * 0.875, o - 40) * 1.5, d = n ? o - a + t : a + t;
103
+ return r.tagName === "HTML" ? d + r.scrollTop : d;
104
+ }
105
+ function Qe(r, n = !1) {
106
+ const { top: o } = r.getBoundingClientRect();
107
+ return n ? o + r.clientHeight : o;
108
+ }
109
+ function W(r, n, o, t = !1) {
110
+ var a;
111
+ if (!n || !o) return;
112
+ const { renderedItems: d } = n.getState(), g = De(r);
113
+ if (!g) return;
114
+ const v = qe(g, t);
115
+ let c, m;
116
+ for (let p = 0; p < d.length; p += 1) {
117
+ const i = c;
118
+ if (c = o(p), !c) break;
119
+ if (c === i) continue;
120
+ const b = (a = je(n, c)) == null ? void 0 : a.element;
121
+ if (!b) continue;
122
+ const C = Qe(b, t) - v, l = Math.abs(C);
123
+ if (t && C <= 0 || !t && C >= 0) {
124
+ m !== void 0 && m < l && (c = i);
125
+ break;
126
+ }
127
+ m = l;
128
+ }
129
+ return c;
130
+ }
131
+ function Xe(r, n) {
132
+ return F(r) ? !1 : re(n, r.target);
133
+ }
134
+ var Ze = G(
135
+ function(n) {
136
+ var o = n, {
137
+ store: t,
138
+ rowId: a,
139
+ preventScrollOnKeyDown: d = !1,
140
+ moveOnKeyPress: g = !0,
141
+ tabbable: v = !1,
142
+ getItem: c,
143
+ "aria-setsize": m,
144
+ "aria-posinset": p
145
+ } = o, i = J(o, [
146
+ "store",
147
+ "rowId",
148
+ "preventScrollOnKeyDown",
149
+ "moveOnKeyPress",
150
+ "tabbable",
151
+ "getItem",
152
+ "aria-setsize",
153
+ "aria-posinset"
154
+ ]);
155
+ const b = Be();
156
+ t = t || b;
157
+ const f = q(i.id), C = _(null), l = _e(Ue), k = Se(i) && !i.accessibleWhenDisabled, {
158
+ rowId: y,
159
+ baseElement: z,
160
+ isActiveItem: oe,
161
+ ariaSetSize: ie,
162
+ ariaPosInSet: se,
163
+ isTabbable: ue
164
+ } = Ke(t, {
165
+ rowId(e) {
166
+ if (a) return a;
167
+ if (e && l != null && l.baseElement && l.baseElement === e.baseElement)
168
+ return l.id;
169
+ },
170
+ baseElement(e) {
171
+ return (e == null ? void 0 : e.baseElement) || void 0;
172
+ },
173
+ isActiveItem(e) {
174
+ return !!e && e.activeId === f;
175
+ },
176
+ ariaSetSize(e) {
177
+ if (m != null) return m;
178
+ if (e && l != null && l.ariaSetSize && l.baseElement === e.baseElement)
179
+ return l.ariaSetSize;
180
+ },
181
+ ariaPosInSet(e) {
182
+ if (p != null) return p;
183
+ if (!e || !(l != null && l.ariaPosInSet) || l.baseElement !== e.baseElement) return;
184
+ const s = e.renderedItems.filter(
185
+ (u) => u.rowId === y
186
+ );
187
+ return l.ariaPosInSet + s.findIndex((u) => u.id === f);
188
+ },
189
+ isTabbable(e) {
190
+ if (!(e != null && e.renderedItems.length)) return !0;
191
+ if (e.virtualFocus) return !1;
192
+ if (v) return !0;
193
+ if (e.activeId === null) return !1;
194
+ const s = t == null ? void 0 : t.item(e.activeId);
195
+ return s != null && s.disabled || !(s != null && s.element) ? !0 : e.activeId === f;
196
+ }
197
+ }), ae = Ae(
198
+ (e) => {
199
+ var s;
200
+ const u = S(P({}, e), {
201
+ id: f || e.id,
202
+ rowId: y,
203
+ disabled: !!k,
204
+ children: (s = e.element) == null ? void 0 : s.textContent
205
+ });
206
+ return c ? c(u) : u;
207
+ },
208
+ [f, y, k, c]
209
+ ), K = i.onFocus, T = _(!1), le = D((e) => {
210
+ if (K == null || K(e), e.defaultPrevented || Pe(e) || !f || !t || Xe(e, t)) return;
211
+ const { virtualFocus: s, baseElement: u } = t.getState();
212
+ if (t.setActiveId(f), O(e.currentTarget) && We(e.currentTarget), !s || !F(e) || Je(e.currentTarget) || !(u != null && u.isConnected)) return;
213
+ we() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
214
+ block: "nearest",
215
+ inline: "nearest"
216
+ }), T.current = !0, e.relatedTarget === u || re(t, e.relatedTarget) ? Ye(u) : u.focus();
217
+ }), L = i.onBlurCapture, ce = D((e) => {
218
+ if (L == null || L(e), e.defaultPrevented) return;
219
+ const s = t == null ? void 0 : t.getState();
220
+ s != null && s.virtualFocus && T.current && (T.current = !1, e.preventDefault(), e.stopPropagation());
221
+ }), N = i.onKeyDown, fe = j(d), de = j(g), me = D((e) => {
222
+ if (N == null || N(e), e.defaultPrevented || !F(e) || !t) return;
223
+ const { currentTarget: s } = e, u = t.getState(), R = t.item(f), I = !!(R != null && R.rowId), E = u.orientation !== "horizontal", x = u.orientation !== "vertical", B = () => !!(I || x || !u.baseElement || !$(u.baseElement)), H = {
224
+ ArrowUp: (I || E) && t.up,
225
+ ArrowRight: (I || x) && t.next,
226
+ ArrowDown: (I || E) && t.down,
227
+ ArrowLeft: (I || x) && t.previous,
228
+ Home: () => {
229
+ if (B())
230
+ return !I || e.ctrlKey ? t == null ? void 0 : t.first() : t == null ? void 0 : t.previous(-1);
231
+ },
232
+ End: () => {
233
+ if (B())
234
+ return !I || e.ctrlKey ? t == null ? void 0 : t.last() : t == null ? void 0 : t.next(-1);
235
+ },
236
+ PageUp: () => W(s, t, t == null ? void 0 : t.up, !0),
237
+ PageDown: () => W(s, t, t == null ? void 0 : t.down)
238
+ }[e.key];
239
+ if (H) {
240
+ if (O(s)) {
241
+ const V = he(s), ve = x && e.key === "ArrowLeft", pe = x && e.key === "ArrowRight", Ie = E && e.key === "ArrowUp", ge = E && e.key === "ArrowDown";
242
+ if (pe || ge) {
243
+ const { length: be } = Ee(s);
244
+ if (V.end !== be) return;
245
+ } else if ((ve || Ie) && V.start !== 0) return;
246
+ }
247
+ const U = H();
248
+ if (fe(e) || U !== void 0) {
249
+ if (!de(e)) return;
250
+ e.preventDefault(), t.move(U);
251
+ }
252
+ }
253
+ }), M = ke(
254
+ () => ({ id: f, baseElement: z }),
255
+ [f, z]
256
+ );
257
+ return i = ye(
258
+ i,
259
+ (e) => /* @__PURE__ */ Te.jsx(He.Provider, { value: M, children: e }),
260
+ [M]
261
+ ), i = S(P({
262
+ id: f,
263
+ "data-active-item": oe || void 0
264
+ }, i), {
265
+ ref: Q(C, i.ref),
266
+ tabIndex: ue ? i.tabIndex : -1,
267
+ onFocus: le,
268
+ onBlurCapture: ce,
269
+ onKeyDown: me
270
+ }), i = ze(i), i = ne(S(P({
271
+ store: t
272
+ }, i), {
273
+ getItem: ae,
274
+ shouldRegisterItem: f ? i.shouldRegisterItem : !1
275
+ })), X(S(P({}, i), {
276
+ "aria-setsize": ie,
277
+ "aria-posinset": se
278
+ }));
279
+ }
280
+ ), mt = Oe(
281
+ Z(function(n) {
282
+ const o = Ze(n);
283
+ return ee(Ge, o);
284
+ })
285
+ );
286
+ export {
287
+ at as C,
288
+ ut as a,
289
+ st as b,
290
+ ft as c,
291
+ mt as d,
292
+ ne as e,
293
+ ct as f,
294
+ je as g,
295
+ Be as h,
296
+ re as i,
297
+ lt as j,
298
+ dt as s,
299
+ Ze as u
300
+ };
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { u as P } from "./X5NMLKT6-CvSCix-_.mjs";
3
+ import { u as _ } from "./VGCJ63VH-BMzoZtCu.mjs";
4
+ import { f as b, c as k, _ as x, i as S, u as O, a as R, b as N, d as h, e as w, g as c, h as y } from "./LVA2YJMS-DDEmK0pp.mjs";
5
+ import { useRef as B, useState as M, useEffect as T } from "react";
6
+ var V = "button", j = Symbol("disclosure"), H = k(
7
+ function(n) {
8
+ var o = n, { store: e, toggleOnClick: p = !0 } = o, s = x(o, ["store", "toggleOnClick"]);
9
+ const f = _();
10
+ e = e || f, S(
11
+ e,
12
+ process.env.NODE_ENV !== "production" && "Disclosure must receive a `store` prop or be wrapped in a DisclosureProvider component."
13
+ );
14
+ const u = B(null), [m, v] = M(!1), r = e.useState("disclosureElement"), a = e.useState("open");
15
+ T(() => {
16
+ let t = r === u.current;
17
+ r != null && r.isConnected || (e == null || e.setDisclosureElement(u.current), t = !0), v(a && t);
18
+ }, [r, e, a]);
19
+ const l = s.onClick, D = O(p), [E, g] = R(s, j, !0), C = N((t) => {
20
+ l == null || l(t), !t.defaultPrevented && (E || D(t) && (e == null || e.setDisclosureElement(t.currentTarget), e == null || e.toggle()));
21
+ }), i = e.useState("contentElement");
22
+ return s = h(c(c({
23
+ "aria-expanded": m,
24
+ "aria-controls": i == null ? void 0 : i.id
25
+ }, g), s), {
26
+ ref: w(u, s.ref),
27
+ onClick: C
28
+ }), s = P(s), s;
29
+ }
30
+ ), G = b(function(n) {
31
+ const o = H(n);
32
+ return y(V, o);
33
+ });
34
+ export {
35
+ G as D,
36
+ H as u
37
+ };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import i, { useMemo as j, useRef as R, useCallback as y } from "react";
3
- import m, { th as x, css as E } from "@xstyled/styled-components";
3
+ import m, { th as v, css as x } from "@xstyled/styled-components";
4
4
  import { h as z } from "./hide-focus-rings-root-BNyva1yb.mjs";
5
5
  import "./Icon.mjs";
6
- import { L as G } from "./index-BpRjq7lj.mjs";
7
- import { R as F } from "./index-BRDOakbf.mjs";
6
+ import { L as G } from "./index-CQD9fgf_.mjs";
7
+ import { R as F } from "./index-CmsWSKKs.mjs";
8
8
  import { forwardRef as M } from "./System.mjs";
9
9
  const a = 5, S = 3;
10
10
  function d(e, t) {
@@ -43,13 +43,13 @@ const O = m.navBox``, Q = m.ulBox`
43
43
  margin-right: 0;
44
44
  }
45
45
  `, U = m.span`
46
- ${x("paginations.default")};
46
+ ${v("paginations.default")};
47
47
  display: flex;
48
48
  justify-content: center;
49
49
  align-items: center;
50
- `, p = E`
51
- ${x("paginations.default")};
52
- ${x("paginations.item")};
50
+ `, p = x`
51
+ ${v("paginations.default")};
52
+ ${v("paginations.item")};
53
53
  border-radius: 50%;
54
54
  display: flex;
55
55
  align-items: center;
@@ -66,17 +66,17 @@ const O = m.navBox``, Q = m.ulBox`
66
66
  box-shadow: none;
67
67
  }
68
68
  `, B = m.aBox(
69
- (e) => E`
69
+ (e) => x`
70
70
  ${p};
71
- ${e["aria-disabled"] && E`
71
+ ${e["aria-disabled"] && x`
72
72
  color: beige-70;
73
73
  background-color: beige-40;
74
74
  `}
75
75
  `
76
76
  ), V = m.aBox(
77
- (e) => E`
77
+ (e) => x`
78
78
  ${p};
79
- ${e["aria-current"] && x("paginations.active")}
79
+ ${e["aria-current"] && v("paginations.active")}
80
80
  `
81
81
  ), C = M(
82
82
  ({
@@ -91,18 +91,18 @@ const O = m.navBox``, Q = m.ulBox`
91
91
  rightArrow: A,
92
92
  ...D
93
93
  }, L) => {
94
- const w = K({ page: n, pageCount: u, rangeDisplay: l }), k = R(null), v = R(null), h = n === 1, $ = n === u, N = y(
94
+ const w = K({ page: n, pageCount: u, rangeDisplay: l }), $ = R(null), k = R(null), E = n === 1, h = n === u, N = y(
95
95
  (o) => {
96
96
  o.preventDefault();
97
97
  const f = n - 1;
98
- f === 1 && k.current.focus(), c(f);
98
+ f === 1 && $.current.focus(), c(f);
99
99
  },
100
100
  [n, c]
101
101
  ), P = y(
102
102
  (o) => {
103
103
  o.preventDefault();
104
104
  const f = n + 1;
105
- f === u && v.current.focus(), c(f);
105
+ f === u && k.current.focus(), c(f);
106
106
  },
107
107
  [n, u, c]
108
108
  );
@@ -118,11 +118,11 @@ const O = m.navBox``, Q = m.ulBox`
118
118
  /* @__PURE__ */ i.createElement(Q, null, /* @__PURE__ */ i.createElement(b, null, /* @__PURE__ */ i.createElement(
119
119
  B,
120
120
  {
121
- "aria-disabled": h,
121
+ "aria-disabled": E,
122
122
  "data-testid": t ? `${t}-arrow-prev` : void 0,
123
- href: r ? r(h ? n : n - 1) : "",
124
- onClick: h ? void 0 : N,
125
- ref: k
123
+ href: r ? r(E ? n : n - 1) : "",
124
+ onClick: E ? void 0 : N,
125
+ ref: $
126
126
  },
127
127
  s || /* @__PURE__ */ i.createElement(G, { size: "sm" })
128
128
  )), w.map(
@@ -144,11 +144,11 @@ const O = m.navBox``, Q = m.ulBox`
144
144
  ), /* @__PURE__ */ i.createElement(b, null, /* @__PURE__ */ i.createElement(
145
145
  B,
146
146
  {
147
- "aria-disabled": $,
147
+ "aria-disabled": h,
148
148
  "data-testid": t ? `${t}-arrow-next` : void 0,
149
- href: r ? r($ ? n : n + 1) : "",
150
- onClick: $ ? void 0 : P,
151
- ref: v
149
+ href: r ? r(h ? n : n + 1) : "",
150
+ onClick: h ? void 0 : P,
151
+ ref: k
152
152
  },
153
153
  A || /* @__PURE__ */ i.createElement(F, { size: "sm" })
154
154
  )))