@studiolxd/brand 48.0.0 → 49.0.0

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 (42) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/_shared/tokens.js +0 -1
  3. package/dist/_shared/untrustedtext.js +27 -26
  4. package/dist/_types/atoms/TypingIndicator/TypingIndicator.d.ts +29 -2
  5. package/dist/_types/messages/BrandMessages.d.ts +25 -1
  6. package/dist/_types/messages/index.d.ts +1 -1
  7. package/dist/_types/molecules/AssistantMessage/AssistantMessage.d.ts +15 -1
  8. package/dist/_types/molecules/ConversationList/ConversationList.d.ts +42 -8
  9. package/dist/_types/molecules/FilterBar/FilterBar.d.ts +4 -3
  10. package/dist/_types/molecules/MessageComposer/MessageComposer.d.ts +24 -1
  11. package/dist/_types/molecules/Pagination/Pagination.d.ts +16 -2
  12. package/dist/_types/organisms/AnnotationThread/AnnotationThread.d.ts +52 -7
  13. package/dist/_types/organisms/ConversationThread/ConversationThread.d.ts +26 -3
  14. package/dist/_types/templates/ChatShell/ChatShell.d.ts +22 -4
  15. package/dist/_types/templates/ConnectorAuth/ConnectorAuthShell.d.ts +6 -1
  16. package/dist/_types/templates/ConnectorAuth/ConnectorConsentPage.d.ts +52 -18
  17. package/dist/_types/templates/ConnectorAuth/ConnectorExternalSignInPage.d.ts +57 -17
  18. package/dist/_types/templates/ConnectorAuth/ConnectorRejectionPage.d.ts +59 -15
  19. package/dist/_types/templates/ConnectorAuth/ConnectorRequestSummary.d.ts +43 -12
  20. package/dist/_types/templates/ConnectorAuth/ConnectorSignInPage.d.ts +46 -12
  21. package/dist/_types/templates/ConnectorAuth/UntrustedText.d.ts +31 -4
  22. package/dist/annotation-thread.js +49 -46
  23. package/dist/assistant-message.js +12 -9
  24. package/dist/brand.css +2 -4
  25. package/dist/chat-shell.js +50 -49
  26. package/dist/connector-consent-page.js +58 -68
  27. package/dist/connector-external-sign-in-page.js +22 -28
  28. package/dist/connector-rejection-page.js +31 -62
  29. package/dist/connector-request-summary.js +22 -20
  30. package/dist/connector-sign-in-page.js +21 -25
  31. package/dist/conversation-list.js +56 -55
  32. package/dist/conversation-thread.js +33 -31
  33. package/dist/filter-bar.css +1 -1
  34. package/dist/message-composer.js +38 -37
  35. package/dist/pagination.js +12 -12
  36. package/dist/tokens.css +2 -4
  37. package/dist/typing-indicator.js +12 -9
  38. package/package.json +1 -1
  39. package/src/tokens/molecules/filter-bar.css +1 -2
  40. package/src/tokens/scss/molecules/_filter-bar.scss +1 -2
  41. package/src/tokens/surface-public.css +0 -1
  42. package/src/tokens/tokens.json +0 -1
@@ -1,95 +1,96 @@
1
1
  'use client';
2
2
  import './conversation-list.css';
3
- import { Icon as e } from "./icon.js";
4
- import { Button as t } from "./button.js";
5
- import { Skeleton as n } from "./skeleton.js";
6
- import { Tooltip as r } from "./tooltip.js";
7
- import { Alert as i } from "./alert.js";
8
- import { EmptyState as a } from "./empty-state.js";
9
- import { forwardRef as o, useState as s } from "react";
10
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { Icon as t } from "./icon.js";
5
+ import { Button as n } from "./button.js";
6
+ import { Skeleton as r } from "./skeleton.js";
7
+ import { Tooltip as i } from "./tooltip.js";
8
+ import { Alert as a } from "./alert.js";
9
+ import { EmptyState as o } from "./empty-state.js";
10
+ import { forwardRef as s, useState as c } from "react";
11
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
12
  //#region src/stories/molecules/ConversationList/ConversationList.tsx
12
- function u(e) {
13
+ function d(e) {
13
14
  return e.scrollWidth > e.clientWidth + 1;
14
15
  }
15
- var d = o(function({ conversations: o, activeId: d, onNew: f, onSelect: p, onDelete: m, newLabel: h = "Nueva conversación", navLabel: g = "Conversaciones", deleteLabel: _ = (e) => `Eliminar conversación "${e}"`, isLoading: v = !1, loadingCount: y = 4, error: b, emptyMessage: x = "Todavía no hay conversaciones", errorTitle: S = "No se pudieron cargar las conversaciones", className: C, ...w }, T) {
16
- let [E, D] = s(null), O = b === void 0 ? v ? "loading" : o.length === 0 ? "empty" : "list" : "error";
17
- return /* @__PURE__ */ l("div", {
18
- ref: T,
19
- className: `conversation-list${C ? ` ${C}` : ""}`,
20
- ...w,
21
- children: [/* @__PURE__ */ c("div", {
16
+ var f = s(function({ conversations: s, activeId: f, onNew: p, onSelect: m, onDelete: h, newLabel: g, navLabel: _, deleteLabel: v, isLoading: y = !1, loadingCount: b = 4, error: x, emptyMessage: S, errorTitle: C, className: w, ...T }, E) {
17
+ let [D, O] = c(null), k = e("conversationList"), A = x === void 0 ? y ? "loading" : s.length === 0 ? "empty" : "list" : "error";
18
+ return /* @__PURE__ */ u("div", {
19
+ ref: E,
20
+ className: `conversation-list${w ? ` ${w}` : ""}`,
21
+ ...T,
22
+ children: [/* @__PURE__ */ l("div", {
22
23
  className: "conversation-list__header",
23
- children: /* @__PURE__ */ c(t, {
24
+ children: /* @__PURE__ */ l(n, {
24
25
  variant: "outline",
25
26
  block: !0,
26
- onClick: f,
27
- children: h
27
+ onClick: p,
28
+ children: k("new", g)
28
29
  })
29
- }), /* @__PURE__ */ l("nav", {
30
- "aria-label": g,
30
+ }), /* @__PURE__ */ u("nav", {
31
+ "aria-label": k("nav", _),
31
32
  className: "conversation-list__nav",
32
- "aria-busy": v || void 0,
33
+ "aria-busy": y || void 0,
33
34
  children: [
34
- O === "error" && /* @__PURE__ */ c(i, {
35
+ A === "error" && /* @__PURE__ */ l(a, {
35
36
  variant: "error",
36
- title: S,
37
- description: b,
37
+ title: k("error", C),
38
+ description: x,
38
39
  className: "conversation-list__state"
39
40
  }),
40
- O === "loading" && /* @__PURE__ */ c("div", {
41
+ A === "loading" && /* @__PURE__ */ l("div", {
41
42
  className: "conversation-list__loading",
42
- children: Array.from({ length: y }, (e, t) => /* @__PURE__ */ c(n, {}, t))
43
+ children: Array.from({ length: b }, (e, t) => /* @__PURE__ */ l(r, {}, t))
43
44
  }),
44
- O === "empty" && /* @__PURE__ */ c(a, {
45
+ A === "empty" && /* @__PURE__ */ l(o, {
45
46
  size: "sm",
46
- title: x,
47
+ title: k("empty", S),
47
48
  className: "conversation-list__state"
48
49
  }),
49
- O === "list" && /* @__PURE__ */ c("ul", {
50
+ A === "list" && /* @__PURE__ */ l("ul", {
50
51
  className: "conversation-list__items",
51
52
  role: "list",
52
- children: o.map((n) => {
53
- let i = n.id === d;
54
- return /* @__PURE__ */ l("li", {
53
+ children: s.map((e) => {
54
+ let r = e.id === f;
55
+ return /* @__PURE__ */ u("li", {
55
56
  className: "conversation-list__item",
56
- children: [/* @__PURE__ */ c(r, {
57
- label: n.label,
57
+ children: [/* @__PURE__ */ l(i, {
58
+ label: e.label,
58
59
  describe: !1,
59
- open: E === n.id,
60
+ open: D === e.id,
60
61
  onOpenChange: (e) => {
61
- e || D(null);
62
+ e || O(null);
62
63
  },
63
- onPointerEnter: (e) => {
64
- u(e.currentTarget) && D(n.id);
64
+ onPointerEnter: (t) => {
65
+ d(t.currentTarget) && O(e.id);
65
66
  },
66
- onPointerLeave: () => D(null),
67
- onFocus: (e) => {
68
- u(e.currentTarget) && D(n.id);
67
+ onPointerLeave: () => O(null),
68
+ onFocus: (t) => {
69
+ d(t.currentTarget) && O(e.id);
69
70
  },
70
- onBlur: () => D(null),
71
- children: /* @__PURE__ */ c("button", {
71
+ onBlur: () => O(null),
72
+ children: /* @__PURE__ */ l("button", {
72
73
  type: "button",
73
- className: `conversation-list__label${i ? " conversation-list__label--active" : ""}`,
74
- "aria-current": i ? "page" : void 0,
75
- onClick: () => p(n.id),
76
- children: n.label
74
+ className: `conversation-list__label${r ? " conversation-list__label--active" : ""}`,
75
+ "aria-current": r ? "page" : void 0,
76
+ onClick: () => m(e.id),
77
+ children: e.label
77
78
  })
78
- }), /* @__PURE__ */ c(t, {
79
+ }), /* @__PURE__ */ l(n, {
79
80
  variant: "ghost",
80
81
  size: "sm",
81
82
  iconOnly: !0,
82
- "aria-label": _(n.label),
83
+ "aria-label": k("delete", v)(e.label),
83
84
  className: "conversation-list__delete",
84
- onClick: (e) => {
85
- e.stopPropagation(), m(n.id);
85
+ onClick: (t) => {
86
+ t.stopPropagation(), h(e.id);
86
87
  },
87
- children: /* @__PURE__ */ c(e, {
88
+ children: /* @__PURE__ */ l(t, {
88
89
  name: "close",
89
90
  size: "sm"
90
91
  })
91
92
  })]
92
- }, n.id);
93
+ }, e.id);
93
94
  })
94
95
  })
95
96
  ]
@@ -97,4 +98,4 @@ var d = o(function({ conversations: o, activeId: d, onNew: f, onSelect: p, onDel
97
98
  });
98
99
  });
99
100
  //#endregion
100
- export { d as ConversationList };
101
+ export { f as ConversationList };
@@ -1,42 +1,44 @@
1
1
  'use client';
2
2
  import './conversation-thread.css';
3
- import { UserMessage as e } from "./user-message.js";
4
- import { AssistantMessage as t } from "./assistant-message.js";
5
- import { forwardRef as n, useEffect as r, useRef as i } from "react";
6
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { UserMessage as t } from "./user-message.js";
5
+ import { AssistantMessage as n } from "./assistant-message.js";
6
+ import { forwardRef as r, useEffect as i, useRef as a } from "react";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
8
  //#region src/stories/organisms/ConversationThread/ConversationThread.tsx
8
- function s() {
9
+ function c() {
9
10
  return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
10
11
  }
11
- var c = n(function({ messages: n = [], children: c, streamingLabel: l, ariaLabel: u = "Conversación", locale: d, timestampFormat: f, className: p, ...m }, h) {
12
- let g = i(null);
13
- return r(() => {
14
- g.current?.scrollIntoView({ behavior: s() });
15
- }, [n, c]), /* @__PURE__ */ o("div", {
16
- ref: h,
17
- className: `conversation-thread${p ? ` ${p}` : ""}`,
12
+ var l = r(function({ messages: r = [], children: l, streamingName: u, streamingLabel: d, ariaLabel: f, locale: p, timestampFormat: m, className: h, ...g }, _) {
13
+ let v = a(null), y = e("conversationThread");
14
+ return i(() => {
15
+ v.current?.scrollIntoView({ behavior: c() });
16
+ }, [r, l]), /* @__PURE__ */ s("div", {
17
+ ref: _,
18
+ className: `conversation-thread${h ? ` ${h}` : ""}`,
18
19
  role: "log",
19
- "aria-label": u,
20
- "data-content": c == null ? "messages" : "children",
21
- ...m,
22
- children: [c ?? n.map((n) => n.role === "user" ? /* @__PURE__ */ a(e, {
23
- timestamp: n.timestamp,
24
- locale: d,
25
- timestampFormat: f,
26
- children: n.content
27
- }, n.id) : /* @__PURE__ */ a(t, {
28
- model: n.model,
29
- timestamp: n.timestamp,
30
- locale: d,
31
- timestampFormat: f,
32
- isStreaming: n.isStreaming,
33
- streamingLabel: l,
34
- children: n.content
35
- }, n.id)), /* @__PURE__ */ a("div", {
36
- ref: g,
20
+ "aria-label": y("label", f),
21
+ "data-content": l == null ? "messages" : "children",
22
+ ...g,
23
+ children: [l ?? r.map((e) => e.role === "user" ? /* @__PURE__ */ o(t, {
24
+ timestamp: e.timestamp,
25
+ locale: p,
26
+ timestampFormat: m,
27
+ children: e.content
28
+ }, e.id) : /* @__PURE__ */ o(n, {
29
+ model: e.model,
30
+ timestamp: e.timestamp,
31
+ locale: p,
32
+ timestampFormat: m,
33
+ isStreaming: e.isStreaming,
34
+ streamingName: u,
35
+ streamingLabel: d,
36
+ children: e.content
37
+ }, e.id)), /* @__PURE__ */ o("div", {
38
+ ref: v,
37
39
  "aria-hidden": "true"
38
40
  })]
39
41
  });
40
42
  });
41
43
  //#endregion
42
- export { c as ConversationThread };
44
+ export { l as ConversationThread };
@@ -1 +1 @@
1
- .filter-bar{gap:var(--filter-bar-gap);flex-direction:column;display:flex}.filter-bar__search{inline-size:100%}.filter-bar__row{column-gap:var(--filter-bar-column-gap);row-gap:var(--filter-bar-row-gap);grid-template-columns:1fr;display:grid}.filter-bar__filters{display:contents}.filter-bar__filter{min-inline-size:0}.filter-bar__actions{align-items:stretch;gap:var(--filter-bar-actions-gap);flex-direction:column;min-inline-size:0;display:flex}.filter-bar__actions>*{inline-size:100%}@media (width>=768px){.filter-bar__row{grid-template-columns:repeat(auto-fill, minmax(min(var(--filter-bar-column-min-inline-size), 100%), 1fr))}.filter-bar__actions{flex-flow:wrap;align-items:center}.filter-bar__actions>*{inline-size:auto}:is(.filter-bar__row:has(.label:not(.visually-hidden)) .filter-bar__filter:not(:has(.label:not(.visually-hidden))),.filter-bar__row:has(.label:not(.visually-hidden))>.filter-bar__actions){align-self:start;padding-block-start:var(--filter-bar-label-offset)}.filter-bar__row:has(.label:not(.visually-hidden)) .filter-bar__filter:not(:has(.label:not(.visually-hidden))){block-size:calc(var(--filter-bar-label-offset) + var(--filter-bar-control-block-size));flex-direction:column;justify-content:center;display:flex}.filter-bar__row:has(.label:not(.visually-hidden))>.filter-bar__actions{min-block-size:calc(var(--filter-bar-label-offset) + var(--filter-bar-control-block-size))}}
1
+ .filter-bar{gap:var(--filter-bar-gap);flex-direction:column;display:flex}.filter-bar__search{inline-size:100%}.filter-bar__row{column-gap:var(--filter-bar-column-gap);row-gap:var(--filter-bar-row-gap);grid-template-columns:1fr;display:grid}.filter-bar__filters{display:contents}.filter-bar__filter{min-inline-size:0}.filter-bar__actions{align-items:stretch;gap:var(--filter-bar-actions-gap);flex-direction:column;min-inline-size:0;display:flex}.filter-bar__actions>*{inline-size:100%}@media (width>=768px){.filter-bar__row{grid-template-columns:repeat(auto-fit, minmax(calc((100% - var(--filter-bar-column-gap)) / 2), 1fr))}.filter-bar__actions{flex-flow:wrap;align-items:center}.filter-bar__actions>*{inline-size:auto}:is(.filter-bar__row:has(.label:not(.visually-hidden)) .filter-bar__filter:not(:has(.label:not(.visually-hidden))),.filter-bar__row:has(.label:not(.visually-hidden))>.filter-bar__actions){align-self:start;padding-block-start:var(--filter-bar-label-offset)}.filter-bar__row:has(.label:not(.visually-hidden)) .filter-bar__filter:not(:has(.label:not(.visually-hidden))){block-size:calc(var(--filter-bar-label-offset) + var(--filter-bar-control-block-size));flex-direction:column;justify-content:center;display:flex}.filter-bar__row:has(.label:not(.visually-hidden))>.filter-bar__actions{min-block-size:calc(var(--filter-bar-label-offset) + var(--filter-bar-control-block-size))}}@media (width>=1024px){.filter-bar__row{grid-template-columns:repeat(auto-fit, minmax(calc((100% - 3 * var(--filter-bar-column-gap)) / 4), 1fr))}}
@@ -1,57 +1,58 @@
1
1
  'use client';
2
2
  import './message-composer.css';
3
- import { Button as e } from "./button.js";
4
- import { Textarea as t } from "./textarea.js";
5
- import { forwardRef as n, useId as r } from "react";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { Button as t } from "./button.js";
5
+ import { Textarea as n } from "./textarea.js";
6
+ import { forwardRef as r, useId as i } from "react";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
8
  //#region src/stories/molecules/MessageComposer/MessageComposer.tsx
8
- var o = n(function({ value: n, onChange: o, onSend: s, placeholder: c = "Escribe un mensaje…", disabled: l, sendLabel: u = "Enviar", helperText: d, actions: f, inputId: p, inputLabel: m, inputLabelledBy: h, rows: g = 2, className: _, ...v }, y) {
9
- let b = `${r()}-helper`;
10
- function x() {
11
- n.trim() && s();
9
+ var s = r(function({ value: r, onChange: s, onSend: c, placeholder: l, disabled: u, sendLabel: d, helperText: f, actions: p, inputId: m, inputLabel: h, inputLabelledBy: g, rows: _ = 2, className: v, ...y }, b) {
10
+ let x = e("messageComposer"), S = `${i()}-helper`;
11
+ function C() {
12
+ r.trim() && c();
12
13
  }
13
- function S(e) {
14
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), x());
14
+ function w(e) {
15
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), C());
15
16
  }
16
- return /* @__PURE__ */ a("div", {
17
- ref: y,
17
+ return /* @__PURE__ */ o("div", {
18
+ ref: b,
18
19
  className: [
19
20
  "message-composer",
20
- l ? "message-composer--disabled" : "",
21
- _ ?? ""
21
+ u ? "message-composer--disabled" : "",
22
+ v ?? ""
22
23
  ].filter(Boolean).join(" "),
23
- ...v,
24
- children: [/* @__PURE__ */ a("div", {
24
+ ...y,
25
+ children: [/* @__PURE__ */ o("div", {
25
26
  className: "message-composer__box",
26
- children: [/* @__PURE__ */ i(t, {
27
+ children: [/* @__PURE__ */ a(n, {
27
28
  bare: !0,
28
29
  className: "message-composer__input",
29
- id: p,
30
- "aria-label": m,
31
- "aria-labelledby": h,
32
- "aria-describedby": d ? b : void 0,
33
- placeholder: c,
34
- value: n,
35
- disabled: l,
36
- rows: g,
37
- onChange: (e) => o(e.target.value),
38
- onKeyDown: S
39
- }), /* @__PURE__ */ a("div", {
30
+ id: m,
31
+ "aria-label": h,
32
+ "aria-labelledby": g,
33
+ "aria-describedby": f ? S : void 0,
34
+ placeholder: x("placeholder", l),
35
+ value: r,
36
+ disabled: u,
37
+ rows: _,
38
+ onChange: (e) => s(e.target.value),
39
+ onKeyDown: w
40
+ }), /* @__PURE__ */ o("div", {
40
41
  className: "message-composer__actions",
41
- children: [/* @__PURE__ */ i(e, {
42
+ children: [/* @__PURE__ */ a(t, {
42
43
  variant: "primary",
43
44
  size: "md",
44
- disabled: l || !n.trim(),
45
- onClick: x,
46
- children: u
47
- }), f]
45
+ disabled: u || !r.trim(),
46
+ onClick: C,
47
+ children: x("send", d)
48
+ }), p]
48
49
  })]
49
- }), d && /* @__PURE__ */ i("p", {
50
+ }), f && /* @__PURE__ */ a("p", {
50
51
  className: "message-composer__helper",
51
- id: b,
52
- children: d
52
+ id: S,
53
+ children: f
53
54
  })]
54
55
  });
55
56
  });
56
57
  //#endregion
57
- export { o as MessageComposer };
58
+ export { s as MessageComposer };
@@ -48,7 +48,7 @@ function o(e, t) {
48
48
  "..."
49
49
  ];
50
50
  }
51
- function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSize: d = 10, hrefs: f, previousHref: p, nextHref: m, onPrevious: h, onNext: g, onPageChange: _, hrefBuilder: v, linkComponent: y, onPageSizeChange: b, pageSizeOptions: x, afterPageSize: S, showTotal: C = !1, size: w = "md", ariaLabel: T, pageLabel: E, previousLabel: D, nextLabel: O, pagesGroupLabel: k, pageSizeLabel: A, totalLabel: j, className: M }) {
51
+ function s({ mode: s = "pages", total: c, pageCount: l, page: u = 1, pageSize: d = 10, hrefs: f, previousHref: p, nextHref: m, onPrevious: h, onNext: g, onPageChange: _, hrefBuilder: v, linkComponent: y, onPageSizeChange: b, pageSizeOptions: x, afterPageSize: S, showTotal: C = !1, size: w = "md", ariaLabel: T, pageLabel: E, previousLabel: D, nextLabel: O, pagesGroupLabel: k, pageSizeLabel: A, totalLabel: j, className: M }) {
52
52
  let N = e("pagination"), P = v ?? (f ? (e) => f[e] : void 0), F = y ?? "a";
53
53
  if (s === "cursor") {
54
54
  let e = w === "sm" ? "xs" : w === "lg" ? "md" : "sm", n = (n) => {
@@ -86,9 +86,9 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
86
86
  })
87
87
  });
88
88
  }
89
- if (l === void 0 && c === 0 && !S) return null;
90
- let I = l ?? (d === "all" ? 1 : Math.ceil(c / d)), L = I > 1 ? o(u, I) : [];
91
- function R(e, t) {
89
+ if (c === 0 || l === 0 || c === void 0 && (l ?? 1) <= 1 && !S) return null;
90
+ let I = c ?? 0, L = l ?? (d === "all" ? 1 : Math.ceil(I / d)), R = L > 1 ? o(u, L) : [];
91
+ function z(e, t) {
92
92
  if (e === "...") return /* @__PURE__ */ r("span", {
93
93
  className: "pagination__ellipsis",
94
94
  "aria-hidden": "true",
@@ -112,7 +112,7 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
112
112
  children: e
113
113
  }, e);
114
114
  }
115
- function z(e, n, i) {
115
+ function B(e, n, i) {
116
116
  let a = n === "prev" ? N("previous", D) : N("next", O), o = /* @__PURE__ */ r(t, {
117
117
  name: "chevron",
118
118
  size: w === "sm" ? "xs" : w === "lg" ? "md" : "sm",
@@ -135,7 +135,7 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
135
135
  children: o
136
136
  });
137
137
  }
138
- let B = C || !!b || !!S;
138
+ let V = C || !!b || !!S;
139
139
  return /* @__PURE__ */ i("nav", {
140
140
  className: [
141
141
  "pagination",
@@ -143,12 +143,12 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
143
143
  M
144
144
  ].filter(Boolean).join(" "),
145
145
  "aria-label": N("label", T),
146
- children: [B && /* @__PURE__ */ i("div", {
146
+ children: [V && /* @__PURE__ */ i("div", {
147
147
  className: "pagination__meta",
148
148
  children: [
149
149
  C && /* @__PURE__ */ r("span", {
150
150
  className: "pagination__summary",
151
- children: N("total", j)(c)
151
+ children: N("total", j)(I)
152
152
  }),
153
153
  b && /* @__PURE__ */ r("div", {
154
154
  className: "pagination__size-selector",
@@ -165,14 +165,14 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
165
165
  children: S
166
166
  })
167
167
  ]
168
- }), I > 1 && /* @__PURE__ */ i("div", {
168
+ }), L > 1 && /* @__PURE__ */ i("div", {
169
169
  className: "pagination__controls",
170
170
  role: "group",
171
171
  "aria-label": N("pagesGroup", k),
172
172
  children: [
173
- z(u - 1, "prev", u <= 1),
174
- L.map((e, t) => R(e, t)),
175
- z(u + 1, "next", u >= I)
173
+ B(u - 1, "prev", u <= 1),
174
+ R.map((e, t) => z(e, t)),
175
+ B(u + 1, "next", u >= L)
176
176
  ]
177
177
  })]
178
178
  });