@epilot/zenith-react 0.2.0-next.0 → 0.2.0-next.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.
Files changed (131) hide show
  1. package/dist/components/accordion/accordion.js +57 -48
  2. package/dist/components/accordion/accordion.js.map +1 -1
  3. package/dist/components/alert-dialog/alert-dialog.js +120 -92
  4. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  5. package/dist/components/avatar/avatar-group.js +38 -35
  6. package/dist/components/avatar/avatar-group.js.map +1 -1
  7. package/dist/components/avatar/avatar.js +78 -71
  8. package/dist/components/avatar/avatar.js.map +1 -1
  9. package/dist/components/badge/badge.js +60 -55
  10. package/dist/components/badge/badge.js.map +1 -1
  11. package/dist/components/breadcrumb/breadcrumb.js +99 -54
  12. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  13. package/dist/components/button/button.js +87 -77
  14. package/dist/components/button/button.js.map +1 -1
  15. package/dist/components/button-group/button-group.js +36 -32
  16. package/dist/components/button-group/button-group.js.map +1 -1
  17. package/dist/components/callout/callout.js +105 -98
  18. package/dist/components/callout/callout.js.map +1 -1
  19. package/dist/components/card/card.js +62 -52
  20. package/dist/components/card/card.js.map +1 -1
  21. package/dist/components/checkbox/checkbox.js +22 -19
  22. package/dist/components/checkbox/checkbox.js.map +1 -1
  23. package/dist/components/code-block/code-block.js +135 -123
  24. package/dist/components/code-block/code-block.js.map +1 -1
  25. package/dist/components/code-editor/code-editor.js +276 -260
  26. package/dist/components/code-editor/code-editor.js.map +1 -1
  27. package/dist/components/collapsible-sidebar/collapsible-sidebar.js +62 -56
  28. package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
  29. package/dist/components/command/command.js +116 -105
  30. package/dist/components/command/command.js.map +1 -1
  31. package/dist/components/data-table/data-table-body.js +38 -34
  32. package/dist/components/data-table/data-table-body.js.map +1 -1
  33. package/dist/components/data-table/data-table-column-header.js +30 -26
  34. package/dist/components/data-table/data-table-column-header.js.map +1 -1
  35. package/dist/components/data-table/data-table-column-order.js +79 -73
  36. package/dist/components/data-table/data-table-column-order.js.map +1 -1
  37. package/dist/components/data-table/data-table-column-visibility.js +25 -22
  38. package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
  39. package/dist/components/data-table/data-table-content.js +47 -44
  40. package/dist/components/data-table/data-table-content.js.map +1 -1
  41. package/dist/components/data-table/data-table-error.js +36 -32
  42. package/dist/components/data-table/data-table-error.js.map +1 -1
  43. package/dist/components/data-table/data-table-footer.js +10 -8
  44. package/dist/components/data-table/data-table-footer.js.map +1 -1
  45. package/dist/components/data-table/data-table-header-draggable.js +40 -36
  46. package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
  47. package/dist/components/data-table/data-table-loading.js +21 -18
  48. package/dist/components/data-table/data-table-loading.js.map +1 -1
  49. package/dist/components/data-table/data-table-resize-handle.js +13 -11
  50. package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
  51. package/dist/components/data-table/data-table-row.js +47 -44
  52. package/dist/components/data-table/data-table-row.js.map +1 -1
  53. package/dist/components/data-table/data-table-toolbar.js +9 -7
  54. package/dist/components/data-table/data-table-toolbar.js.map +1 -1
  55. package/dist/components/data-table/data-table.js +48 -46
  56. package/dist/components/data-table/data-table.js.map +1 -1
  57. package/dist/components/date-range-picker/date-range-picker.js +173 -164
  58. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  59. package/dist/components/date-range-picker/range-calendar.js +36 -34
  60. package/dist/components/date-range-picker/range-calendar.js.map +1 -1
  61. package/dist/components/date-time-picker/calendar.js +290 -272
  62. package/dist/components/date-time-picker/calendar.js.map +1 -1
  63. package/dist/components/date-time-picker/date-time-picker-input.js +22 -20
  64. package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
  65. package/dist/components/date-time-picker/date-time-picker-panel.js +126 -120
  66. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  67. package/dist/components/date-time-picker/date-time-picker.js +42 -40
  68. package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
  69. package/dist/components/date-time-picker/time-picker.js +95 -87
  70. package/dist/components/date-time-picker/time-picker.js.map +1 -1
  71. package/dist/components/dialog/dialog.js +115 -95
  72. package/dist/components/dialog/dialog.js.map +1 -1
  73. package/dist/components/drawer/drawer.js +144 -109
  74. package/dist/components/drawer/drawer.js.map +1 -1
  75. package/dist/components/dropdown-menu/dropdown-menu.js +141 -112
  76. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  77. package/dist/components/field/field-combobox.js +196 -176
  78. package/dist/components/field/field-combobox.js.map +1 -1
  79. package/dist/components/field/field.js +137 -126
  80. package/dist/components/field/field.js.map +1 -1
  81. package/dist/components/list/list.js +237 -219
  82. package/dist/components/list/list.js.map +1 -1
  83. package/dist/components/option-card/option-card.js +129 -116
  84. package/dist/components/option-card/option-card.js.map +1 -1
  85. package/dist/components/pill/pill.js +55 -51
  86. package/dist/components/pill/pill.js.map +1 -1
  87. package/dist/components/popover/popover.js +53 -36
  88. package/dist/components/popover/popover.js.map +1 -1
  89. package/dist/components/radio/radio.js +38 -34
  90. package/dist/components/radio/radio.js.map +1 -1
  91. package/dist/components/scroll-area/scroll-area.js +38 -35
  92. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  93. package/dist/components/scroll-overflow/scroll-overflow.js +166 -151
  94. package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
  95. package/dist/components/segmented-control/segmented-control.js +93 -85
  96. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  97. package/dist/components/select/select.js +149 -128
  98. package/dist/components/select/select.js.map +1 -1
  99. package/dist/components/separator/separator.js +19 -16
  100. package/dist/components/separator/separator.js.map +1 -1
  101. package/dist/components/skeleton/skeleton.js +34 -30
  102. package/dist/components/skeleton/skeleton.js.map +1 -1
  103. package/dist/components/spinner/spinner.js +22 -17
  104. package/dist/components/spinner/spinner.js.map +1 -1
  105. package/dist/components/surface/surface.js +25 -22
  106. package/dist/components/surface/surface.js.map +1 -1
  107. package/dist/components/switch/switch.js +66 -57
  108. package/dist/components/switch/switch.js.map +1 -1
  109. package/dist/components/table/table-pagination.js +139 -129
  110. package/dist/components/table/table-pagination.js.map +1 -1
  111. package/dist/components/table/table.js +104 -90
  112. package/dist/components/table/table.js.map +1 -1
  113. package/dist/components/tabs/tabs.js +206 -128
  114. package/dist/components/tabs/tabs.js.map +1 -1
  115. package/dist/components/toast/toast.js +112 -100
  116. package/dist/components/toast/toast.js.map +1 -1
  117. package/dist/components/toggle/toggle.js +32 -30
  118. package/dist/components/toggle/toggle.js.map +1 -1
  119. package/dist/components/tooltip/tooltip.js +59 -46
  120. package/dist/components/tooltip/tooltip.js.map +1 -1
  121. package/dist/index.d.ts +12 -0
  122. package/dist/lib/clear-button.js +18 -17
  123. package/dist/lib/clear-button.js.map +1 -1
  124. package/dist/styles/host-reset.js +47 -0
  125. package/dist/styles/host-reset.js.map +1 -0
  126. package/dist/styles/overlay-layer.js +5 -0
  127. package/dist/styles/overlay-layer.js.map +1 -0
  128. package/dist/tokens.json +1 -1
  129. package/package.json +8 -7
  130. package/scripts/migration-diagnostics.mjs +42 -7
  131. package/scripts/migration-sweep.mjs +9 -1
@@ -1,15 +1,17 @@
1
1
  import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import * as U from "react";
3
- import { Root as X, Trigger as Z, Value as J, Icon as q, Portal as K, Content as Q, Viewport as Y, Group as ee, Label as te, Item as oe, ItemIndicator as ne, ItemText as re } from "../../vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js";
4
- import { mergeClasses as ie, SLOT_ATTR as ae, shorthands as i } from "@epilot/zenith-runtime/v1";
5
- import { makeZenithStyles as se } from "../../styles/make-styles.js";
6
- import { accentA3 as z, leadingSm as m, textSm as u, grayA11 as k, fontWeightSemibold as ce, leadingXs as le, textXs as ge, body as de, accent8 as pe, grayA4 as x, grayA3 as g, spacingElement1 as he, spacingGroup1 as R, accent11 as C, trackingNormal as me, accentA8 as ue, spacingElement2 as ve, radiusMd as fe, grayA6 as we, radiusLg as W, spacingElement3 as ke } from "../../tokens/index.js";
7
- import { useAppearanceAttributes as xe } from "../appearance-boundary/appearance-boundary.js";
8
- import { useDensity as Ce } from "../density-provider/density-provider.js";
9
- import { calculatePagination as Pe, getPageNumbers as ye, clampPage as Ie } from "../../lib/pagination.js";
10
- import { TooltipProvider as Ne, Tooltip as Le, TooltipTrigger as Se, TooltipContent as Te } from "../tooltip/tooltip.js";
11
- import { Button as l } from "../button/button.js";
12
- const Be = (o) => /* @__PURE__ */ a(
2
+ import * as Z from "react";
3
+ import { Root as U, Trigger as J, Value as Y, Icon as q, Portal as K, Content as Q, Viewport as ee, Group as te, Label as oe, Item as ne, ItemIndicator as re, ItemText as ie } from "../../vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js";
4
+ import { mergeClasses as ae, SLOT_ATTR as se, shorthands as i } from "@epilot/zenith-runtime/v1";
5
+ import { makeZenithStyles as ce } from "../../styles/make-styles.js";
6
+ import { boxModel as c, nativeControl as le } from "../../styles/host-reset.js";
7
+ import { OVERLAY_Z_INDEX as ge } from "../../styles/overlay-layer.js";
8
+ import { accentA3 as E, leadingSm as u, textSm as v, grayA11 as x, fontWeightSemibold as de, leadingXs as pe, textXs as he, body as me, accent8 as ue, grayA4 as C, grayA3 as d, spacingElement1 as ve, spacingGroup1 as R, accent11 as P, trackingNormal as fe, accentA8 as we, spacingElement2 as ke, radiusMd as xe, grayA6 as Ce, radiusLg as W, spacingElement3 as Pe } from "../../tokens/index.js";
9
+ import { useAppearanceAttributes as ye } from "../appearance-boundary/appearance-boundary.js";
10
+ import { useDensity as Ie } from "../density-provider/density-provider.js";
11
+ import { calculatePagination as Ne, getPageNumbers as Le, clampPage as Se } from "../../lib/pagination.js";
12
+ import { TooltipProvider as Te, Tooltip as Be, TooltipTrigger as be, TooltipContent as Ae } from "../tooltip/tooltip.js";
13
+ import { Button as g } from "../button/button.js";
14
+ const je = (o) => /* @__PURE__ */ a(
13
15
  "svg",
14
16
  {
15
17
  xmlns: "http://www.w3.org/2000/svg",
@@ -27,7 +29,7 @@ const Be = (o) => /* @__PURE__ */ a(
27
29
  /* @__PURE__ */ t("path", { d: "m15 18-6-6 6-6" })
28
30
  ]
29
31
  }
30
- ), be = (o) => /* @__PURE__ */ t(
32
+ ), ze = (o) => /* @__PURE__ */ t(
31
33
  "svg",
32
34
  {
33
35
  xmlns: "http://www.w3.org/2000/svg",
@@ -42,7 +44,7 @@ const Be = (o) => /* @__PURE__ */ a(
42
44
  ...o,
43
45
  children: /* @__PURE__ */ t("path", { d: "m15 18-6-6 6-6" })
44
46
  }
45
- ), Ae = (o) => /* @__PURE__ */ t(
47
+ ), Ee = (o) => /* @__PURE__ */ t(
46
48
  "svg",
47
49
  {
48
50
  xmlns: "http://www.w3.org/2000/svg",
@@ -57,7 +59,7 @@ const Be = (o) => /* @__PURE__ */ a(
57
59
  ...o,
58
60
  children: /* @__PURE__ */ t("path", { d: "m9 18 6-6-6-6" })
59
61
  }
60
- ), je = (o) => /* @__PURE__ */ a(
62
+ ), Re = (o) => /* @__PURE__ */ a(
61
63
  "svg",
62
64
  {
63
65
  xmlns: "http://www.w3.org/2000/svg",
@@ -75,7 +77,7 @@ const Be = (o) => /* @__PURE__ */ a(
75
77
  /* @__PURE__ */ t("path", { d: "M18 6v12" })
76
78
  ]
77
79
  }
78
- ), ze = (o) => /* @__PURE__ */ t(
80
+ ), We = (o) => /* @__PURE__ */ t(
79
81
  "svg",
80
82
  {
81
83
  xmlns: "http://www.w3.org/2000/svg",
@@ -90,7 +92,7 @@ const Be = (o) => /* @__PURE__ */ a(
90
92
  ...o,
91
93
  children: /* @__PURE__ */ t("path", { d: "m6 9 6 6 6-6" })
92
94
  }
93
- ), Re = (o) => /* @__PURE__ */ t(
95
+ ), $e = (o) => /* @__PURE__ */ t(
94
96
  "svg",
95
97
  {
96
98
  xmlns: "http://www.w3.org/2000/svg",
@@ -105,30 +107,31 @@ const Be = (o) => /* @__PURE__ */ a(
105
107
  ...o,
106
108
  children: /* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" })
107
109
  }
108
- ), We = [10, 25, 50, 100], Ee = se({
110
+ ), Oe = [10, 25, 50, 100], _e = ce({
109
111
  root: {
112
+ ...c,
110
113
  display: "flex",
111
114
  alignItems: "center",
112
115
  justifyContent: "space-between",
113
116
  gap: R,
114
- ...i.paddingBlock(ke),
115
- fontSize: u,
116
- lineHeight: m
117
+ ...i.paddingBlock(Pe),
118
+ fontSize: v,
119
+ lineHeight: u
117
120
  },
118
121
  left: {
119
122
  display: "flex",
120
123
  alignItems: "center",
121
- gap: ve
124
+ gap: ke
122
125
  },
123
126
  navButton: {
124
- backgroundColor: g,
125
- color: C,
127
+ backgroundColor: d,
128
+ color: P,
126
129
  ":hover": {
127
- backgroundColor: x
130
+ backgroundColor: C
128
131
  },
129
132
  ":disabled": {
130
- backgroundColor: g,
131
- color: ue,
133
+ backgroundColor: d,
134
+ color: we,
132
135
  pointerEvents: "none"
133
136
  }
134
137
  },
@@ -137,56 +140,58 @@ const Be = (o) => /* @__PURE__ */ a(
137
140
  },
138
141
  pageButtonInactive: {
139
142
  backgroundColor: "transparent",
140
- color: C,
143
+ color: P,
141
144
  ":hover": {
142
- backgroundColor: g
145
+ backgroundColor: d
143
146
  },
144
147
  ":active": {
145
- backgroundColor: x
148
+ backgroundColor: C
146
149
  }
147
150
  },
148
151
  ellipsisButton: {
149
- letterSpacing: me,
152
+ letterSpacing: fe,
150
153
  backgroundColor: "transparent",
151
- color: C,
154
+ color: P,
152
155
  ":hover": {
153
- backgroundColor: g
156
+ backgroundColor: d
154
157
  }
155
158
  },
156
159
  right: {
160
+ ...c,
157
161
  display: "flex",
158
162
  alignItems: "center",
159
163
  gap: R,
160
164
  paddingRight: "0.125rem"
161
165
  },
162
166
  range: {
163
- fontSize: u,
164
- lineHeight: m,
165
- color: k,
167
+ fontSize: v,
168
+ lineHeight: u,
169
+ color: x,
166
170
  fontVariantNumeric: "tabular-nums"
167
171
  },
168
172
  selectTrigger: {
173
+ ...le,
169
174
  display: "flex",
170
175
  height: "2rem",
171
176
  width: "auto",
172
177
  minWidth: "4rem",
173
178
  alignItems: "center",
174
179
  justifyContent: "space-between",
175
- gap: he,
180
+ gap: ve,
176
181
  ...i.borderRadius(W),
177
- backgroundColor: g,
182
+ backgroundColor: d,
178
183
  ...i.paddingInline("0.75rem"),
179
- fontSize: u,
180
- lineHeight: m,
184
+ fontSize: v,
185
+ lineHeight: u,
181
186
  cursor: "pointer",
182
187
  ...i.borderWidth(0),
183
188
  ":hover": {
184
- backgroundColor: x
189
+ backgroundColor: C
185
190
  },
186
191
  ":focus": {
187
192
  outlineWidth: "2px",
188
193
  outlineStyle: "solid",
189
- outlineColor: pe,
194
+ outlineColor: ue,
190
195
  outlineOffset: "2px"
191
196
  },
192
197
  ":disabled": {
@@ -197,46 +202,51 @@ const Be = (o) => /* @__PURE__ */ a(
197
202
  selectIcon: {
198
203
  display: "flex",
199
204
  alignItems: "center",
200
- color: k
205
+ color: x
201
206
  },
202
207
  selectContent: {
208
+ ...c,
203
209
  position: "relative",
204
- zIndex: 50,
210
+ zIndex: ge,
205
211
  ...i.overflow("hidden"),
206
212
  ...i.borderRadius(W),
207
- ...i.border("1px", "solid", we),
208
- backgroundColor: de,
213
+ ...i.border("1px", "solid", Ce),
214
+ backgroundColor: me,
209
215
  boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"
210
216
  },
211
217
  selectViewport: {
218
+ ...c,
212
219
  ...i.padding("0.25rem")
213
220
  },
214
221
  selectLabel: {
222
+ ...c,
215
223
  ...i.padding("0.375rem", "0.5rem"),
216
- fontSize: ge,
217
- lineHeight: le,
218
- fontWeight: ce,
219
- color: k
224
+ fontSize: he,
225
+ lineHeight: pe,
226
+ fontWeight: de,
227
+ color: x
220
228
  },
221
229
  selectItem: {
230
+ ...c,
222
231
  position: "relative",
223
232
  display: "flex",
224
233
  cursor: "pointer",
225
234
  userSelect: "none",
226
235
  alignItems: "center",
227
- ...i.borderRadius(fe),
236
+ ...i.borderRadius(xe),
228
237
  ...i.padding("0.375rem", "0.5rem", "0.375rem", "2rem"),
229
- fontSize: u,
230
- lineHeight: m,
238
+ fontSize: v,
239
+ lineHeight: u,
231
240
  outlineStyle: "none",
232
241
  ":focus": {
233
- backgroundColor: z
242
+ backgroundColor: E
234
243
  },
235
244
  "&[data-state='checked']": {
236
- backgroundColor: z
245
+ backgroundColor: E
237
246
  }
238
247
  },
239
248
  selectItemIndicator: {
249
+ ...c,
240
250
  position: "absolute",
241
251
  left: "0.5rem",
242
252
  display: "flex",
@@ -245,7 +255,7 @@ const Be = (o) => /* @__PURE__ */ a(
245
255
  alignItems: "center",
246
256
  justifyContent: "center"
247
257
  }
248
- }), $e = {
258
+ }), De = {
249
259
  navigation: "Pagination",
250
260
  firstPage: "First page",
251
261
  previousPage: "Previous page",
@@ -254,128 +264,128 @@ const Be = (o) => /* @__PURE__ */ a(
254
264
  goToPage: (o) => `Page ${o}`,
255
265
  jumpToPage: (o) => `Jump to page ${o}`,
256
266
  pageSizeSelector: (o) => `Rows per page: ${o}`
257
- }, Ze = U.forwardRef(function({
258
- page: P,
259
- totalItems: d,
260
- pageSize: v,
261
- onPageChange: c,
262
- onPageSizeChange: E,
263
- pageSizeOptions: $ = We,
264
- siblingCount: O = 2,
267
+ }, Qe = Z.forwardRef(function({
268
+ page: y,
269
+ totalItems: p,
270
+ pageSize: f,
271
+ onPageChange: l,
272
+ onPageSizeChange: $,
273
+ pageSizeOptions: O = Oe,
274
+ siblingCount: _ = 2,
265
275
  disabled: s = !1,
266
276
  labels: D,
267
277
  className: V,
268
- ..._
269
- }, F) {
270
- var T;
271
- const e = { ...$e, ...D }, n = Ee(), y = Ce(), H = xe(), { totalPages: f, start: I, end: N, isFirstPage: L, isLastPage: S } = Pe({
272
- page: P,
273
- pageSize: v,
274
- totalItems: d
275
- }), p = Ie(P, f), G = ye(p, f, O), M = (r) => {
276
- const h = parseInt(r, 10);
277
- isNaN(h) || E(h);
278
+ ...F
279
+ }, H) {
280
+ var B;
281
+ const e = { ...De, ...D }, n = _e(), I = Ie(), M = ye(), { totalPages: w, start: N, end: L, isFirstPage: S, isLastPage: T } = Ne({
282
+ page: y,
283
+ pageSize: f,
284
+ totalItems: p
285
+ }), h = Se(y, w), G = Le(h, w, _), X = (r) => {
286
+ const m = parseInt(r, 10);
287
+ isNaN(m) || $(m);
278
288
  };
279
- return d === 0 ? null : /* @__PURE__ */ t(Ne, { children: /* @__PURE__ */ a(
289
+ return p === 0 ? null : /* @__PURE__ */ t(Te, { children: /* @__PURE__ */ a(
280
290
  "div",
281
291
  {
282
- ref: F,
292
+ ref: H,
283
293
  "data-slot": "table-pagination",
284
- [ae]: "table-pagination",
294
+ [se]: "table-pagination",
285
295
  "data-fs-element": "TablePagination",
286
296
  role: "navigation",
287
297
  "aria-label": e == null ? void 0 : e.navigation,
288
- className: ie(n.root, V),
289
- ..._,
298
+ className: ae(n.root, V),
299
+ ...F,
290
300
  children: [
291
301
  /* @__PURE__ */ a("div", { className: n.left, children: [
292
302
  /* @__PURE__ */ t(
293
- l,
303
+ g,
294
304
  {
295
305
  variant: "secondary",
296
306
  size: "icon-sm",
297
307
  shape: "normal",
298
- disabled: s || L,
299
- onClick: () => c(1),
308
+ disabled: s || S,
309
+ onClick: () => l(1),
300
310
  "aria-label": e == null ? void 0 : e.firstPage,
301
311
  className: n.navButton,
302
- children: /* @__PURE__ */ t(Be, {})
312
+ children: /* @__PURE__ */ t(je, {})
303
313
  }
304
314
  ),
305
315
  /* @__PURE__ */ t(
306
- l,
316
+ g,
307
317
  {
308
318
  variant: "secondary",
309
319
  size: "icon-sm",
310
320
  shape: "normal",
311
- disabled: s || L,
312
- onClick: () => c(p - 1),
321
+ disabled: s || S,
322
+ onClick: () => l(h - 1),
313
323
  "aria-label": e == null ? void 0 : e.previousPage,
314
324
  className: n.navButton,
315
- children: /* @__PURE__ */ t(be, {})
325
+ children: /* @__PURE__ */ t(ze, {})
316
326
  }
317
327
  ),
318
- G.map((r, h) => {
319
- var b, A, j;
320
- const B = r.type === "ellipsis" ? `ellipsis-${h}-${r.targetPage}` : `page-${r.page}`;
328
+ G.map((r, m) => {
329
+ var A, j, z;
330
+ const b = r.type === "ellipsis" ? `ellipsis-${m}-${r.targetPage}` : `page-${r.page}`;
321
331
  if (r.type === "ellipsis")
322
- return /* @__PURE__ */ a(Le, { children: [
323
- /* @__PURE__ */ t(Se, { asChild: !0, children: /* @__PURE__ */ t(
324
- l,
332
+ return /* @__PURE__ */ a(Be, { children: [
333
+ /* @__PURE__ */ t(be, { asChild: !0, children: /* @__PURE__ */ t(
334
+ g,
325
335
  {
326
336
  variant: "tertiary",
327
337
  size: "icon-sm",
328
338
  shape: "normal",
329
339
  disabled: s,
330
- onClick: () => c(r.targetPage),
331
- "aria-label": (b = e == null ? void 0 : e.jumpToPage) == null ? void 0 : b.call(e, r.targetPage),
340
+ onClick: () => l(r.targetPage),
341
+ "aria-label": (A = e == null ? void 0 : e.jumpToPage) == null ? void 0 : A.call(e, r.targetPage),
332
342
  className: n.ellipsisButton,
333
343
  children: "..."
334
344
  }
335
345
  ) }),
336
- /* @__PURE__ */ t(Te, { children: (A = e == null ? void 0 : e.jumpToPage) == null ? void 0 : A.call(e, r.targetPage) })
337
- ] }, B);
338
- const w = r.page === p;
346
+ /* @__PURE__ */ t(Ae, { children: (j = e == null ? void 0 : e.jumpToPage) == null ? void 0 : j.call(e, r.targetPage) })
347
+ ] }, b);
348
+ const k = r.page === h;
339
349
  return /* @__PURE__ */ t(
340
- l,
350
+ g,
341
351
  {
342
- variant: w ? "secondary" : "tertiary",
352
+ variant: k ? "secondary" : "tertiary",
343
353
  size: "icon-sm",
344
354
  shape: "normal",
345
355
  disabled: s,
346
- onClick: () => c(r.page),
347
- "aria-label": (j = e == null ? void 0 : e.goToPage) == null ? void 0 : j.call(e, r.page),
348
- "aria-current": w ? "page" : void 0,
349
- className: w ? n.pageButtonActive : n.pageButtonInactive,
356
+ onClick: () => l(r.page),
357
+ "aria-label": (z = e == null ? void 0 : e.goToPage) == null ? void 0 : z.call(e, r.page),
358
+ "aria-current": k ? "page" : void 0,
359
+ className: k ? n.pageButtonActive : n.pageButtonInactive,
350
360
  children: r.page
351
361
  },
352
- B
362
+ b
353
363
  );
354
364
  }),
355
365
  /* @__PURE__ */ t(
356
- l,
366
+ g,
357
367
  {
358
368
  variant: "secondary",
359
369
  size: "icon-sm",
360
370
  shape: "normal",
361
- disabled: s || S,
362
- onClick: () => c(p + 1),
371
+ disabled: s || T,
372
+ onClick: () => l(h + 1),
363
373
  "aria-label": e == null ? void 0 : e.nextPage,
364
374
  className: n.navButton,
365
- children: /* @__PURE__ */ t(Ae, {})
375
+ children: /* @__PURE__ */ t(Ee, {})
366
376
  }
367
377
  ),
368
378
  /* @__PURE__ */ t(
369
- l,
379
+ g,
370
380
  {
371
381
  variant: "secondary",
372
382
  size: "icon-sm",
373
383
  shape: "normal",
374
- disabled: s || S,
375
- onClick: () => c(f),
384
+ disabled: s || T,
385
+ onClick: () => l(w),
376
386
  "aria-label": e == null ? void 0 : e.lastPage,
377
387
  className: n.navButton,
378
- children: /* @__PURE__ */ t(je, {})
388
+ children: /* @__PURE__ */ t(Re, {})
379
389
  }
380
390
  )
381
391
  ] }),
@@ -386,24 +396,24 @@ const Be = (o) => /* @__PURE__ */ a(
386
396
  "data-slot": "table-pagination-range",
387
397
  className: n.range,
388
398
  "aria-live": "polite",
389
- children: e != null && e.rangeDisplay ? e.rangeDisplay(I, N, d) : `${I}-${N} / ${d}`
399
+ children: e != null && e.rangeDisplay ? e.rangeDisplay(N, L, p) : `${N}-${L} / ${p}`
390
400
  }
391
401
  ),
392
402
  /* @__PURE__ */ a(
393
- X,
403
+ U,
394
404
  {
395
- value: String(v),
396
- onValueChange: M,
405
+ value: String(f),
406
+ onValueChange: X,
397
407
  disabled: s,
398
408
  children: [
399
409
  /* @__PURE__ */ a(
400
- Z,
410
+ J,
401
411
  {
402
412
  className: n.selectTrigger,
403
- "aria-label": (T = e == null ? void 0 : e.pageSizeSelector) == null ? void 0 : T.call(e, v),
413
+ "aria-label": (B = e == null ? void 0 : e.pageSizeSelector) == null ? void 0 : B.call(e, f),
404
414
  children: [
405
- /* @__PURE__ */ t(J, {}),
406
- /* @__PURE__ */ t(q, { className: n.selectIcon, children: /* @__PURE__ */ t(ze, {}) })
415
+ /* @__PURE__ */ t(Y, {}),
416
+ /* @__PURE__ */ t(q, { className: n.selectIcon, children: /* @__PURE__ */ t(We, {}) })
407
417
  ]
408
418
  }
409
419
  ),
@@ -411,20 +421,20 @@ const Be = (o) => /* @__PURE__ */ a(
411
421
  Q,
412
422
  {
413
423
  className: n.selectContent,
414
- ...y !== void 0 ? { "data-density": y } : {},
415
- ...H,
424
+ ...I !== void 0 ? { "data-density": I } : {},
425
+ ...M,
416
426
  position: "popper",
417
427
  sideOffset: 4,
418
- children: /* @__PURE__ */ t(Y, { className: n.selectViewport, children: /* @__PURE__ */ a(ee, { children: [
419
- (e == null ? void 0 : e.resultsPerPage) && /* @__PURE__ */ t(te, { className: n.selectLabel, children: e.resultsPerPage }),
420
- $.map((r) => /* @__PURE__ */ a(
421
- oe,
428
+ children: /* @__PURE__ */ t(ee, { className: n.selectViewport, children: /* @__PURE__ */ a(te, { children: [
429
+ (e == null ? void 0 : e.resultsPerPage) && /* @__PURE__ */ t(oe, { className: n.selectLabel, children: e.resultsPerPage }),
430
+ O.map((r) => /* @__PURE__ */ a(
431
+ ne,
422
432
  {
423
433
  value: String(r),
424
434
  className: n.selectItem,
425
435
  children: [
426
- /* @__PURE__ */ t("span", { className: n.selectItemIndicator, children: /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(Re, { style: { width: 16, height: 16 } }) }) }),
427
- /* @__PURE__ */ t(re, { children: r })
436
+ /* @__PURE__ */ t("span", { className: n.selectItemIndicator, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t($e, { style: { width: 16, height: 16 } }) }) }),
437
+ /* @__PURE__ */ t(ie, { children: r })
428
438
  ]
429
439
  },
430
440
  r
@@ -441,6 +451,6 @@ const Be = (o) => /* @__PURE__ */ a(
441
451
  ) });
442
452
  });
443
453
  export {
444
- Ze as TablePagination
454
+ Qe as TablePagination
445
455
  };
446
456
  //# sourceMappingURL=table-pagination.js.map