@epilot/zenith-react 0.2.0-next.0 → 0.2.0-next.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.
- package/dist/components/accordion/accordion.js +57 -48
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +120 -92
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +38 -35
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +78 -71
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +60 -55
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +99 -54
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +87 -77
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +36 -32
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +105 -98
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +62 -52
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +22 -19
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/code-block/code-block.js +135 -123
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-editor/code-editor.js +276 -260
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +62 -56
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +116 -105
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +38 -34
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +30 -26
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-order.js +79 -73
- package/dist/components/data-table/data-table-column-order.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +25 -22
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +47 -44
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +36 -32
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-footer.js +10 -8
- package/dist/components/data-table/data-table-footer.js.map +1 -1
- package/dist/components/data-table/data-table-header-draggable.js +40 -36
- package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +113 -99
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +21 -18
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-resize-handle.js +13 -11
- package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +71 -59
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +9 -7
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +48 -46
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +173 -164
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +36 -34
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +290 -272
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +22 -20
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +126 -120
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +42 -40
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +95 -87
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +115 -95
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +144 -109
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +141 -112
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +196 -176
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field.js +137 -126
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/list/list.js +237 -219
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +129 -116
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +55 -51
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +53 -36
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +38 -34
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +38 -35
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +166 -151
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +93 -85
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +149 -128
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +19 -16
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +34 -30
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js +22 -17
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/surface/surface.js +25 -22
- package/dist/components/surface/surface.js.map +1 -1
- package/dist/components/switch/switch.js +66 -57
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +139 -129
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +104 -90
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +206 -128
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/toast/toast.js +112 -100
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle.js +32 -30
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +59 -46
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/lib/clear-button.js +18 -17
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/styles/host-reset.js +47 -0
- package/dist/styles/host-reset.js.map +1 -0
- package/dist/styles/overlay-layer.js +5 -0
- package/dist/styles/overlay-layer.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/package.json +8 -6
- package/scripts/migration-diagnostics.mjs +42 -7
- 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
|
|
3
|
-
import { Root as
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
import { makeZenithStyles as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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(
|
|
115
|
-
fontSize:
|
|
116
|
-
lineHeight:
|
|
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:
|
|
124
|
+
gap: ke
|
|
122
125
|
},
|
|
123
126
|
navButton: {
|
|
124
|
-
backgroundColor:
|
|
125
|
-
color:
|
|
127
|
+
backgroundColor: d,
|
|
128
|
+
color: P,
|
|
126
129
|
":hover": {
|
|
127
|
-
backgroundColor:
|
|
130
|
+
backgroundColor: C
|
|
128
131
|
},
|
|
129
132
|
":disabled": {
|
|
130
|
-
backgroundColor:
|
|
131
|
-
color:
|
|
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:
|
|
143
|
+
color: P,
|
|
141
144
|
":hover": {
|
|
142
|
-
backgroundColor:
|
|
145
|
+
backgroundColor: d
|
|
143
146
|
},
|
|
144
147
|
":active": {
|
|
145
|
-
backgroundColor:
|
|
148
|
+
backgroundColor: C
|
|
146
149
|
}
|
|
147
150
|
},
|
|
148
151
|
ellipsisButton: {
|
|
149
|
-
letterSpacing:
|
|
152
|
+
letterSpacing: fe,
|
|
150
153
|
backgroundColor: "transparent",
|
|
151
|
-
color:
|
|
154
|
+
color: P,
|
|
152
155
|
":hover": {
|
|
153
|
-
backgroundColor:
|
|
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:
|
|
164
|
-
lineHeight:
|
|
165
|
-
color:
|
|
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:
|
|
180
|
+
gap: ve,
|
|
176
181
|
...i.borderRadius(W),
|
|
177
|
-
backgroundColor:
|
|
182
|
+
backgroundColor: d,
|
|
178
183
|
...i.paddingInline("0.75rem"),
|
|
179
|
-
fontSize:
|
|
180
|
-
lineHeight:
|
|
184
|
+
fontSize: v,
|
|
185
|
+
lineHeight: u,
|
|
181
186
|
cursor: "pointer",
|
|
182
187
|
...i.borderWidth(0),
|
|
183
188
|
":hover": {
|
|
184
|
-
backgroundColor:
|
|
189
|
+
backgroundColor: C
|
|
185
190
|
},
|
|
186
191
|
":focus": {
|
|
187
192
|
outlineWidth: "2px",
|
|
188
193
|
outlineStyle: "solid",
|
|
189
|
-
outlineColor:
|
|
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:
|
|
205
|
+
color: x
|
|
201
206
|
},
|
|
202
207
|
selectContent: {
|
|
208
|
+
...c,
|
|
203
209
|
position: "relative",
|
|
204
|
-
zIndex:
|
|
210
|
+
zIndex: ge,
|
|
205
211
|
...i.overflow("hidden"),
|
|
206
212
|
...i.borderRadius(W),
|
|
207
|
-
...i.border("1px", "solid",
|
|
208
|
-
backgroundColor:
|
|
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:
|
|
217
|
-
lineHeight:
|
|
218
|
-
fontWeight:
|
|
219
|
-
color:
|
|
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(
|
|
236
|
+
...i.borderRadius(xe),
|
|
228
237
|
...i.padding("0.375rem", "0.5rem", "0.375rem", "2rem"),
|
|
229
|
-
fontSize:
|
|
230
|
-
lineHeight:
|
|
238
|
+
fontSize: v,
|
|
239
|
+
lineHeight: u,
|
|
231
240
|
outlineStyle: "none",
|
|
232
241
|
":focus": {
|
|
233
|
-
backgroundColor:
|
|
242
|
+
backgroundColor: E
|
|
234
243
|
},
|
|
235
244
|
"&[data-state='checked']": {
|
|
236
|
-
backgroundColor:
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
258
|
-
page:
|
|
259
|
-
totalItems:
|
|
260
|
-
pageSize:
|
|
261
|
-
onPageChange:
|
|
262
|
-
onPageSizeChange:
|
|
263
|
-
pageSizeOptions:
|
|
264
|
-
siblingCount:
|
|
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
|
-
},
|
|
270
|
-
var
|
|
271
|
-
const e = {
|
|
272
|
-
page:
|
|
273
|
-
pageSize:
|
|
274
|
-
totalItems:
|
|
275
|
-
}),
|
|
276
|
-
const
|
|
277
|
-
isNaN(
|
|
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
|
|
289
|
+
return p === 0 ? null : /* @__PURE__ */ t(Te, { children: /* @__PURE__ */ a(
|
|
280
290
|
"div",
|
|
281
291
|
{
|
|
282
|
-
ref:
|
|
292
|
+
ref: H,
|
|
283
293
|
"data-slot": "table-pagination",
|
|
284
|
-
[
|
|
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:
|
|
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
|
-
|
|
303
|
+
g,
|
|
294
304
|
{
|
|
295
305
|
variant: "secondary",
|
|
296
306
|
size: "icon-sm",
|
|
297
307
|
shape: "normal",
|
|
298
|
-
disabled: s ||
|
|
299
|
-
onClick: () =>
|
|
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(
|
|
312
|
+
children: /* @__PURE__ */ t(je, {})
|
|
303
313
|
}
|
|
304
314
|
),
|
|
305
315
|
/* @__PURE__ */ t(
|
|
306
|
-
|
|
316
|
+
g,
|
|
307
317
|
{
|
|
308
318
|
variant: "secondary",
|
|
309
319
|
size: "icon-sm",
|
|
310
320
|
shape: "normal",
|
|
311
|
-
disabled: s ||
|
|
312
|
-
onClick: () =>
|
|
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(
|
|
325
|
+
children: /* @__PURE__ */ t(ze, {})
|
|
316
326
|
}
|
|
317
327
|
),
|
|
318
|
-
G.map((r,
|
|
319
|
-
var
|
|
320
|
-
const
|
|
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(
|
|
323
|
-
/* @__PURE__ */ t(
|
|
324
|
-
|
|
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: () =>
|
|
331
|
-
"aria-label": (
|
|
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(
|
|
337
|
-
] },
|
|
338
|
-
const
|
|
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
|
-
|
|
350
|
+
g,
|
|
341
351
|
{
|
|
342
|
-
variant:
|
|
352
|
+
variant: k ? "secondary" : "tertiary",
|
|
343
353
|
size: "icon-sm",
|
|
344
354
|
shape: "normal",
|
|
345
355
|
disabled: s,
|
|
346
|
-
onClick: () =>
|
|
347
|
-
"aria-label": (
|
|
348
|
-
"aria-current":
|
|
349
|
-
className:
|
|
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
|
-
|
|
362
|
+
b
|
|
353
363
|
);
|
|
354
364
|
}),
|
|
355
365
|
/* @__PURE__ */ t(
|
|
356
|
-
|
|
366
|
+
g,
|
|
357
367
|
{
|
|
358
368
|
variant: "secondary",
|
|
359
369
|
size: "icon-sm",
|
|
360
370
|
shape: "normal",
|
|
361
|
-
disabled: s ||
|
|
362
|
-
onClick: () =>
|
|
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(
|
|
375
|
+
children: /* @__PURE__ */ t(Ee, {})
|
|
366
376
|
}
|
|
367
377
|
),
|
|
368
378
|
/* @__PURE__ */ t(
|
|
369
|
-
|
|
379
|
+
g,
|
|
370
380
|
{
|
|
371
381
|
variant: "secondary",
|
|
372
382
|
size: "icon-sm",
|
|
373
383
|
shape: "normal",
|
|
374
|
-
disabled: s ||
|
|
375
|
-
onClick: () =>
|
|
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(
|
|
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(
|
|
399
|
+
children: e != null && e.rangeDisplay ? e.rangeDisplay(N, L, p) : `${N}-${L} / ${p}`
|
|
390
400
|
}
|
|
391
401
|
),
|
|
392
402
|
/* @__PURE__ */ a(
|
|
393
|
-
|
|
403
|
+
U,
|
|
394
404
|
{
|
|
395
|
-
value: String(
|
|
396
|
-
onValueChange:
|
|
405
|
+
value: String(f),
|
|
406
|
+
onValueChange: X,
|
|
397
407
|
disabled: s,
|
|
398
408
|
children: [
|
|
399
409
|
/* @__PURE__ */ a(
|
|
400
|
-
|
|
410
|
+
J,
|
|
401
411
|
{
|
|
402
412
|
className: n.selectTrigger,
|
|
403
|
-
"aria-label": (
|
|
413
|
+
"aria-label": (B = e == null ? void 0 : e.pageSizeSelector) == null ? void 0 : B.call(e, f),
|
|
404
414
|
children: [
|
|
405
|
-
/* @__PURE__ */ t(
|
|
406
|
-
/* @__PURE__ */ t(q, { className: n.selectIcon, children: /* @__PURE__ */ t(
|
|
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
|
-
...
|
|
415
|
-
...
|
|
424
|
+
...I !== void 0 ? { "data-density": I } : {},
|
|
425
|
+
...M,
|
|
416
426
|
position: "popper",
|
|
417
427
|
sideOffset: 4,
|
|
418
|
-
children: /* @__PURE__ */ t(
|
|
419
|
-
(e == null ? void 0 : e.resultsPerPage) && /* @__PURE__ */ t(
|
|
420
|
-
|
|
421
|
-
|
|
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(
|
|
427
|
-
/* @__PURE__ */ t(
|
|
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
|
-
|
|
454
|
+
Qe as TablePagination
|
|
445
455
|
};
|
|
446
456
|
//# sourceMappingURL=table-pagination.js.map
|