next-data-kit 9.1.0 → 9.2.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.
- package/README.md +65 -0
- package/dist/client/components/data-kit-infinity.js +1 -1
- package/dist/client/components/data-kit-infinity.js.map +1 -1
- package/dist/client/components/data-kit-table.d.ts.map +1 -1
- package/dist/client/components/data-kit-table.js +4 -2
- package/dist/client/components/data-kit-table.js.map +1 -1
- package/dist/client/components/data-kit.js +1 -1
- package/dist/client/components/data-kit.js.map +1 -1
- package/dist/client/components/ui/button.js +13 -13
- package/dist/client/components/ui/button.js.map +1 -1
- package/dist/client/components/ui/checkbox.js +1 -1
- package/dist/client/components/ui/checkbox.js.map +1 -1
- package/dist/client/components/ui/dropdown-menu.js +9 -9
- package/dist/client/components/ui/dropdown-menu.js.map +1 -1
- package/dist/client/components/ui/pagination.js +5 -5
- package/dist/client/components/ui/pagination.js.map +1 -1
- package/dist/client/components/ui/popover.js +1 -1
- package/dist/client/components/ui/popover.js.map +1 -1
- package/dist/client/components/ui/select.js +9 -9
- package/dist/client/components/ui/select.js.map +1 -1
- package/dist/client/components/ui/table.js +8 -8
- package/dist/client/components/ui/table.js.map +1 -1
- package/dist/client/hooks/useDataKit.d.ts.map +1 -1
- package/dist/client/hooks/useDataKit.js +47 -0
- package/dist/client/hooks/useDataKit.js.map +1 -1
- package/dist/index.cjs +1367 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1367 -114
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/client/component.d.ts +12 -0
- package/dist/types/client/component.d.ts.map +1 -1
- package/dist/types/client/hook.d.ts +12 -0
- package/dist/types/client/hook.d.ts.map +1 -1
- package/dist/types/index.d.cts +24 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -36,6 +36,1219 @@ var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitiv
|
|
|
36
36
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
37
37
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
38
38
|
|
|
39
|
+
// #style-inject:#style-inject
|
|
40
|
+
function styleInject(css, { insertAt } = {}) {
|
|
41
|
+
if (typeof document === "undefined") return;
|
|
42
|
+
const head = document.head || document.getElementsByTagName("head")[0];
|
|
43
|
+
const style = document.createElement("style");
|
|
44
|
+
style.type = "text/css";
|
|
45
|
+
if (insertAt === "top") {
|
|
46
|
+
if (head.firstChild) {
|
|
47
|
+
head.insertBefore(style, head.firstChild);
|
|
48
|
+
} else {
|
|
49
|
+
head.appendChild(style);
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
head.appendChild(style);
|
|
53
|
+
}
|
|
54
|
+
if (style.styleSheet) {
|
|
55
|
+
style.styleSheet.cssText = css;
|
|
56
|
+
} else {
|
|
57
|
+
style.appendChild(document.createTextNode(css));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// dist/styles.css
|
|
62
|
+
styleInject(`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
63
|
+
@layer properties {
|
|
64
|
+
@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) {
|
|
65
|
+
*,
|
|
66
|
+
:before,
|
|
67
|
+
:after,
|
|
68
|
+
::backdrop {
|
|
69
|
+
--tw-space-y-reverse:0;
|
|
70
|
+
--tw-border-style:solid;
|
|
71
|
+
--tw-font-weight:initial;
|
|
72
|
+
--tw-tracking:initial;
|
|
73
|
+
--tw-shadow:0 0 #0000;
|
|
74
|
+
--tw-shadow-color:initial;
|
|
75
|
+
--tw-shadow-alpha:100%;
|
|
76
|
+
--tw-inset-shadow:0 0 #0000;
|
|
77
|
+
--tw-inset-shadow-color:initial;
|
|
78
|
+
--tw-inset-shadow-alpha:100%;
|
|
79
|
+
--tw-ring-color:initial;
|
|
80
|
+
--tw-ring-shadow:0 0 #0000;
|
|
81
|
+
--tw-inset-ring-color:initial;
|
|
82
|
+
--tw-inset-ring-shadow:0 0 #0000;
|
|
83
|
+
--tw-ring-inset:initial;
|
|
84
|
+
--tw-ring-offset-width:0px;
|
|
85
|
+
--tw-ring-offset-color:#fff;
|
|
86
|
+
--tw-ring-offset-shadow:0 0 #0000;
|
|
87
|
+
--tw-translate-x:0;
|
|
88
|
+
--tw-translate-y:0;
|
|
89
|
+
--tw-translate-z:0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@layer theme {
|
|
94
|
+
:root,
|
|
95
|
+
:host {
|
|
96
|
+
--ndk-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
|
|
97
|
+
--ndk-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
|
|
98
|
+
--ndk-color-red-400:oklch(70.4% .191 22.216);
|
|
99
|
+
--ndk-color-red-500:oklch(63.7% .237 25.331);
|
|
100
|
+
--ndk-color-red-600:oklch(57.7% .245 27.325);
|
|
101
|
+
--ndk-color-red-700:oklch(50.5% .213 27.518);
|
|
102
|
+
--ndk-color-gray-50:oklch(98.5% .002 247.839);
|
|
103
|
+
--ndk-color-gray-100:oklch(96.7% .003 264.542);
|
|
104
|
+
--ndk-color-gray-200:oklch(92.8% .006 264.531);
|
|
105
|
+
--ndk-color-gray-400:oklch(70.7% .022 261.325);
|
|
106
|
+
--ndk-color-gray-500:oklch(55.1% .027 264.364);
|
|
107
|
+
--ndk-color-gray-800:oklch(27.8% .033 256.848);
|
|
108
|
+
--ndk-color-gray-900:oklch(21% .034 264.665);
|
|
109
|
+
--ndk-color-gray-950:oklch(13% .028 261.692);
|
|
110
|
+
--ndk-color-black:#000;
|
|
111
|
+
--ndk-color-white:#fff;
|
|
112
|
+
--ndk-spacing:.25rem;
|
|
113
|
+
--ndk-text-xs:.75rem;
|
|
114
|
+
--ndk-text-xs--line-height:calc(1/.75);
|
|
115
|
+
--ndk-text-sm:.875rem;
|
|
116
|
+
--ndk-text-sm--line-height:calc(1.25/.875);
|
|
117
|
+
--ndk-font-weight-medium:500;
|
|
118
|
+
--ndk-tracking-widest:.1em;
|
|
119
|
+
--ndk-radius-sm:.25rem;
|
|
120
|
+
--ndk-radius-md:.375rem;
|
|
121
|
+
--ndk-radius-lg:.5rem;
|
|
122
|
+
--ndk-animate-spin:spin 1s linear infinite;
|
|
123
|
+
--ndk-default-transition-duration:.15s;
|
|
124
|
+
--ndk-default-transition-timing-function:cubic-bezier(.4,0,.2,1);
|
|
125
|
+
--ndk-default-font-family:var(--ndk-font-sans);
|
|
126
|
+
--ndk-default-mono-font-family:var(--ndk-font-mono);
|
|
127
|
+
--ndk-animate-in:animate-in;
|
|
128
|
+
--ndk-animate-out:animate-out;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
@layer base {
|
|
132
|
+
*,
|
|
133
|
+
:after,
|
|
134
|
+
:before,
|
|
135
|
+
::backdrop {
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
border: 0 solid;
|
|
138
|
+
margin: 0;
|
|
139
|
+
padding: 0;
|
|
140
|
+
}
|
|
141
|
+
::file-selector-button {
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
border: 0 solid;
|
|
144
|
+
margin: 0;
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
html,
|
|
148
|
+
:host {
|
|
149
|
+
-webkit-text-size-adjust: 100%;
|
|
150
|
+
tab-size: 4;
|
|
151
|
+
line-height: 1.5;
|
|
152
|
+
font-family: var(--ndk-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");
|
|
153
|
+
font-feature-settings: var(--ndk-default-font-feature-settings,normal);
|
|
154
|
+
font-variation-settings: var(--ndk-default-font-variation-settings,normal);
|
|
155
|
+
-webkit-tap-highlight-color: transparent;
|
|
156
|
+
}
|
|
157
|
+
hr {
|
|
158
|
+
height: 0;
|
|
159
|
+
color: inherit;
|
|
160
|
+
border-top-width: 1px;
|
|
161
|
+
}
|
|
162
|
+
abbr:where([title]) {
|
|
163
|
+
-webkit-text-decoration: underline dotted;
|
|
164
|
+
text-decoration: underline dotted;
|
|
165
|
+
}
|
|
166
|
+
h1,
|
|
167
|
+
h2,
|
|
168
|
+
h3,
|
|
169
|
+
h4,
|
|
170
|
+
h5,
|
|
171
|
+
h6 {
|
|
172
|
+
font-size: inherit;
|
|
173
|
+
font-weight: inherit;
|
|
174
|
+
}
|
|
175
|
+
a {
|
|
176
|
+
color: inherit;
|
|
177
|
+
-webkit-text-decoration: inherit;
|
|
178
|
+
-webkit-text-decoration: inherit;
|
|
179
|
+
-webkit-text-decoration: inherit;
|
|
180
|
+
text-decoration: inherit;
|
|
181
|
+
}
|
|
182
|
+
b,
|
|
183
|
+
strong {
|
|
184
|
+
font-weight: bolder;
|
|
185
|
+
}
|
|
186
|
+
code,
|
|
187
|
+
kbd,
|
|
188
|
+
samp,
|
|
189
|
+
pre {
|
|
190
|
+
font-family: var(--ndk-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);
|
|
191
|
+
font-feature-settings: var(--ndk-default-mono-font-feature-settings,normal);
|
|
192
|
+
font-variation-settings: var(--ndk-default-mono-font-variation-settings,normal);
|
|
193
|
+
font-size: 1em;
|
|
194
|
+
}
|
|
195
|
+
small {
|
|
196
|
+
font-size: 80%;
|
|
197
|
+
}
|
|
198
|
+
sub,
|
|
199
|
+
sup {
|
|
200
|
+
vertical-align: baseline;
|
|
201
|
+
font-size: 75%;
|
|
202
|
+
line-height: 0;
|
|
203
|
+
position: relative;
|
|
204
|
+
}
|
|
205
|
+
sub {
|
|
206
|
+
bottom: -.25em;
|
|
207
|
+
}
|
|
208
|
+
sup {
|
|
209
|
+
top: -.5em;
|
|
210
|
+
}
|
|
211
|
+
table {
|
|
212
|
+
text-indent: 0;
|
|
213
|
+
border-color: inherit;
|
|
214
|
+
border-collapse: collapse;
|
|
215
|
+
}
|
|
216
|
+
:-moz-focusring {
|
|
217
|
+
outline: auto;
|
|
218
|
+
}
|
|
219
|
+
progress {
|
|
220
|
+
vertical-align: baseline;
|
|
221
|
+
}
|
|
222
|
+
summary {
|
|
223
|
+
display: list-item;
|
|
224
|
+
}
|
|
225
|
+
ol,
|
|
226
|
+
ul,
|
|
227
|
+
menu {
|
|
228
|
+
list-style: none;
|
|
229
|
+
}
|
|
230
|
+
img,
|
|
231
|
+
svg,
|
|
232
|
+
video,
|
|
233
|
+
canvas,
|
|
234
|
+
audio,
|
|
235
|
+
iframe,
|
|
236
|
+
embed,
|
|
237
|
+
object {
|
|
238
|
+
vertical-align: middle;
|
|
239
|
+
display: block;
|
|
240
|
+
}
|
|
241
|
+
img,
|
|
242
|
+
video {
|
|
243
|
+
max-width: 100%;
|
|
244
|
+
height: auto;
|
|
245
|
+
}
|
|
246
|
+
button,
|
|
247
|
+
input,
|
|
248
|
+
select,
|
|
249
|
+
optgroup,
|
|
250
|
+
textarea {
|
|
251
|
+
font: inherit;
|
|
252
|
+
font-feature-settings: inherit;
|
|
253
|
+
font-variation-settings: inherit;
|
|
254
|
+
letter-spacing: inherit;
|
|
255
|
+
color: inherit;
|
|
256
|
+
opacity: 1;
|
|
257
|
+
background-color: #0000;
|
|
258
|
+
border-radius: 0;
|
|
259
|
+
}
|
|
260
|
+
::file-selector-button {
|
|
261
|
+
font: inherit;
|
|
262
|
+
font-feature-settings: inherit;
|
|
263
|
+
font-variation-settings: inherit;
|
|
264
|
+
letter-spacing: inherit;
|
|
265
|
+
color: inherit;
|
|
266
|
+
opacity: 1;
|
|
267
|
+
background-color: #0000;
|
|
268
|
+
border-radius: 0;
|
|
269
|
+
}
|
|
270
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
271
|
+
font-weight: bolder;
|
|
272
|
+
}
|
|
273
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
274
|
+
padding-inline-start: 20px;
|
|
275
|
+
}
|
|
276
|
+
::file-selector-button {
|
|
277
|
+
margin-inline-end: 4px;
|
|
278
|
+
}
|
|
279
|
+
::placeholder {
|
|
280
|
+
opacity: 1;
|
|
281
|
+
}
|
|
282
|
+
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
|
|
283
|
+
::placeholder {
|
|
284
|
+
color: currentColor;
|
|
285
|
+
}
|
|
286
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
287
|
+
::placeholder {
|
|
288
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
textarea {
|
|
293
|
+
resize: vertical;
|
|
294
|
+
}
|
|
295
|
+
::-webkit-search-decoration {
|
|
296
|
+
-webkit-appearance: none;
|
|
297
|
+
}
|
|
298
|
+
::-webkit-date-and-time-value {
|
|
299
|
+
min-height: 1lh;
|
|
300
|
+
text-align: inherit;
|
|
301
|
+
}
|
|
302
|
+
::-webkit-datetime-edit {
|
|
303
|
+
display: inline-flex;
|
|
304
|
+
}
|
|
305
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
306
|
+
padding: 0;
|
|
307
|
+
}
|
|
308
|
+
::-webkit-datetime-edit {
|
|
309
|
+
padding-block: 0;
|
|
310
|
+
}
|
|
311
|
+
::-webkit-datetime-edit-year-field {
|
|
312
|
+
padding-block: 0;
|
|
313
|
+
}
|
|
314
|
+
::-webkit-datetime-edit-month-field {
|
|
315
|
+
padding-block: 0;
|
|
316
|
+
}
|
|
317
|
+
::-webkit-datetime-edit-day-field {
|
|
318
|
+
padding-block: 0;
|
|
319
|
+
}
|
|
320
|
+
::-webkit-datetime-edit-hour-field {
|
|
321
|
+
padding-block: 0;
|
|
322
|
+
}
|
|
323
|
+
::-webkit-datetime-edit-minute-field {
|
|
324
|
+
padding-block: 0;
|
|
325
|
+
}
|
|
326
|
+
::-webkit-datetime-edit-second-field {
|
|
327
|
+
padding-block: 0;
|
|
328
|
+
}
|
|
329
|
+
::-webkit-datetime-edit-millisecond-field {
|
|
330
|
+
padding-block: 0;
|
|
331
|
+
}
|
|
332
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
333
|
+
padding-block: 0;
|
|
334
|
+
}
|
|
335
|
+
::-webkit-calendar-picker-indicator {
|
|
336
|
+
line-height: 1;
|
|
337
|
+
}
|
|
338
|
+
:-moz-ui-invalid {
|
|
339
|
+
box-shadow: none;
|
|
340
|
+
}
|
|
341
|
+
button,
|
|
342
|
+
input:where([type=button], [type=reset], [type=submit]) {
|
|
343
|
+
appearance: button;
|
|
344
|
+
}
|
|
345
|
+
::file-selector-button {
|
|
346
|
+
appearance: button;
|
|
347
|
+
}
|
|
348
|
+
::-webkit-inner-spin-button {
|
|
349
|
+
height: auto;
|
|
350
|
+
}
|
|
351
|
+
::-webkit-outer-spin-button {
|
|
352
|
+
height: auto;
|
|
353
|
+
}
|
|
354
|
+
[hidden]:where(:not([hidden=until-found])) {
|
|
355
|
+
display: none !important;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
@layer components;
|
|
359
|
+
@layer utilities {
|
|
360
|
+
.ndk\\:pointer-events-none {
|
|
361
|
+
pointer-events: none;
|
|
362
|
+
}
|
|
363
|
+
.ndk\\:sr-only {
|
|
364
|
+
clip-path: inset(50%);
|
|
365
|
+
white-space: nowrap;
|
|
366
|
+
border-width: 0;
|
|
367
|
+
width: 1px;
|
|
368
|
+
height: 1px;
|
|
369
|
+
margin: -1px;
|
|
370
|
+
padding: 0;
|
|
371
|
+
position: absolute;
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
}
|
|
374
|
+
.ndk\\:absolute {
|
|
375
|
+
position: absolute;
|
|
376
|
+
}
|
|
377
|
+
.ndk\\:relative {
|
|
378
|
+
position: relative;
|
|
379
|
+
}
|
|
380
|
+
.ndk\\:right-2 {
|
|
381
|
+
right: calc(var(--ndk-spacing)*2);
|
|
382
|
+
}
|
|
383
|
+
.ndk\\:left-2 {
|
|
384
|
+
left: calc(var(--ndk-spacing)*2);
|
|
385
|
+
}
|
|
386
|
+
.ndk\\:z-50 {
|
|
387
|
+
z-index: 50;
|
|
388
|
+
}
|
|
389
|
+
.ndk\\:-mx-1 {
|
|
390
|
+
margin-inline: calc(var(--ndk-spacing)*-1);
|
|
391
|
+
}
|
|
392
|
+
.ndk\\:mx-0 {
|
|
393
|
+
margin-inline: calc(var(--ndk-spacing)*0);
|
|
394
|
+
}
|
|
395
|
+
.ndk\\:mx-auto {
|
|
396
|
+
margin-inline: auto;
|
|
397
|
+
}
|
|
398
|
+
.ndk\\:my-1 {
|
|
399
|
+
margin-block: calc(var(--ndk-spacing)*1);
|
|
400
|
+
}
|
|
401
|
+
.ndk\\:mt-4 {
|
|
402
|
+
margin-top: calc(var(--ndk-spacing)*4);
|
|
403
|
+
}
|
|
404
|
+
.ndk\\:mr-1\\.5 {
|
|
405
|
+
margin-right: calc(var(--ndk-spacing)*1.5);
|
|
406
|
+
}
|
|
407
|
+
.ndk\\:mr-2 {
|
|
408
|
+
margin-right: calc(var(--ndk-spacing)*2);
|
|
409
|
+
}
|
|
410
|
+
.ndk\\:-ml-4 {
|
|
411
|
+
margin-left: calc(var(--ndk-spacing)*-4);
|
|
412
|
+
}
|
|
413
|
+
.ndk\\:ml-1 {
|
|
414
|
+
margin-left: calc(var(--ndk-spacing)*1);
|
|
415
|
+
}
|
|
416
|
+
.ndk\\:ml-auto {
|
|
417
|
+
margin-left: auto;
|
|
418
|
+
}
|
|
419
|
+
.ndk\\:flex {
|
|
420
|
+
display: flex;
|
|
421
|
+
}
|
|
422
|
+
.ndk\\:grid {
|
|
423
|
+
display: grid;
|
|
424
|
+
}
|
|
425
|
+
.ndk\\:hidden {
|
|
426
|
+
display: none;
|
|
427
|
+
}
|
|
428
|
+
.ndk\\:inline-flex {
|
|
429
|
+
display: inline-flex;
|
|
430
|
+
}
|
|
431
|
+
.ndk\\:size-2 {
|
|
432
|
+
width: calc(var(--ndk-spacing)*2);
|
|
433
|
+
height: calc(var(--ndk-spacing)*2);
|
|
434
|
+
}
|
|
435
|
+
.ndk\\:size-3\\.5 {
|
|
436
|
+
width: calc(var(--ndk-spacing)*3.5);
|
|
437
|
+
height: calc(var(--ndk-spacing)*3.5);
|
|
438
|
+
}
|
|
439
|
+
.ndk\\:size-4 {
|
|
440
|
+
width: calc(var(--ndk-spacing)*4);
|
|
441
|
+
height: calc(var(--ndk-spacing)*4);
|
|
442
|
+
}
|
|
443
|
+
.ndk\\:size-5 {
|
|
444
|
+
width: calc(var(--ndk-spacing)*5);
|
|
445
|
+
height: calc(var(--ndk-spacing)*5);
|
|
446
|
+
}
|
|
447
|
+
.ndk\\:size-6 {
|
|
448
|
+
width: calc(var(--ndk-spacing)*6);
|
|
449
|
+
height: calc(var(--ndk-spacing)*6);
|
|
450
|
+
}
|
|
451
|
+
.ndk\\:size-8 {
|
|
452
|
+
width: calc(var(--ndk-spacing)*8);
|
|
453
|
+
height: calc(var(--ndk-spacing)*8);
|
|
454
|
+
}
|
|
455
|
+
.ndk\\:size-9 {
|
|
456
|
+
width: calc(var(--ndk-spacing)*9);
|
|
457
|
+
height: calc(var(--ndk-spacing)*9);
|
|
458
|
+
}
|
|
459
|
+
.ndk\\:size-10 {
|
|
460
|
+
width: calc(var(--ndk-spacing)*10);
|
|
461
|
+
height: calc(var(--ndk-spacing)*10);
|
|
462
|
+
}
|
|
463
|
+
.ndk\\:h-8 {
|
|
464
|
+
height: calc(var(--ndk-spacing)*8);
|
|
465
|
+
}
|
|
466
|
+
.ndk\\:h-9 {
|
|
467
|
+
height: calc(var(--ndk-spacing)*9);
|
|
468
|
+
}
|
|
469
|
+
.ndk\\:h-10 {
|
|
470
|
+
height: calc(var(--ndk-spacing)*10);
|
|
471
|
+
}
|
|
472
|
+
.ndk\\:h-24 {
|
|
473
|
+
height: calc(var(--ndk-spacing)*24);
|
|
474
|
+
}
|
|
475
|
+
.ndk\\:h-48 {
|
|
476
|
+
height: calc(var(--ndk-spacing)*48);
|
|
477
|
+
}
|
|
478
|
+
.ndk\\:h-\\[var\\(--radix-select-trigger-height\\)\\] {
|
|
479
|
+
height: var(--radix-select-trigger-height);
|
|
480
|
+
}
|
|
481
|
+
.ndk\\:h-auto {
|
|
482
|
+
height: auto;
|
|
483
|
+
}
|
|
484
|
+
.ndk\\:h-full {
|
|
485
|
+
height: 100%;
|
|
486
|
+
}
|
|
487
|
+
.ndk\\:h-px {
|
|
488
|
+
height: 1px;
|
|
489
|
+
}
|
|
490
|
+
.ndk\\:max-h-\\(--radix-dropdown-menu-content-available-height\\) {
|
|
491
|
+
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
492
|
+
}
|
|
493
|
+
.ndk\\:max-h-\\(--radix-select-content-available-height\\) {
|
|
494
|
+
max-height: var(--radix-select-content-available-height);
|
|
495
|
+
}
|
|
496
|
+
.ndk\\:min-h-0 {
|
|
497
|
+
min-height: calc(var(--ndk-spacing)*0);
|
|
498
|
+
}
|
|
499
|
+
.ndk\\:min-h-\\[200px\\] {
|
|
500
|
+
min-height: 200px;
|
|
501
|
+
}
|
|
502
|
+
.ndk\\:w-12 {
|
|
503
|
+
width: calc(var(--ndk-spacing)*12);
|
|
504
|
+
}
|
|
505
|
+
.ndk\\:w-16 {
|
|
506
|
+
width: calc(var(--ndk-spacing)*16);
|
|
507
|
+
}
|
|
508
|
+
.ndk\\:w-72 {
|
|
509
|
+
width: calc(var(--ndk-spacing)*72);
|
|
510
|
+
}
|
|
511
|
+
.ndk\\:w-80 {
|
|
512
|
+
width: calc(var(--ndk-spacing)*80);
|
|
513
|
+
}
|
|
514
|
+
.ndk\\:w-auto {
|
|
515
|
+
width: auto;
|
|
516
|
+
}
|
|
517
|
+
.ndk\\:w-fit {
|
|
518
|
+
width: fit-content;
|
|
519
|
+
}
|
|
520
|
+
.ndk\\:w-full {
|
|
521
|
+
width: 100%;
|
|
522
|
+
}
|
|
523
|
+
.ndk\\:min-w-\\[8rem\\] {
|
|
524
|
+
min-width: 8rem;
|
|
525
|
+
}
|
|
526
|
+
.ndk\\:min-w-\\[var\\(--radix-select-trigger-width\\)\\] {
|
|
527
|
+
min-width: var(--radix-select-trigger-width);
|
|
528
|
+
}
|
|
529
|
+
.ndk\\:flex-1 {
|
|
530
|
+
flex: 1;
|
|
531
|
+
}
|
|
532
|
+
.ndk\\:shrink-0 {
|
|
533
|
+
flex-shrink: 0;
|
|
534
|
+
}
|
|
535
|
+
.ndk\\:caption-bottom {
|
|
536
|
+
caption-side: bottom;
|
|
537
|
+
}
|
|
538
|
+
.ndk\\:origin-\\(--radix-dropdown-menu-content-transform-origin\\) {
|
|
539
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin);
|
|
540
|
+
}
|
|
541
|
+
.ndk\\:origin-\\(--radix-popover-content-transform-origin\\) {
|
|
542
|
+
transform-origin: var(--radix-popover-content-transform-origin);
|
|
543
|
+
}
|
|
544
|
+
.ndk\\:origin-\\(--radix-select-content-transform-origin\\) {
|
|
545
|
+
transform-origin: var(--radix-select-content-transform-origin);
|
|
546
|
+
}
|
|
547
|
+
.ndk\\:animate-spin {
|
|
548
|
+
animation: var(--ndk-animate-spin);
|
|
549
|
+
}
|
|
550
|
+
.ndk\\:cursor-default {
|
|
551
|
+
cursor: default;
|
|
552
|
+
}
|
|
553
|
+
.ndk\\:scroll-my-1 {
|
|
554
|
+
scroll-margin-block: calc(var(--ndk-spacing)*1);
|
|
555
|
+
}
|
|
556
|
+
.ndk\\:flex-col {
|
|
557
|
+
flex-direction: column;
|
|
558
|
+
}
|
|
559
|
+
.ndk\\:flex-row {
|
|
560
|
+
flex-direction: row;
|
|
561
|
+
}
|
|
562
|
+
.ndk\\:place-content-center {
|
|
563
|
+
place-content: center;
|
|
564
|
+
}
|
|
565
|
+
.ndk\\:items-center {
|
|
566
|
+
align-items: center;
|
|
567
|
+
}
|
|
568
|
+
.ndk\\:justify-between {
|
|
569
|
+
justify-content: space-between;
|
|
570
|
+
}
|
|
571
|
+
.ndk\\:justify-center {
|
|
572
|
+
justify-content: center;
|
|
573
|
+
}
|
|
574
|
+
.ndk\\:justify-end {
|
|
575
|
+
justify-content: flex-end;
|
|
576
|
+
}
|
|
577
|
+
.ndk\\:gap-1 {
|
|
578
|
+
gap: calc(var(--ndk-spacing)*1);
|
|
579
|
+
}
|
|
580
|
+
.ndk\\:gap-1\\.5 {
|
|
581
|
+
gap: calc(var(--ndk-spacing)*1.5);
|
|
582
|
+
}
|
|
583
|
+
.ndk\\:gap-2 {
|
|
584
|
+
gap: calc(var(--ndk-spacing)*2);
|
|
585
|
+
}
|
|
586
|
+
.ndk\\:gap-3 {
|
|
587
|
+
gap: calc(var(--ndk-spacing)*3);
|
|
588
|
+
}
|
|
589
|
+
.ndk\\:gap-4 {
|
|
590
|
+
gap: calc(var(--ndk-spacing)*4);
|
|
591
|
+
}
|
|
592
|
+
:where(.ndk\\:space-y-3 > :not(:last-child)) {
|
|
593
|
+
--tw-space-y-reverse:0;
|
|
594
|
+
margin-block-start: calc(calc(var(--ndk-spacing)*3)*var(--tw-space-y-reverse));
|
|
595
|
+
margin-block-end: calc(calc(var(--ndk-spacing)*3)*calc(1 - var(--tw-space-y-reverse)));
|
|
596
|
+
}
|
|
597
|
+
.ndk\\:overflow-hidden {
|
|
598
|
+
overflow: hidden;
|
|
599
|
+
}
|
|
600
|
+
.ndk\\:overflow-x-auto {
|
|
601
|
+
overflow-x: auto;
|
|
602
|
+
}
|
|
603
|
+
.ndk\\:overflow-x-hidden {
|
|
604
|
+
overflow-x: hidden;
|
|
605
|
+
}
|
|
606
|
+
.ndk\\:overflow-y-auto {
|
|
607
|
+
overflow-y: auto;
|
|
608
|
+
}
|
|
609
|
+
.ndk\\:rounded-\\[4px\\] {
|
|
610
|
+
border-radius: 4px;
|
|
611
|
+
}
|
|
612
|
+
.ndk\\:rounded-lg {
|
|
613
|
+
border-radius: var(--ndk-radius-lg);
|
|
614
|
+
}
|
|
615
|
+
.ndk\\:rounded-md {
|
|
616
|
+
border-radius: var(--ndk-radius-md);
|
|
617
|
+
}
|
|
618
|
+
.ndk\\:rounded-sm {
|
|
619
|
+
border-radius: var(--ndk-radius-sm);
|
|
620
|
+
}
|
|
621
|
+
.ndk\\:border {
|
|
622
|
+
border-style: var(--tw-border-style);
|
|
623
|
+
border-width: 1px;
|
|
624
|
+
}
|
|
625
|
+
.ndk\\:border-t {
|
|
626
|
+
border-top-style: var(--tw-border-style);
|
|
627
|
+
border-top-width: 1px;
|
|
628
|
+
}
|
|
629
|
+
.ndk\\:border-b {
|
|
630
|
+
border-bottom-style: var(--tw-border-style);
|
|
631
|
+
border-bottom-width: 1px;
|
|
632
|
+
}
|
|
633
|
+
.ndk\\:border-gray-100 {
|
|
634
|
+
border-color: var(--ndk-color-gray-100);
|
|
635
|
+
}
|
|
636
|
+
.ndk\\:border-gray-200 {
|
|
637
|
+
border-color: var(--ndk-color-gray-200);
|
|
638
|
+
}
|
|
639
|
+
.ndk\\:bg-gray-50\\/70 {
|
|
640
|
+
background-color: var(--ndk-color-gray-50);
|
|
641
|
+
}
|
|
642
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
643
|
+
.ndk\\:bg-gray-50\\/70 {
|
|
644
|
+
background-color: color-mix(in oklab, var(--ndk-color-gray-50)70%, transparent);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
.ndk\\:bg-gray-100 {
|
|
648
|
+
background-color: var(--ndk-color-gray-100);
|
|
649
|
+
}
|
|
650
|
+
.ndk\\:bg-gray-900 {
|
|
651
|
+
background-color: var(--ndk-color-gray-900);
|
|
652
|
+
}
|
|
653
|
+
.ndk\\:bg-red-600 {
|
|
654
|
+
background-color: var(--ndk-color-red-600);
|
|
655
|
+
}
|
|
656
|
+
.ndk\\:bg-transparent {
|
|
657
|
+
background-color: #0000;
|
|
658
|
+
}
|
|
659
|
+
.ndk\\:bg-white {
|
|
660
|
+
background-color: var(--ndk-color-white);
|
|
661
|
+
}
|
|
662
|
+
.ndk\\:fill-current {
|
|
663
|
+
fill: currentColor;
|
|
664
|
+
}
|
|
665
|
+
.ndk\\:p-1 {
|
|
666
|
+
padding: calc(var(--ndk-spacing)*1);
|
|
667
|
+
}
|
|
668
|
+
.ndk\\:p-2 {
|
|
669
|
+
padding: calc(var(--ndk-spacing)*2);
|
|
670
|
+
}
|
|
671
|
+
.ndk\\:p-4 {
|
|
672
|
+
padding: calc(var(--ndk-spacing)*4);
|
|
673
|
+
}
|
|
674
|
+
.ndk\\:px-2 {
|
|
675
|
+
padding-inline: calc(var(--ndk-spacing)*2);
|
|
676
|
+
}
|
|
677
|
+
.ndk\\:px-2\\.5 {
|
|
678
|
+
padding-inline: calc(var(--ndk-spacing)*2.5);
|
|
679
|
+
}
|
|
680
|
+
.ndk\\:px-3 {
|
|
681
|
+
padding-inline: calc(var(--ndk-spacing)*3);
|
|
682
|
+
}
|
|
683
|
+
.ndk\\:px-4 {
|
|
684
|
+
padding-inline: calc(var(--ndk-spacing)*4);
|
|
685
|
+
}
|
|
686
|
+
.ndk\\:px-6 {
|
|
687
|
+
padding-inline: calc(var(--ndk-spacing)*6);
|
|
688
|
+
}
|
|
689
|
+
.ndk\\:py-0 {
|
|
690
|
+
padding-block: calc(var(--ndk-spacing)*0);
|
|
691
|
+
}
|
|
692
|
+
.ndk\\:py-1 {
|
|
693
|
+
padding-block: calc(var(--ndk-spacing)*1);
|
|
694
|
+
}
|
|
695
|
+
.ndk\\:py-1\\.5 {
|
|
696
|
+
padding-block: calc(var(--ndk-spacing)*1.5);
|
|
697
|
+
}
|
|
698
|
+
.ndk\\:py-2 {
|
|
699
|
+
padding-block: calc(var(--ndk-spacing)*2);
|
|
700
|
+
}
|
|
701
|
+
.ndk\\:py-4 {
|
|
702
|
+
padding-block: calc(var(--ndk-spacing)*4);
|
|
703
|
+
}
|
|
704
|
+
.ndk\\:pt-3 {
|
|
705
|
+
padding-top: calc(var(--ndk-spacing)*3);
|
|
706
|
+
}
|
|
707
|
+
.ndk\\:pt-4 {
|
|
708
|
+
padding-top: calc(var(--ndk-spacing)*4);
|
|
709
|
+
}
|
|
710
|
+
.ndk\\:pr-2 {
|
|
711
|
+
padding-right: calc(var(--ndk-spacing)*2);
|
|
712
|
+
}
|
|
713
|
+
.ndk\\:pr-8 {
|
|
714
|
+
padding-right: calc(var(--ndk-spacing)*8);
|
|
715
|
+
}
|
|
716
|
+
.ndk\\:pb-3 {
|
|
717
|
+
padding-bottom: calc(var(--ndk-spacing)*3);
|
|
718
|
+
}
|
|
719
|
+
.ndk\\:pl-2 {
|
|
720
|
+
padding-left: calc(var(--ndk-spacing)*2);
|
|
721
|
+
}
|
|
722
|
+
.ndk\\:pl-8 {
|
|
723
|
+
padding-left: calc(var(--ndk-spacing)*8);
|
|
724
|
+
}
|
|
725
|
+
.ndk\\:text-center {
|
|
726
|
+
text-align: center;
|
|
727
|
+
}
|
|
728
|
+
.ndk\\:text-left {
|
|
729
|
+
text-align: left;
|
|
730
|
+
}
|
|
731
|
+
.ndk\\:align-middle {
|
|
732
|
+
vertical-align: middle;
|
|
733
|
+
}
|
|
734
|
+
.ndk\\:text-sm {
|
|
735
|
+
font-size: var(--ndk-text-sm);
|
|
736
|
+
line-height: var(--tw-leading,var(--ndk-text-sm--line-height));
|
|
737
|
+
}
|
|
738
|
+
.ndk\\:text-xs {
|
|
739
|
+
font-size: var(--ndk-text-xs);
|
|
740
|
+
line-height: var(--tw-leading,var(--ndk-text-xs--line-height));
|
|
741
|
+
}
|
|
742
|
+
.ndk\\:font-medium {
|
|
743
|
+
--tw-font-weight:var(--ndk-font-weight-medium);
|
|
744
|
+
font-weight: var(--ndk-font-weight-medium);
|
|
745
|
+
}
|
|
746
|
+
.ndk\\:tracking-widest {
|
|
747
|
+
--tw-tracking:var(--ndk-tracking-widest);
|
|
748
|
+
letter-spacing: var(--ndk-tracking-widest);
|
|
749
|
+
}
|
|
750
|
+
.ndk\\:whitespace-nowrap {
|
|
751
|
+
white-space: nowrap;
|
|
752
|
+
}
|
|
753
|
+
.ndk\\:text-current {
|
|
754
|
+
color: currentColor;
|
|
755
|
+
}
|
|
756
|
+
.ndk\\:text-gray-500 {
|
|
757
|
+
color: var(--ndk-color-gray-500);
|
|
758
|
+
}
|
|
759
|
+
.ndk\\:text-gray-900 {
|
|
760
|
+
color: var(--ndk-color-gray-900);
|
|
761
|
+
}
|
|
762
|
+
.ndk\\:text-red-500 {
|
|
763
|
+
color: var(--ndk-color-red-500);
|
|
764
|
+
}
|
|
765
|
+
.ndk\\:text-white {
|
|
766
|
+
color: var(--ndk-color-white);
|
|
767
|
+
}
|
|
768
|
+
.ndk\\:underline-offset-4 {
|
|
769
|
+
text-underline-offset: 4px;
|
|
770
|
+
}
|
|
771
|
+
.ndk\\:opacity-50 {
|
|
772
|
+
opacity: .5;
|
|
773
|
+
}
|
|
774
|
+
.ndk\\:shadow-lg {
|
|
775
|
+
--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);
|
|
776
|
+
box-shadow:
|
|
777
|
+
var(--tw-inset-shadow),
|
|
778
|
+
var(--tw-inset-ring-shadow),
|
|
779
|
+
var(--tw-ring-offset-shadow),
|
|
780
|
+
var(--tw-ring-shadow),
|
|
781
|
+
var(--tw-shadow);
|
|
782
|
+
}
|
|
783
|
+
.ndk\\:shadow-md {
|
|
784
|
+
--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);
|
|
785
|
+
box-shadow:
|
|
786
|
+
var(--tw-inset-shadow),
|
|
787
|
+
var(--tw-inset-ring-shadow),
|
|
788
|
+
var(--tw-ring-offset-shadow),
|
|
789
|
+
var(--tw-ring-shadow),
|
|
790
|
+
var(--tw-shadow);
|
|
791
|
+
}
|
|
792
|
+
.ndk\\:shadow-xs {
|
|
793
|
+
--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);
|
|
794
|
+
box-shadow:
|
|
795
|
+
var(--tw-inset-shadow),
|
|
796
|
+
var(--tw-inset-ring-shadow),
|
|
797
|
+
var(--tw-ring-offset-shadow),
|
|
798
|
+
var(--tw-ring-shadow),
|
|
799
|
+
var(--tw-shadow);
|
|
800
|
+
}
|
|
801
|
+
.ndk\\:outline-hidden {
|
|
802
|
+
--tw-outline-style:none;
|
|
803
|
+
outline-style: none;
|
|
804
|
+
}
|
|
805
|
+
@media (forced-colors: active) {
|
|
806
|
+
.ndk\\:outline-hidden {
|
|
807
|
+
outline-offset: 2px;
|
|
808
|
+
outline: 2px solid #0000;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
.ndk\\:transition-\\[color\\,box-shadow\\] {
|
|
812
|
+
transition-property: color, box-shadow;
|
|
813
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
814
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
815
|
+
}
|
|
816
|
+
.ndk\\:transition-all {
|
|
817
|
+
transition-property: all;
|
|
818
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
819
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
820
|
+
}
|
|
821
|
+
.ndk\\:transition-colors {
|
|
822
|
+
transition-property:
|
|
823
|
+
color,
|
|
824
|
+
background-color,
|
|
825
|
+
border-color,
|
|
826
|
+
outline-color,
|
|
827
|
+
text-decoration-color,
|
|
828
|
+
fill,
|
|
829
|
+
stroke,
|
|
830
|
+
--tw-gradient-from,
|
|
831
|
+
--tw-gradient-via,
|
|
832
|
+
--tw-gradient-to;
|
|
833
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
834
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
835
|
+
}
|
|
836
|
+
.ndk\\:transition-shadow {
|
|
837
|
+
transition-property: box-shadow;
|
|
838
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
839
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
840
|
+
}
|
|
841
|
+
.ndk\\:transition-none {
|
|
842
|
+
transition-property: none;
|
|
843
|
+
}
|
|
844
|
+
.ndk\\:outline-none {
|
|
845
|
+
--tw-outline-style:none;
|
|
846
|
+
outline-style: none;
|
|
847
|
+
}
|
|
848
|
+
.ndk\\:select-none {
|
|
849
|
+
-webkit-user-select: none;
|
|
850
|
+
user-select: none;
|
|
851
|
+
}
|
|
852
|
+
@media (hover: hover) {
|
|
853
|
+
.ndk\\:hover\\:bg-gray-50:hover {
|
|
854
|
+
background-color: var(--ndk-color-gray-50);
|
|
855
|
+
}
|
|
856
|
+
.ndk\\:hover\\:bg-gray-100:hover {
|
|
857
|
+
background-color: var(--ndk-color-gray-100);
|
|
858
|
+
}
|
|
859
|
+
.ndk\\:hover\\:bg-gray-200:hover {
|
|
860
|
+
background-color: var(--ndk-color-gray-200);
|
|
861
|
+
}
|
|
862
|
+
.ndk\\:hover\\:bg-gray-800:hover {
|
|
863
|
+
background-color: var(--ndk-color-gray-800);
|
|
864
|
+
}
|
|
865
|
+
.ndk\\:hover\\:bg-red-700:hover {
|
|
866
|
+
background-color: var(--ndk-color-red-700);
|
|
867
|
+
}
|
|
868
|
+
.ndk\\:hover\\:text-gray-900:hover {
|
|
869
|
+
color: var(--ndk-color-gray-900);
|
|
870
|
+
}
|
|
871
|
+
.ndk\\:hover\\:underline:hover {
|
|
872
|
+
text-decoration-line: underline;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
.ndk\\:focus\\:bg-gray-50:focus {
|
|
876
|
+
background-color: var(--ndk-color-gray-50);
|
|
877
|
+
}
|
|
878
|
+
.ndk\\:focus\\:text-gray-900:focus {
|
|
879
|
+
color: var(--ndk-color-gray-900);
|
|
880
|
+
}
|
|
881
|
+
.ndk\\:focus\\:ring-2:focus {
|
|
882
|
+
--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);
|
|
883
|
+
box-shadow:
|
|
884
|
+
var(--tw-inset-shadow),
|
|
885
|
+
var(--tw-inset-ring-shadow),
|
|
886
|
+
var(--tw-ring-offset-shadow),
|
|
887
|
+
var(--tw-ring-shadow),
|
|
888
|
+
var(--tw-shadow);
|
|
889
|
+
}
|
|
890
|
+
.ndk\\:focus-visible\\:border-gray-900:focus-visible {
|
|
891
|
+
border-color: var(--ndk-color-gray-900);
|
|
892
|
+
}
|
|
893
|
+
.ndk\\:focus-visible\\:ring-\\[3px\\]:focus-visible {
|
|
894
|
+
--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);
|
|
895
|
+
box-shadow:
|
|
896
|
+
var(--tw-inset-shadow),
|
|
897
|
+
var(--tw-inset-ring-shadow),
|
|
898
|
+
var(--tw-ring-offset-shadow),
|
|
899
|
+
var(--tw-ring-shadow),
|
|
900
|
+
var(--tw-shadow);
|
|
901
|
+
}
|
|
902
|
+
.ndk\\:focus-visible\\:ring-black\\/20:focus-visible {
|
|
903
|
+
--tw-ring-color:var(--ndk-color-black);
|
|
904
|
+
}
|
|
905
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
906
|
+
.ndk\\:focus-visible\\:ring-black\\/20:focus-visible {
|
|
907
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-black)20%,transparent);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
.ndk\\:disabled\\:pointer-events-none:disabled {
|
|
911
|
+
pointer-events: none;
|
|
912
|
+
}
|
|
913
|
+
.ndk\\:disabled\\:cursor-not-allowed:disabled {
|
|
914
|
+
cursor: not-allowed;
|
|
915
|
+
}
|
|
916
|
+
.ndk\\:disabled\\:opacity-50:disabled {
|
|
917
|
+
opacity: .5;
|
|
918
|
+
}
|
|
919
|
+
.ndk\\:has-\\[\\>svg\\]\\:px-2\\.5:has(> svg) {
|
|
920
|
+
padding-inline: calc(var(--ndk-spacing)*2.5);
|
|
921
|
+
}
|
|
922
|
+
.ndk\\:has-\\[\\>svg\\]\\:px-3:has(> svg) {
|
|
923
|
+
padding-inline: calc(var(--ndk-spacing)*3);
|
|
924
|
+
}
|
|
925
|
+
.ndk\\:has-\\[\\>svg\\]\\:px-4:has(> svg) {
|
|
926
|
+
padding-inline: calc(var(--ndk-spacing)*4);
|
|
927
|
+
}
|
|
928
|
+
.ndk\\:aria-invalid\\:border-red-500[aria-invalid=true] {
|
|
929
|
+
border-color: var(--ndk-color-red-500);
|
|
930
|
+
}
|
|
931
|
+
.ndk\\:aria-invalid\\:ring-red-500\\/20[aria-invalid=true] {
|
|
932
|
+
--tw-ring-color:var(--ndk-color-red-500);
|
|
933
|
+
}
|
|
934
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
935
|
+
.ndk\\:aria-invalid\\:ring-red-500\\/20[aria-invalid=true] {
|
|
936
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-red-500)20%,transparent);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
.ndk\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled] {
|
|
940
|
+
pointer-events: none;
|
|
941
|
+
}
|
|
942
|
+
.ndk\\:data-\\[disabled\\]\\:opacity-50[data-disabled] {
|
|
943
|
+
opacity: .5;
|
|
944
|
+
}
|
|
945
|
+
.ndk\\:data-\\[inset\\]\\:pl-8[data-inset] {
|
|
946
|
+
padding-left: calc(var(--ndk-spacing)*8);
|
|
947
|
+
}
|
|
948
|
+
.ndk\\:data-\\[placeholder\\]\\:text-gray-500[data-placeholder] {
|
|
949
|
+
color: var(--ndk-color-gray-500);
|
|
950
|
+
}
|
|
951
|
+
.ndk\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom] {
|
|
952
|
+
--tw-translate-y:calc(var(--ndk-spacing)*1);
|
|
953
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
954
|
+
}
|
|
955
|
+
.ndk\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left] {
|
|
956
|
+
--tw-translate-x:calc(var(--ndk-spacing)*-1);
|
|
957
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
958
|
+
}
|
|
959
|
+
.ndk\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right] {
|
|
960
|
+
--tw-translate-x:calc(var(--ndk-spacing)*1);
|
|
961
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
962
|
+
}
|
|
963
|
+
.ndk\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top] {
|
|
964
|
+
--tw-translate-y:calc(var(--ndk-spacing)*-1);
|
|
965
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
966
|
+
}
|
|
967
|
+
.ndk\\:data-\\[size\\=default\\]\\:h-9[data-size=default] {
|
|
968
|
+
height: calc(var(--ndk-spacing)*9);
|
|
969
|
+
}
|
|
970
|
+
.ndk\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm] {
|
|
971
|
+
height: calc(var(--ndk-spacing)*8);
|
|
972
|
+
}
|
|
973
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1 > *)[data-slot=select-value] {
|
|
974
|
+
-webkit-line-clamp: 1;
|
|
975
|
+
-webkit-box-orient: vertical;
|
|
976
|
+
display: -webkit-box;
|
|
977
|
+
overflow: hidden;
|
|
978
|
+
}
|
|
979
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex > *)[data-slot=select-value] {
|
|
980
|
+
display: flex;
|
|
981
|
+
}
|
|
982
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center > *)[data-slot=select-value] {
|
|
983
|
+
align-items: center;
|
|
984
|
+
}
|
|
985
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2 > *)[data-slot=select-value] {
|
|
986
|
+
gap: calc(var(--ndk-spacing)*2);
|
|
987
|
+
}
|
|
988
|
+
.ndk\\:data-\\[state\\=checked\\]\\:border-gray-900[data-state=checked] {
|
|
989
|
+
border-color: var(--ndk-color-gray-900);
|
|
990
|
+
}
|
|
991
|
+
.ndk\\:data-\\[state\\=checked\\]\\:bg-gray-900[data-state=checked] {
|
|
992
|
+
background-color: var(--ndk-color-gray-900);
|
|
993
|
+
}
|
|
994
|
+
.ndk\\:data-\\[state\\=checked\\]\\:text-white[data-state=checked] {
|
|
995
|
+
color: var(--ndk-color-white);
|
|
996
|
+
}
|
|
997
|
+
.ndk\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed] {
|
|
998
|
+
animation: var(--ndk-animate-out);
|
|
999
|
+
}
|
|
1000
|
+
.ndk\\:data-\\[state\\=open\\]\\:animate-in[data-state=open] {
|
|
1001
|
+
animation: var(--ndk-animate-in);
|
|
1002
|
+
}
|
|
1003
|
+
.ndk\\:data-\\[state\\=open\\]\\:bg-gray-50[data-state=open] {
|
|
1004
|
+
background-color: var(--ndk-color-gray-50);
|
|
1005
|
+
}
|
|
1006
|
+
.ndk\\:data-\\[state\\=open\\]\\:text-gray-900[data-state=open] {
|
|
1007
|
+
color: var(--ndk-color-gray-900);
|
|
1008
|
+
}
|
|
1009
|
+
.ndk\\:data-\\[state\\=selected\\]\\:bg-gray-50[data-state=selected] {
|
|
1010
|
+
background-color: var(--ndk-color-gray-50);
|
|
1011
|
+
}
|
|
1012
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:text-red-600[data-variant=destructive] {
|
|
1013
|
+
color: var(--ndk-color-red-600);
|
|
1014
|
+
}
|
|
1015
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/10[data-variant=destructive]:focus {
|
|
1016
|
+
background-color: var(--ndk-color-red-500);
|
|
1017
|
+
}
|
|
1018
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1019
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/10[data-variant=destructive]:focus {
|
|
1020
|
+
background-color: color-mix(in oklab, var(--ndk-color-red-500)10%, transparent);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:focus\\:text-red-700[data-variant=destructive]:focus {
|
|
1024
|
+
color: var(--ndk-color-red-700);
|
|
1025
|
+
}
|
|
1026
|
+
@media (min-width: 40rem) {
|
|
1027
|
+
.ndk\\:sm\\:block {
|
|
1028
|
+
display: block;
|
|
1029
|
+
}
|
|
1030
|
+
.ndk\\:sm\\:hidden {
|
|
1031
|
+
display: none;
|
|
1032
|
+
}
|
|
1033
|
+
.ndk\\:sm\\:pr-2\\.5 {
|
|
1034
|
+
padding-right: calc(var(--ndk-spacing)*2.5);
|
|
1035
|
+
}
|
|
1036
|
+
.ndk\\:sm\\:pl-2\\.5 {
|
|
1037
|
+
padding-left: calc(var(--ndk-spacing)*2.5);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
@media (prefers-color-scheme: dark) {
|
|
1041
|
+
.ndk\\:dark\\:border-gray-800 {
|
|
1042
|
+
border-color: var(--ndk-color-gray-800);
|
|
1043
|
+
}
|
|
1044
|
+
.ndk\\:dark\\:bg-gray-100 {
|
|
1045
|
+
background-color: var(--ndk-color-gray-100);
|
|
1046
|
+
}
|
|
1047
|
+
.ndk\\:dark\\:bg-gray-900,
|
|
1048
|
+
.ndk\\:dark\\:bg-gray-900\\/40 {
|
|
1049
|
+
background-color: var(--ndk-color-gray-900);
|
|
1050
|
+
}
|
|
1051
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1052
|
+
.ndk\\:dark\\:bg-gray-900\\/40 {
|
|
1053
|
+
background-color: color-mix(in oklab, var(--ndk-color-gray-900)40%, transparent);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
.ndk\\:dark\\:bg-gray-950 {
|
|
1057
|
+
background-color: var(--ndk-color-gray-950);
|
|
1058
|
+
}
|
|
1059
|
+
.ndk\\:dark\\:bg-red-600 {
|
|
1060
|
+
background-color: var(--ndk-color-red-600);
|
|
1061
|
+
}
|
|
1062
|
+
.ndk\\:dark\\:text-gray-100 {
|
|
1063
|
+
color: var(--ndk-color-gray-100);
|
|
1064
|
+
}
|
|
1065
|
+
.ndk\\:dark\\:text-gray-400 {
|
|
1066
|
+
color: var(--ndk-color-gray-400);
|
|
1067
|
+
}
|
|
1068
|
+
.ndk\\:dark\\:text-gray-900 {
|
|
1069
|
+
color: var(--ndk-color-gray-900);
|
|
1070
|
+
}
|
|
1071
|
+
@media (hover: hover) {
|
|
1072
|
+
.ndk\\:dark\\:hover\\:bg-gray-200:hover {
|
|
1073
|
+
background-color: var(--ndk-color-gray-200);
|
|
1074
|
+
}
|
|
1075
|
+
.ndk\\:dark\\:hover\\:bg-gray-800:hover {
|
|
1076
|
+
background-color: var(--ndk-color-gray-800);
|
|
1077
|
+
}
|
|
1078
|
+
.ndk\\:dark\\:hover\\:bg-gray-900:hover {
|
|
1079
|
+
background-color: var(--ndk-color-gray-900);
|
|
1080
|
+
}
|
|
1081
|
+
.ndk\\:dark\\:hover\\:bg-red-500:hover {
|
|
1082
|
+
background-color: var(--ndk-color-red-500);
|
|
1083
|
+
}
|
|
1084
|
+
.ndk\\:dark\\:hover\\:text-gray-100:hover {
|
|
1085
|
+
color: var(--ndk-color-gray-100);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
.ndk\\:dark\\:focus\\:bg-gray-900:focus {
|
|
1089
|
+
background-color: var(--ndk-color-gray-900);
|
|
1090
|
+
}
|
|
1091
|
+
.ndk\\:dark\\:focus\\:text-gray-100:focus {
|
|
1092
|
+
color: var(--ndk-color-gray-100);
|
|
1093
|
+
}
|
|
1094
|
+
.ndk\\:dark\\:focus-visible\\:border-gray-200:focus-visible {
|
|
1095
|
+
border-color: var(--ndk-color-gray-200);
|
|
1096
|
+
}
|
|
1097
|
+
.ndk\\:dark\\:focus-visible\\:ring-white\\/20:focus-visible {
|
|
1098
|
+
--tw-ring-color:var(--ndk-color-white);
|
|
1099
|
+
}
|
|
1100
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1101
|
+
.ndk\\:dark\\:focus-visible\\:ring-white\\/20:focus-visible {
|
|
1102
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-white)20%,transparent);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
.ndk\\:dark\\:aria-invalid\\:ring-red-500\\/30[aria-invalid=true] {
|
|
1106
|
+
--tw-ring-color:var(--ndk-color-red-500);
|
|
1107
|
+
}
|
|
1108
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1109
|
+
.ndk\\:dark\\:aria-invalid\\:ring-red-500\\/30[aria-invalid=true] {
|
|
1110
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-red-500)30%,transparent);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
.ndk\\:dark\\:data-\\[placeholder\\]\\:text-gray-400[data-placeholder] {
|
|
1114
|
+
color: var(--ndk-color-gray-400);
|
|
1115
|
+
}
|
|
1116
|
+
.ndk\\:dark\\:data-\\[state\\=checked\\]\\:border-gray-100[data-state=checked] {
|
|
1117
|
+
border-color: var(--ndk-color-gray-100);
|
|
1118
|
+
}
|
|
1119
|
+
.ndk\\:dark\\:data-\\[state\\=checked\\]\\:bg-gray-100[data-state=checked] {
|
|
1120
|
+
background-color: var(--ndk-color-gray-100);
|
|
1121
|
+
}
|
|
1122
|
+
.ndk\\:dark\\:data-\\[state\\=checked\\]\\:text-gray-900[data-state=checked] {
|
|
1123
|
+
color: var(--ndk-color-gray-900);
|
|
1124
|
+
}
|
|
1125
|
+
.ndk\\:dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state=open] {
|
|
1126
|
+
background-color: var(--ndk-color-gray-900);
|
|
1127
|
+
}
|
|
1128
|
+
.ndk\\:dark\\:data-\\[state\\=open\\]\\:text-gray-100[data-state=open] {
|
|
1129
|
+
color: var(--ndk-color-gray-100);
|
|
1130
|
+
}
|
|
1131
|
+
.ndk\\:dark\\:data-\\[state\\=selected\\]\\:bg-gray-900[data-state=selected] {
|
|
1132
|
+
background-color: var(--ndk-color-gray-900);
|
|
1133
|
+
}
|
|
1134
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:text-red-500[data-variant=destructive] {
|
|
1135
|
+
color: var(--ndk-color-red-500);
|
|
1136
|
+
}
|
|
1137
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/15[data-variant=destructive]:focus {
|
|
1138
|
+
background-color: var(--ndk-color-red-500);
|
|
1139
|
+
}
|
|
1140
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1141
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/15[data-variant=destructive]:focus {
|
|
1142
|
+
background-color: color-mix(in oklab, var(--ndk-color-red-500)15%, transparent);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:text-red-400[data-variant=destructive]:focus {
|
|
1146
|
+
color: var(--ndk-color-red-400);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
.ndk\\:\\[\\&_svg\\]\\:pointer-events-none svg {
|
|
1150
|
+
pointer-events: none;
|
|
1151
|
+
}
|
|
1152
|
+
.ndk\\:\\[\\&_svg\\]\\:shrink-0 svg {
|
|
1153
|
+
flex-shrink: 0;
|
|
1154
|
+
}
|
|
1155
|
+
.ndk\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]) {
|
|
1156
|
+
width: calc(var(--ndk-spacing)*4);
|
|
1157
|
+
height: calc(var(--ndk-spacing)*4);
|
|
1158
|
+
}
|
|
1159
|
+
.ndk\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-gray-500 svg:not([class*=text-]) {
|
|
1160
|
+
color: var(--ndk-color-gray-500);
|
|
1161
|
+
}
|
|
1162
|
+
@media (prefers-color-scheme: dark) {
|
|
1163
|
+
.ndk\\:dark\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-gray-400 svg:not([class*=text-]) {
|
|
1164
|
+
color: var(--ndk-color-gray-400);
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
.ndk\\:\\[\\&_tr\\]\\:border-b tr {
|
|
1168
|
+
border-bottom-style: var(--tw-border-style);
|
|
1169
|
+
border-bottom-width: 1px;
|
|
1170
|
+
}
|
|
1171
|
+
.ndk\\:\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {
|
|
1172
|
+
border-style: var(--tw-border-style);
|
|
1173
|
+
border-width: 0;
|
|
1174
|
+
}
|
|
1175
|
+
.ndk\\:\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {
|
|
1176
|
+
padding-right: calc(var(--ndk-spacing)*0);
|
|
1177
|
+
}
|
|
1178
|
+
:is(.ndk\\:\\*\\:\\[span\\]\\:last\\:flex > *):is(span):last-child {
|
|
1179
|
+
display: flex;
|
|
1180
|
+
}
|
|
1181
|
+
:is(.ndk\\:\\*\\:\\[span\\]\\:last\\:items-center > *):is(span):last-child {
|
|
1182
|
+
align-items: center;
|
|
1183
|
+
}
|
|
1184
|
+
:is(.ndk\\:\\*\\:\\[span\\]\\:last\\:gap-2 > *):is(span):last-child {
|
|
1185
|
+
gap: calc(var(--ndk-spacing)*2);
|
|
1186
|
+
}
|
|
1187
|
+
:is(.ndk\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-red-600[data-variant=destructive] > *):is(svg) {
|
|
1188
|
+
color: var(--ndk-color-red-600) !important;
|
|
1189
|
+
}
|
|
1190
|
+
@media (prefers-color-scheme: dark) {
|
|
1191
|
+
:is(.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-red-500[data-variant=destructive] > *):is(svg) {
|
|
1192
|
+
color: var(--ndk-color-red-500) !important;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
.ndk\\:\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\] > [role=checkbox] {
|
|
1196
|
+
--tw-translate-y:2px;
|
|
1197
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
1198
|
+
}
|
|
1199
|
+
.ndk\\:\\[\\&\\>tr\\]\\:last\\:border-b-0 > tr:last-child {
|
|
1200
|
+
border-bottom-style: var(--tw-border-style);
|
|
1201
|
+
border-bottom-width: 0;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
@keyframes animate-in {
|
|
1205
|
+
0% {
|
|
1206
|
+
opacity: 0;
|
|
1207
|
+
transform: scale(.95);
|
|
1208
|
+
}
|
|
1209
|
+
to {
|
|
1210
|
+
opacity: 1;
|
|
1211
|
+
transform: scale(1);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
@keyframes animate-out {
|
|
1215
|
+
0% {
|
|
1216
|
+
opacity: 1;
|
|
1217
|
+
transform: scale(1);
|
|
1218
|
+
}
|
|
1219
|
+
to {
|
|
1220
|
+
opacity: 0;
|
|
1221
|
+
transform: scale(.95);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
@property --tw-space-y-reverse { syntax:"*";inherits:false;initial-value:0 }
|
|
1225
|
+
@property --tw-border-style { syntax:"*";inherits:false;initial-value:solid }
|
|
1226
|
+
@property --tw-font-weight { syntax:"*";inherits:false }
|
|
1227
|
+
@property --tw-tracking { syntax:"*";inherits:false }
|
|
1228
|
+
@property --tw-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1229
|
+
@property --tw-shadow-color { syntax:"*";inherits:false }
|
|
1230
|
+
@property --tw-shadow-alpha { syntax:"<percentage>";inherits:false;initial-value:100% }
|
|
1231
|
+
@property --tw-inset-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1232
|
+
@property --tw-inset-shadow-color { syntax:"*";inherits:false }
|
|
1233
|
+
@property --tw-inset-shadow-alpha { syntax:"<percentage>";inherits:false;initial-value:100% }
|
|
1234
|
+
@property --tw-ring-color { syntax:"*";inherits:false }
|
|
1235
|
+
@property --tw-ring-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1236
|
+
@property --tw-inset-ring-color { syntax:"*";inherits:false }
|
|
1237
|
+
@property --tw-inset-ring-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1238
|
+
@property --tw-ring-inset { syntax:"*";inherits:false }
|
|
1239
|
+
@property --tw-ring-offset-width { syntax:"<length>";inherits:false;initial-value:0 }
|
|
1240
|
+
@property --tw-ring-offset-color { syntax:"*";inherits:false;initial-value:#fff }
|
|
1241
|
+
@property --tw-ring-offset-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1242
|
+
@property --tw-translate-x { syntax:"*";inherits:false;initial-value:0 }
|
|
1243
|
+
@property --tw-translate-y { syntax:"*";inherits:false;initial-value:0 }
|
|
1244
|
+
@property --tw-translate-z { syntax:"*";inherits:false;initial-value:0 }
|
|
1245
|
+
@keyframes spin {
|
|
1246
|
+
to {
|
|
1247
|
+
transform: rotate(360deg);
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
`);
|
|
1251
|
+
|
|
39
1252
|
// src/server/utils.ts
|
|
40
1253
|
var isProvided = (value) => value !== void 0 && value !== null && value !== "";
|
|
41
1254
|
var getValueByPath = (obj, path) => {
|
|
@@ -551,9 +1764,45 @@ var useDataKit = (props) => {
|
|
|
551
1764
|
return next;
|
|
552
1765
|
});
|
|
553
1766
|
}, []);
|
|
1767
|
+
const itemUpdate = React2.useCallback((props2) => {
|
|
1768
|
+
setItems((prev) => {
|
|
1769
|
+
if ("index" in props2) {
|
|
1770
|
+
const { index, data } = props2;
|
|
1771
|
+
if (index < 0 || index >= prev.length) return prev;
|
|
1772
|
+
const next = [...prev];
|
|
1773
|
+
next[index] = { ...next[index], ...data };
|
|
1774
|
+
return next;
|
|
1775
|
+
} else {
|
|
1776
|
+
const { id, data } = props2;
|
|
1777
|
+
const index = prev.findIndex((item) => {
|
|
1778
|
+
const itemWithId = item;
|
|
1779
|
+
return itemWithId.id === id;
|
|
1780
|
+
});
|
|
1781
|
+
if (index === -1) return prev;
|
|
1782
|
+
const next = [...prev];
|
|
1783
|
+
next[index] = { ...next[index], ...data };
|
|
1784
|
+
return next;
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
}, []);
|
|
554
1788
|
const deleteItemAt = React2.useCallback((index) => {
|
|
555
1789
|
setItems((prev) => prev.filter((_, i) => i !== index));
|
|
556
1790
|
}, []);
|
|
1791
|
+
const itemDelete = React2.useCallback((props2) => {
|
|
1792
|
+
setItems((prev) => {
|
|
1793
|
+
if ("index" in props2) {
|
|
1794
|
+
const { index } = props2;
|
|
1795
|
+
if (index < 0 || index >= prev.length) return prev;
|
|
1796
|
+
return prev.filter((_, i) => i !== index);
|
|
1797
|
+
} else {
|
|
1798
|
+
const { id } = props2;
|
|
1799
|
+
return prev.filter((item) => {
|
|
1800
|
+
const itemWithId = item;
|
|
1801
|
+
return itemWithId.id !== id;
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
});
|
|
1805
|
+
}, []);
|
|
557
1806
|
const itemPush = React2.useCallback((item, position = 1) => {
|
|
558
1807
|
setItems((prev) => position === 0 ? [item, ...prev] : [...prev, item]);
|
|
559
1808
|
}, []);
|
|
@@ -642,7 +1891,9 @@ var useDataKit = (props) => {
|
|
|
642
1891
|
getInput,
|
|
643
1892
|
setItems: setItemsAction,
|
|
644
1893
|
setItemAt,
|
|
1894
|
+
itemUpdate,
|
|
645
1895
|
deleteItemAt,
|
|
1896
|
+
itemDelete,
|
|
646
1897
|
itemPush,
|
|
647
1898
|
deleteBulk
|
|
648
1899
|
}
|
|
@@ -773,11 +2024,11 @@ var {
|
|
|
773
2024
|
Context: DefaultDataKitContext
|
|
774
2025
|
} = createDataKitContext();
|
|
775
2026
|
function Table({ className, ...props }) {
|
|
776
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2027
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "table-container", className: "ndk:relative ndk:w-full ndk:overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
777
2028
|
"table",
|
|
778
2029
|
{
|
|
779
2030
|
"data-slot": "table",
|
|
780
|
-
className: cn("w-full caption-bottom text-sm", className),
|
|
2031
|
+
className: cn("ndk:w-full ndk:caption-bottom ndk:text-sm", className),
|
|
781
2032
|
...props
|
|
782
2033
|
}
|
|
783
2034
|
) });
|
|
@@ -787,7 +2038,7 @@ function TableHeader({ className, ...props }) {
|
|
|
787
2038
|
"thead",
|
|
788
2039
|
{
|
|
789
2040
|
"data-slot": "table-header",
|
|
790
|
-
className: cn("[&_tr]:border-b", className),
|
|
2041
|
+
className: cn("ndk:[&_tr]:border-b", className),
|
|
791
2042
|
...props
|
|
792
2043
|
}
|
|
793
2044
|
);
|
|
@@ -797,7 +2048,7 @@ function TableBody({ className, ...props }) {
|
|
|
797
2048
|
"tbody",
|
|
798
2049
|
{
|
|
799
2050
|
"data-slot": "table-body",
|
|
800
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
2051
|
+
className: cn("ndk:[&_tr:last-child]:border-0", className),
|
|
801
2052
|
...props
|
|
802
2053
|
}
|
|
803
2054
|
);
|
|
@@ -808,7 +2059,7 @@ function TableRow({ className, ...props }) {
|
|
|
808
2059
|
{
|
|
809
2060
|
"data-slot": "table-row",
|
|
810
2061
|
className: cn(
|
|
811
|
-
"hover:bg-gray-50 dark:hover:bg-gray-900 data-[state=selected]:bg-gray-50 dark:data-[state=selected]:bg-gray-900 border-b border-gray-100 dark:border-gray-800 transition-colors",
|
|
2062
|
+
"ndk:hover:bg-gray-50 ndk:dark:hover:bg-gray-900 ndk:data-[state=selected]:bg-gray-50 ndk:dark:data-[state=selected]:bg-gray-900 ndk:border-b ndk:border-gray-100 ndk:dark:border-gray-800 ndk:transition-colors",
|
|
812
2063
|
className
|
|
813
2064
|
),
|
|
814
2065
|
...props
|
|
@@ -821,7 +2072,7 @@ function TableHead({ className, ...props }) {
|
|
|
821
2072
|
{
|
|
822
2073
|
"data-slot": "table-head",
|
|
823
2074
|
className: cn(
|
|
824
|
-
"text-gray-900 dark:text-gray-100 h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
2075
|
+
"ndk:text-gray-900 ndk:dark:text-gray-100 ndk:h-10 ndk:px-2 ndk:text-left ndk:align-middle ndk:font-medium ndk:whitespace-nowrap ndk:[&:has([role=checkbox])]:pr-0 ndk:[&>[role=checkbox]]:translate-y-[2px]",
|
|
825
2076
|
className
|
|
826
2077
|
),
|
|
827
2078
|
...props
|
|
@@ -834,7 +2085,7 @@ function TableCell({ className, ...props }) {
|
|
|
834
2085
|
{
|
|
835
2086
|
"data-slot": "table-cell",
|
|
836
2087
|
className: cn(
|
|
837
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
2088
|
+
"ndk:p-2 ndk:align-middle ndk:whitespace-nowrap ndk:[&:has([role=checkbox])]:pr-0 ndk:[&>[role=checkbox]]:translate-y-[2px]",
|
|
838
2089
|
className
|
|
839
2090
|
),
|
|
840
2091
|
...props
|
|
@@ -850,7 +2101,7 @@ function Checkbox({
|
|
|
850
2101
|
{
|
|
851
2102
|
"data-slot": "checkbox",
|
|
852
2103
|
className: cn(
|
|
853
|
-
"peer border-gray-200 bg-white text-gray-900 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-100 data-[state=checked]:bg-gray-900 data-[state=checked]:text-white dark:data-[state=checked]:bg-gray-100 dark:data-[state=checked]:text-gray-900 data-[state=checked]:border-gray-900 dark:data-[state=checked]:border-gray-100 focus-visible:border-gray-900 dark:focus-visible:border-gray-200 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/30 aria-invalid:border-red-500 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2104
|
+
"ndk:peer ndk:border-gray-200 ndk:bg-white ndk:text-gray-900 ndk:dark:border-gray-800 ndk:dark:bg-gray-950 ndk:dark:text-gray-100 ndk:data-[state=checked]:bg-gray-900 ndk:data-[state=checked]:text-white ndk:dark:data-[state=checked]:bg-gray-100 ndk:dark:data-[state=checked]:text-gray-900 ndk:data-[state=checked]:border-gray-900 ndk:dark:data-[state=checked]:border-gray-100 ndk:focus-visible:border-gray-900 ndk:dark:focus-visible:border-gray-200 ndk:focus-visible:ring-black/20 ndk:dark:focus-visible:ring-white/20 ndk:aria-invalid:ring-red-500/20 ndk:dark:aria-invalid:ring-red-500/30 ndk:aria-invalid:border-red-500 ndk:size-4 ndk:shrink-0 ndk:rounded-[4px] ndk:border ndk:shadow-xs ndk:transition-shadow ndk:outline-none ndk:focus-visible:ring-[3px] ndk:disabled:cursor-not-allowed ndk:disabled:opacity-50",
|
|
854
2105
|
className
|
|
855
2106
|
),
|
|
856
2107
|
...props,
|
|
@@ -858,8 +2109,8 @@ function Checkbox({
|
|
|
858
2109
|
CheckboxPrimitive__namespace.Indicator,
|
|
859
2110
|
{
|
|
860
2111
|
"data-slot": "checkbox-indicator",
|
|
861
|
-
className: "grid place-content-center text-current transition-none",
|
|
862
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-3.5" })
|
|
2112
|
+
className: "ndk:grid ndk:place-content-center ndk:text-current ndk:transition-none",
|
|
2113
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "ndk:size-3.5" })
|
|
863
2114
|
}
|
|
864
2115
|
)
|
|
865
2116
|
}
|
|
@@ -885,7 +2136,7 @@ function PopoverContent({
|
|
|
885
2136
|
align,
|
|
886
2137
|
sideOffset,
|
|
887
2138
|
className: cn(
|
|
888
|
-
"bg-white text-gray-900 dark:bg-gray-950 dark:text-gray-100 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border border-gray-200 dark:border-gray-800 p-4 shadow-md outline-hidden",
|
|
2139
|
+
"ndk:bg-white ndk:text-gray-900 ndk:dark:bg-gray-950 ndk:dark:text-gray-100 ndk:data-[state=open]:animate-in ndk:data-[state=closed]:animate-out ndk:data-[state=closed]:fade-out-0 ndk:data-[state=open]:fade-in-0 ndk:data-[state=closed]:zoom-out-95 ndk:data-[state=open]:zoom-in-95 ndk:data-[side=bottom]:slide-in-from-top-2 ndk:data-[side=left]:slide-in-from-right-2 ndk:data-[side=right]:slide-in-from-left-2 ndk:data-[side=top]:slide-in-from-bottom-2 ndk:z-50 ndk:w-72 ndk:origin-(--radix-popover-content-transform-origin) ndk:rounded-md ndk:border ndk:border-gray-200 ndk:dark:border-gray-800 ndk:p-4 ndk:shadow-md ndk:outline-hidden",
|
|
889
2140
|
className
|
|
890
2141
|
),
|
|
891
2142
|
...props
|
|
@@ -920,7 +2171,7 @@ function DropdownMenuContent({
|
|
|
920
2171
|
"data-slot": "dropdown-menu-content",
|
|
921
2172
|
sideOffset,
|
|
922
2173
|
className: cn(
|
|
923
|
-
"bg-white text-gray-900 dark:bg-gray-950 dark:text-gray-100 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-gray-200 dark:border-gray-800 p-1 shadow-md",
|
|
2174
|
+
"ndk:bg-white ndk:text-gray-900 ndk:dark:bg-gray-950 ndk:dark:text-gray-100 ndk:data-[state=open]:animate-in ndk:data-[state=closed]:animate-out ndk:data-[state=closed]:fade-out-0 ndk:data-[state=open]:fade-in-0 ndk:data-[state=closed]:zoom-out-95 ndk:data-[state=open]:zoom-in-95 ndk:data-[side=bottom]:slide-in-from-top-2 ndk:data-[side=left]:slide-in-from-right-2 ndk:data-[side=right]:slide-in-from-left-2 ndk:data-[side=top]:slide-in-from-bottom-2 ndk:z-50 ndk:max-h-(--radix-dropdown-menu-content-available-height) ndk:min-w-[8rem] ndk:origin-(--radix-dropdown-menu-content-transform-origin) ndk:overflow-x-hidden ndk:overflow-y-auto ndk:rounded-md ndk:border ndk:border-gray-200 ndk:dark:border-gray-800 ndk:p-1 ndk:shadow-md",
|
|
924
2175
|
className
|
|
925
2176
|
),
|
|
926
2177
|
...props
|
|
@@ -940,7 +2191,7 @@ function DropdownMenuItem({
|
|
|
940
2191
|
"data-inset": inset,
|
|
941
2192
|
"data-variant": variant,
|
|
942
2193
|
className: cn(
|
|
943
|
-
"focus:bg-gray-50 dark:focus:bg-gray-900 focus:text-gray-900 dark:focus:text-gray-100 data-[variant=destructive]:text-red-600 dark:data-[variant=destructive]:text-red-500 data-[variant=destructive]:focus:bg-red-500/10 dark:data-[variant=destructive]:focus:bg-red-500/15 data-[variant=destructive]:focus:text-red-700 dark:data-[variant=destructive]:focus:text-red-400 data-[variant=destructive]:*:[svg]:!text-red-600 dark:data-[variant=destructive]:*:[svg]:!text-red-500 [&_svg:not([class*='text-'])]:text-gray-500 dark:[&_svg:not([class*='text-'])]:text-gray-400 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2194
|
+
"ndk:focus:bg-gray-50 ndk:dark:focus:bg-gray-900 ndk:focus:text-gray-900 ndk:dark:focus:text-gray-100 ndk:data-[variant=destructive]:text-red-600 ndk:dark:data-[variant=destructive]:text-red-500 ndk:data-[variant=destructive]:focus:bg-red-500/10 ndk:dark:data-[variant=destructive]:focus:bg-red-500/15 ndk:data-[variant=destructive]:focus:text-red-700 ndk:dark:data-[variant=destructive]:focus:text-red-400 ndk:data-[variant=destructive]:*:[svg]:!text-red-600 ndk:dark:data-[variant=destructive]:*:[svg]:!text-red-500 ndk:[&_svg:not([class*='text-'])]:text-gray-500 ndk:dark:[&_svg:not([class*='text-'])]:text-gray-400 ndk:relative ndk:flex ndk:cursor-default ndk:items-center ndk:gap-2 ndk:rounded-sm ndk:px-2 ndk:py-1.5 ndk:text-sm ndk:outline-hidden ndk:select-none ndk:data-[disabled]:pointer-events-none ndk:data-[disabled]:opacity-50 ndk:data-[inset]:pl-8 ndk:[&_svg]:pointer-events-none ndk:[&_svg]:shrink-0 ndk:[&_svg:not([class*='size-'])]:size-4",
|
|
944
2195
|
className
|
|
945
2196
|
),
|
|
946
2197
|
...props
|
|
@@ -955,30 +2206,30 @@ function DropdownMenuSeparator({
|
|
|
955
2206
|
DropdownMenuPrimitive__namespace.Separator,
|
|
956
2207
|
{
|
|
957
2208
|
"data-slot": "dropdown-menu-separator",
|
|
958
|
-
className: cn("bg-gray-100 dark:bg-gray-900
|
|
2209
|
+
className: cn("ndk:bg-gray-100 ndk:dark:bg-gray-900 ndk:-mx-1 ndk:my-1 ndk:h-px", className),
|
|
959
2210
|
...props
|
|
960
2211
|
}
|
|
961
2212
|
);
|
|
962
2213
|
}
|
|
963
2214
|
var buttonVariants = classVarianceAuthority.cva(
|
|
964
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-black/20 dark:focus-visible:ring-white/20 focus-visible:ring-[3px] aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/30 aria-invalid:border-red-500",
|
|
2215
|
+
"ndk:inline-flex ndk:items-center ndk:justify-center ndk:gap-2 ndk:whitespace-nowrap ndk:rounded-md ndk:text-sm ndk:font-medium ndk:transition-all ndk:disabled:pointer-events-none ndk:disabled:opacity-50 ndk:[&_svg]:pointer-events-none ndk:[&_svg:not([class*='size-'])]:size-4 ndk:shrink-0 ndk:[&_svg]:shrink-0 ndk:outline-none ndk:focus-visible:ring-black/20 ndk:dark:focus-visible:ring-white/20 ndk:focus-visible:ring-[3px] ndk:aria-invalid:ring-red-500/20 ndk:dark:aria-invalid:ring-red-500/30 ndk:aria-invalid:border-red-500",
|
|
965
2216
|
{
|
|
966
2217
|
variants: {
|
|
967
2218
|
variant: {
|
|
968
|
-
default: "bg-gray-900 text-white hover:bg-gray-800 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-200",
|
|
969
|
-
destructive: "bg-red-600 text-white hover:bg-red-700 dark:bg-red-600 dark:hover:bg-red-500",
|
|
970
|
-
outline: "border border-gray-200 bg-white text-gray-900 shadow-xs hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-100 dark:hover:bg-gray-900",
|
|
971
|
-
secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-900 dark:text-gray-100 dark:hover:bg-gray-800",
|
|
972
|
-
ghost: "hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-900 dark:hover:text-gray-100",
|
|
973
|
-
link: "text-gray-900 underline-offset-4 hover:underline dark:text-gray-100"
|
|
2219
|
+
default: "ndk:bg-gray-900 ndk:text-white ndk:hover:bg-gray-800 ndk:dark:bg-gray-100 ndk:dark:text-gray-900 ndk:dark:hover:bg-gray-200",
|
|
2220
|
+
destructive: "ndk:bg-red-600 ndk:text-white ndk:hover:bg-red-700 ndk:dark:bg-red-600 ndk:dark:hover:bg-red-500",
|
|
2221
|
+
outline: "ndk:border ndk:border-gray-200 ndk:bg-white ndk:text-gray-900 ndk:shadow-xs ndk:hover:bg-gray-50 ndk:dark:border-gray-800 ndk:dark:bg-gray-950 ndk:dark:text-gray-100 ndk:dark:hover:bg-gray-900",
|
|
2222
|
+
secondary: "ndk:bg-gray-100 ndk:text-gray-900 ndk:hover:bg-gray-200 ndk:dark:bg-gray-900 ndk:dark:text-gray-100 ndk:dark:hover:bg-gray-800",
|
|
2223
|
+
ghost: "ndk:hover:bg-gray-100 ndk:hover:text-gray-900 ndk:dark:hover:bg-gray-900 ndk:dark:hover:text-gray-100",
|
|
2224
|
+
link: "ndk:text-gray-900 ndk:underline-offset-4 ndk:hover:underline ndk:dark:text-gray-100"
|
|
974
2225
|
},
|
|
975
2226
|
size: {
|
|
976
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
977
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
978
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
979
|
-
icon: "size-9",
|
|
980
|
-
"icon-sm": "size-8",
|
|
981
|
-
"icon-lg": "size-10"
|
|
2227
|
+
default: "ndk:h-9 ndk:px-4 ndk:py-2 ndk:has-[>svg]:px-3",
|
|
2228
|
+
sm: "ndk:h-8 ndk:rounded-md ndk:gap-1.5 ndk:px-3 ndk:has-[>svg]:px-2.5",
|
|
2229
|
+
lg: "ndk:h-10 ndk:rounded-md ndk:px-6 ndk:has-[>svg]:px-4",
|
|
2230
|
+
icon: "ndk:size-9",
|
|
2231
|
+
"icon-sm": "ndk:size-8",
|
|
2232
|
+
"icon-lg": "ndk:size-10"
|
|
982
2233
|
}
|
|
983
2234
|
},
|
|
984
2235
|
defaultVariants: {
|
|
@@ -1015,7 +2266,7 @@ function Pagination({ className, ...props }) {
|
|
|
1015
2266
|
role: "navigation",
|
|
1016
2267
|
"aria-label": "pagination",
|
|
1017
2268
|
"data-slot": "pagination",
|
|
1018
|
-
className: cn("flex", className),
|
|
2269
|
+
className: cn("ndk:flex", className),
|
|
1019
2270
|
...props
|
|
1020
2271
|
}
|
|
1021
2272
|
);
|
|
@@ -1028,7 +2279,7 @@ function PaginationContent({
|
|
|
1028
2279
|
"ul",
|
|
1029
2280
|
{
|
|
1030
2281
|
"data-slot": "pagination-content",
|
|
1031
|
-
className: cn("flex flex-row items-center gap-1", className),
|
|
2282
|
+
className: cn("ndk:flex ndk:flex-row ndk:items-center ndk:gap-1", className),
|
|
1032
2283
|
...props
|
|
1033
2284
|
}
|
|
1034
2285
|
);
|
|
@@ -1070,11 +2321,11 @@ function PaginationPrevious({
|
|
|
1070
2321
|
{
|
|
1071
2322
|
"aria-label": "Go to previous page",
|
|
1072
2323
|
size: "default",
|
|
1073
|
-
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
2324
|
+
className: cn("ndk:gap-1 ndk:px-2.5 ndk:sm:pl-2.5", className),
|
|
1074
2325
|
...props,
|
|
1075
2326
|
children: [
|
|
1076
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4", "aria-hidden": "true" }),
|
|
1077
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Previous" })
|
|
2327
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "ndk:size-4", "aria-hidden": "true" }),
|
|
2328
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ndk:hidden ndk:sm:block", children: "Previous" })
|
|
1078
2329
|
]
|
|
1079
2330
|
}
|
|
1080
2331
|
);
|
|
@@ -1088,11 +2339,11 @@ function PaginationNext({
|
|
|
1088
2339
|
{
|
|
1089
2340
|
"aria-label": "Go to next page",
|
|
1090
2341
|
size: "default",
|
|
1091
|
-
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
2342
|
+
className: cn("ndk:gap-1 ndk:px-2.5 ndk:sm:pr-2.5", className),
|
|
1092
2343
|
...props,
|
|
1093
2344
|
children: [
|
|
1094
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Next" }),
|
|
1095
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4", "aria-hidden": "true" })
|
|
2345
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ndk:hidden ndk:sm:block", children: "Next" }),
|
|
2346
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ndk:size-4", "aria-hidden": "true" })
|
|
1096
2347
|
]
|
|
1097
2348
|
}
|
|
1098
2349
|
);
|
|
@@ -1106,11 +2357,11 @@ function PaginationEllipsis({
|
|
|
1106
2357
|
{
|
|
1107
2358
|
"aria-hidden": "true",
|
|
1108
2359
|
"data-slot": "pagination-ellipsis",
|
|
1109
|
-
className: cn("flex size-9 items-center justify-center", className),
|
|
2360
|
+
className: cn("ndk:flex ndk:size-9 ndk:items-center ndk:justify-center", className),
|
|
1110
2361
|
...props,
|
|
1111
2362
|
children: [
|
|
1112
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "size-4", "aria-hidden": "true" }),
|
|
1113
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
2363
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "ndk:size-4", "aria-hidden": "true" }),
|
|
2364
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ndk:sr-only", children: "More pages" })
|
|
1114
2365
|
]
|
|
1115
2366
|
}
|
|
1116
2367
|
);
|
|
@@ -1137,13 +2388,13 @@ function SelectTrigger({
|
|
|
1137
2388
|
"data-slot": "select-trigger",
|
|
1138
2389
|
"data-size": size,
|
|
1139
2390
|
className: cn(
|
|
1140
|
-
"border-gray-200 dark:border-gray-800 data-[placeholder]:text-gray-500 dark:data-[placeholder]:text-gray-400 [&_svg:not([class*='text-'])]:text-gray-500 dark:[&_svg:not([class*='text-'])]:text-gray-400 focus-visible:border-gray-900 dark:focus-visible:border-gray-200 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/30 aria-invalid:border-red-500 bg-white dark:bg-gray-950 hover:bg-gray-50 dark:hover:bg-gray-900 flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8
|
|
2391
|
+
"ndk:border-gray-200 ndk:dark:border-gray-800 ndk:data-[placeholder]:text-gray-500 ndk:dark:data-[placeholder]:text-gray-400 ndk:[&_svg:not([class*='text-'])]:text-gray-500 ndk:dark:[&_svg:not([class*='text-'])]:text-gray-400 ndk:focus-visible:border-gray-900 ndk:dark:focus-visible:border-gray-200 ndk:focus-visible:ring-black/20 ndk:dark:focus-visible:ring-white/20 ndk:aria-invalid:ring-red-500/20 ndk:dark:aria-invalid:ring-red-500/30 ndk:aria-invalid:border-red-500 ndk:bg-white ndk:dark:bg-gray-950 ndk:hover:bg-gray-50 ndk:dark:hover:bg-gray-900 ndk:flex ndk:w-fit ndk:items-center ndk:justify-between ndk:gap-2 ndk:rounded-md ndk:border ndk:px-3 ndk:py-2 ndk:text-sm ndk:whitespace-nowrap ndk:shadow-xs ndk:transition-[color,box-shadow] ndk:outline-none ndk:focus-visible:ring-[3px] ndk:disabled:cursor-not-allowed ndk:disabled:opacity-50 ndk:data-[size=default]:h-9 ndk:data-[size=sm]:h-8 ndk:*:data-[slot=select-value]:line-clamp-1 ndk:*:data-[slot=select-value]:flex ndk:*:data-[slot=select-value]:items-center ndk:*:data-[slot=select-value]:gap-2 ndk:[&_svg]:pointer-events-none ndk:[&_svg]:shrink-0 ndk:[&_svg:not([class*='size-'])]:size-4",
|
|
1141
2392
|
className
|
|
1142
2393
|
),
|
|
1143
2394
|
...props,
|
|
1144
2395
|
children: [
|
|
1145
2396
|
children,
|
|
1146
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
2397
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "ndk:size-4 ndk:opacity-50" }) })
|
|
1147
2398
|
]
|
|
1148
2399
|
}
|
|
1149
2400
|
);
|
|
@@ -1161,8 +2412,8 @@ function SelectContent({
|
|
|
1161
2412
|
{
|
|
1162
2413
|
"data-slot": "select-content",
|
|
1163
2414
|
className: cn(
|
|
1164
|
-
"bg-white text-gray-900 dark:bg-gray-950 dark:text-gray-100 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-gray-200 dark:border-gray-800 shadow-md",
|
|
1165
|
-
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
2415
|
+
"ndk:bg-white ndk:text-gray-900 ndk:dark:bg-gray-950 ndk:dark:text-gray-100 ndk:data-[state=open]:animate-in ndk:data-[state=closed]:animate-out ndk:data-[state=closed]:fade-out-0 ndk:data-[state=open]:fade-in-0 ndk:data-[state=closed]:zoom-out-95 ndk:data-[state=open]:zoom-in-95 ndk:data-[side=bottom]:slide-in-from-top-2 ndk:data-[side=left]:slide-in-from-right-2 ndk:data-[side=right]:slide-in-from-left-2 ndk:data-[side=top]:slide-in-from-bottom-2 ndk:relative ndk:z-50 ndk:max-h-(--radix-select-content-available-height) ndk:min-w-[8rem] ndk:origin-(--radix-select-content-transform-origin) ndk:overflow-x-hidden ndk:overflow-y-auto ndk:rounded-md ndk:border ndk:border-gray-200 ndk:dark:border-gray-800 ndk:shadow-md",
|
|
2416
|
+
position === "popper" && "ndk:data-[side=bottom]:translate-y-1 ndk:data-[side=left]:-translate-x-1 ndk:data-[side=right]:translate-x-1 ndk:data-[side=top]:-translate-y-1",
|
|
1166
2417
|
className
|
|
1167
2418
|
),
|
|
1168
2419
|
position,
|
|
@@ -1174,8 +2425,8 @@ function SelectContent({
|
|
|
1174
2425
|
SelectPrimitive__namespace.Viewport,
|
|
1175
2426
|
{
|
|
1176
2427
|
className: cn(
|
|
1177
|
-
"p-1",
|
|
1178
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
2428
|
+
"ndk:p-1",
|
|
2429
|
+
position === "popper" && "ndk:h-[var(--radix-select-trigger-height)] ndk:w-full ndk:min-w-[var(--radix-select-trigger-width)] ndk:scroll-my-1"
|
|
1179
2430
|
),
|
|
1180
2431
|
children
|
|
1181
2432
|
}
|
|
@@ -1195,7 +2446,7 @@ function SelectItem({
|
|
|
1195
2446
|
{
|
|
1196
2447
|
"data-slot": "select-item",
|
|
1197
2448
|
className: cn(
|
|
1198
|
-
"focus:bg-gray-50 dark:focus:bg-gray-900 focus:text-gray-900 dark:focus:text-gray-100 [&_svg:not([class*='text-'])]:text-gray-500 dark:[&_svg:not([class*='text-'])]:text-gray-400 relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4
|
|
2449
|
+
"ndk:focus:bg-gray-50 ndk:dark:focus:bg-gray-900 ndk:focus:text-gray-900 ndk:dark:focus:text-gray-100 ndk:[&_svg:not([class*='text-'])]:text-gray-500 ndk:dark:[&_svg:not([class*='text-'])]:text-gray-400 ndk:relative ndk:flex ndk:w-full ndk:cursor-default ndk:items-center ndk:gap-2 ndk:rounded-sm ndk:py-1.5 ndk:pr-8 ndk:pl-2 ndk:text-sm ndk:outline-hidden ndk:select-none ndk:data-[disabled]:pointer-events-none ndk:data-[disabled]:opacity-50 ndk:[&_svg]:pointer-events-none ndk:[&_svg]:shrink-0 ndk:[&_svg:not([class*='size-'])]:size-4 ndk:*:[span]:last:flex ndk:*:[span]:last:items-center ndk:*:[span]:last:gap-2",
|
|
1199
2450
|
className
|
|
1200
2451
|
),
|
|
1201
2452
|
...props,
|
|
@@ -1204,8 +2455,8 @@ function SelectItem({
|
|
|
1204
2455
|
"span",
|
|
1205
2456
|
{
|
|
1206
2457
|
"data-slot": "select-item-indicator",
|
|
1207
|
-
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
1208
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) })
|
|
2458
|
+
className: "ndk:absolute ndk:right-2 ndk:flex ndk:size-3.5 ndk:items-center ndk:justify-center",
|
|
2459
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "ndk:size-4" }) })
|
|
1209
2460
|
}
|
|
1210
2461
|
),
|
|
1211
2462
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
@@ -1222,11 +2473,11 @@ function SelectScrollUpButton({
|
|
|
1222
2473
|
{
|
|
1223
2474
|
"data-slot": "select-scroll-up-button",
|
|
1224
2475
|
className: cn(
|
|
1225
|
-
"flex cursor-default items-center justify-center py-1",
|
|
2476
|
+
"ndk:flex ndk:cursor-default ndk:items-center ndk:justify-center ndk:py-1",
|
|
1226
2477
|
className
|
|
1227
2478
|
),
|
|
1228
2479
|
...props,
|
|
1229
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUpIcon, { className: "size-4" })
|
|
2480
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUpIcon, { className: "ndk:size-4" })
|
|
1230
2481
|
}
|
|
1231
2482
|
);
|
|
1232
2483
|
}
|
|
@@ -1239,11 +2490,11 @@ function SelectScrollDownButton({
|
|
|
1239
2490
|
{
|
|
1240
2491
|
"data-slot": "select-scroll-down-button",
|
|
1241
2492
|
className: cn(
|
|
1242
|
-
"flex cursor-default items-center justify-center py-1",
|
|
2493
|
+
"ndk:flex ndk:cursor-default ndk:items-center ndk:justify-center ndk:py-1",
|
|
1243
2494
|
className
|
|
1244
2495
|
),
|
|
1245
2496
|
...props,
|
|
1246
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "size-4" })
|
|
2497
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "ndk:size-4" })
|
|
1247
2498
|
}
|
|
1248
2499
|
);
|
|
1249
2500
|
}
|
|
@@ -1377,6 +2628,8 @@ var DataKitRoot = (props) => {
|
|
|
1377
2628
|
if (controller) {
|
|
1378
2629
|
controller.current = {
|
|
1379
2630
|
itemPush: dataKit.actions.itemPush,
|
|
2631
|
+
itemUpdate: dataKit.actions.itemUpdate,
|
|
2632
|
+
itemDelete: dataKit.actions.itemDelete,
|
|
1380
2633
|
refetchData: dataKit.actions.refresh,
|
|
1381
2634
|
deleteBulk: dataKit.actions.deleteBulk,
|
|
1382
2635
|
getSelectedItems: () => dataKit.items.filter((item) => selection.isSelected(item.id)),
|
|
@@ -1411,20 +2664,20 @@ var DataKitRoot = (props) => {
|
|
|
1411
2664
|
React2.useEffect(() => {
|
|
1412
2665
|
selection.deselectAll();
|
|
1413
2666
|
}, [dataKit.items.length]);
|
|
1414
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: tableRef, className: `space-y-3 ${className ?? ""}`, children: [
|
|
1415
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
2667
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: tableRef, className: `ndk:space-y-3 ${className ?? ""}`, children: [
|
|
2668
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:items-center ndk:justify-between ndk:gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:items-center ndk:gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
1416
2669
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "sm", children: [
|
|
1417
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "mr-1.5 size-4" }),
|
|
2670
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "ndk:mr-1.5 ndk:size-4" }),
|
|
1418
2671
|
"Filters"
|
|
1419
2672
|
] }) }),
|
|
1420
|
-
/* @__PURE__ */ jsxRuntime.jsxs(PopoverContent, { align: "start", className: "w-80", container: overlayContainer, children: [
|
|
1421
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3", children: filters.map((f) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1.5", children: [
|
|
1422
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium", children: f.label }),
|
|
2673
|
+
/* @__PURE__ */ jsxRuntime.jsxs(PopoverContent, { align: "start", className: "ndk:w-80", container: overlayContainer, children: [
|
|
2674
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:grid ndk:gap-3", children: filters.map((f) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:grid ndk:gap-1.5", children: [
|
|
2675
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "ndk:text-sm ndk:font-medium", children: f.label }),
|
|
1423
2676
|
f.type === "TEXT" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1424
2677
|
"input",
|
|
1425
2678
|
{
|
|
1426
2679
|
type: "text",
|
|
1427
|
-
className: "h-9 w-full rounded-md border bg-transparent px-3 text-sm outline-none focus:ring-2 focus:ring-ring",
|
|
2680
|
+
className: "ndk:h-9 ndk:w-full ndk:rounded-md ndk:border ndk:bg-transparent ndk:px-3 ndk:text-sm ndk:outline-none ndk:focus:ring-2 ndk:focus:ring-ring",
|
|
1428
2681
|
placeholder: f.placeholder,
|
|
1429
2682
|
value: dataKit.filter[f.id] ?? "",
|
|
1430
2683
|
onChange: (e) => dataKit.actions.setFilter(f.id, e.target.value)
|
|
@@ -1444,7 +2697,7 @@ var DataKitRoot = (props) => {
|
|
|
1444
2697
|
]
|
|
1445
2698
|
}
|
|
1446
2699
|
),
|
|
1447
|
-
f.type === "BOOLEAN" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2700
|
+
f.type === "BOOLEAN" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:items-center ndk:justify-between", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1448
2701
|
Checkbox,
|
|
1449
2702
|
{
|
|
1450
2703
|
checked: Boolean(dataKit.filter[f.id]),
|
|
@@ -1452,15 +2705,15 @@ var DataKitRoot = (props) => {
|
|
|
1452
2705
|
}
|
|
1453
2706
|
) })
|
|
1454
2707
|
] }, f.id)) }),
|
|
1455
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 flex justify-between border-t pt-3", children: [
|
|
2708
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:mt-4 ndk:flex ndk:justify-between ndk:border-t ndk:pt-3", children: [
|
|
1456
2709
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "sm", onClick: handleResetFilters, children: "Reset" }),
|
|
1457
2710
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { size: "sm", onClick: () => setIsFilterOpen(false), children: "Done" })
|
|
1458
2711
|
] })
|
|
1459
2712
|
] })
|
|
1460
2713
|
] }) }) }),
|
|
1461
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `overflow-hidden border border-gray-200 dark:border-gray-800 ${bordered === "rounded" ? "rounded-lg" : bordered ? "" : "rounded-lg"}`, children: /* @__PURE__ */ jsxRuntime.jsxs(Table, { children: [
|
|
2714
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `ndk:overflow-hidden ndk:border ndk:border-gray-200 ndk:dark:border-gray-800 ${bordered === "rounded" ? "ndk:rounded-lg" : bordered ? "" : "ndk:rounded-lg"}`, children: /* @__PURE__ */ jsxRuntime.jsxs(Table, { children: [
|
|
1462
2715
|
/* @__PURE__ */ jsxRuntime.jsx(TableHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(TableRow, { children: [
|
|
1463
|
-
selectable?.enabled && /* @__PURE__ */ jsxRuntime.jsx(TableHead, { className: "w-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2716
|
+
selectable?.enabled && /* @__PURE__ */ jsxRuntime.jsx(TableHead, { className: "ndk:w-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-2", children: [
|
|
1464
2717
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1465
2718
|
Checkbox,
|
|
1466
2719
|
{
|
|
@@ -1474,9 +2727,9 @@ var DataKitRoot = (props) => {
|
|
|
1474
2727
|
{
|
|
1475
2728
|
variant: "ghost",
|
|
1476
2729
|
size: "icon",
|
|
1477
|
-
className: "size-6",
|
|
2730
|
+
className: "ndk:size-6",
|
|
1478
2731
|
disabled: selectedCount === 0 || !!actionLoading,
|
|
1479
|
-
children: actionLoading ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "size-4" })
|
|
2732
|
+
children: actionLoading ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "ndk:size-4 ndk:animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "ndk:size-4" })
|
|
1480
2733
|
}
|
|
1481
2734
|
) }),
|
|
1482
2735
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "start", container: overlayContainer, children: Object.entries(selectable.actions).map(
|
|
@@ -1492,20 +2745,20 @@ var DataKitRoot = (props) => {
|
|
|
1492
2745
|
{
|
|
1493
2746
|
variant: "ghost",
|
|
1494
2747
|
size: "sm",
|
|
1495
|
-
className: "
|
|
2748
|
+
className: "ndk:-ml-4 ndk:h-auto ndk:py-0",
|
|
1496
2749
|
onClick: () => handleSort(col.sortable.path),
|
|
1497
2750
|
children: [
|
|
1498
2751
|
React2__namespace.default.isValidElement(col.head) ? col.head.props.children : col.head,
|
|
1499
|
-
getSortFor(col.sortable.path) === 1 && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUp, { className: "ml-1 size-4" }),
|
|
1500
|
-
getSortFor(col.sortable.path) === -1 && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDown, { className: "ml-1 size-4" })
|
|
2752
|
+
getSortFor(col.sortable.path) === 1 && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUp, { className: "ndk:ml-1 ndk:size-4" }),
|
|
2753
|
+
getSortFor(col.sortable.path) === -1 && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDown, { className: "ndk:ml-1 ndk:size-4" })
|
|
1501
2754
|
]
|
|
1502
2755
|
}
|
|
1503
2756
|
) }) : col.head }, idx))
|
|
1504
2757
|
] }) }),
|
|
1505
|
-
/* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: dataKit.state.isLoading ? /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsx(TableCell, { colSpan, className: "h-24 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "mx-auto size-5 animate-spin" }) }) }) : dataKit.state.error ? /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsxs(TableCell, { colSpan, className: "h-24 text-center text-red-500", children: [
|
|
2758
|
+
/* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: dataKit.state.isLoading ? /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsx(TableCell, { colSpan, className: "ndk:h-24 ndk:text-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "ndk:mx-auto ndk:size-5 ndk:animate-spin" }) }) }) : dataKit.state.error ? /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsxs(TableCell, { colSpan, className: "ndk:h-24 ndk:text-center ndk:text-red-500", children: [
|
|
1506
2759
|
"Error: ",
|
|
1507
2760
|
dataKit.state.error.message
|
|
1508
|
-
] }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsx(TableCell, { colSpan, className: "h-24 text-center text-muted-foreground", children: "No results found." }) }) : dataKit.items.map((item, idx) => {
|
|
2761
|
+
] }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsx(TableCell, { colSpan, className: "ndk:h-24 ndk:text-center ndk:text-muted-foreground", children: "No results found." }) }) : dataKit.items.map((item, idx) => {
|
|
1509
2762
|
const rowId = item.id ?? idx;
|
|
1510
2763
|
return /* @__PURE__ */ jsxRuntime.jsxs(TableRow, { children: [
|
|
1511
2764
|
selectable?.enabled && /* @__PURE__ */ jsxRuntime.jsx(TableCell, { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1528,24 +2781,24 @@ var DataKitRoot = (props) => {
|
|
|
1528
2781
|
] }, rowId);
|
|
1529
2782
|
}) })
|
|
1530
2783
|
] }) }),
|
|
1531
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4 justify-between", children: [
|
|
1532
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2784
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-4 ndk:justify-between", children: [
|
|
2785
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-3", children: [
|
|
1533
2786
|
/* @__PURE__ */ jsxRuntime.jsxs(Select, { value: String(dataKit.limit), onValueChange: (v) => dataKit.actions.setLimit(Number(v)), disabled: dataKit.state.isLoading, children: [
|
|
1534
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { className: "w-16", children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {}) }),
|
|
2787
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { className: "ndk:w-16", children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {}) }),
|
|
1535
2788
|
/* @__PURE__ */ jsxRuntime.jsx(SelectContent, { container: overlayContainer, children: limitOptions.map((v) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: String(v), children: v }, v)) })
|
|
1536
2789
|
] }),
|
|
1537
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: [
|
|
2790
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "ndk:text-sm ndk:text-muted-foreground ndk:whitespace-nowrap", children: [
|
|
1538
2791
|
"Page ",
|
|
1539
2792
|
dataKit.page,
|
|
1540
2793
|
" of ",
|
|
1541
2794
|
pagination.totalPages
|
|
1542
2795
|
] }),
|
|
1543
|
-
selectable?.enabled && selectedCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-foreground", children: [
|
|
2796
|
+
selectable?.enabled && selectedCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "ndk:text-sm ndk:text-foreground", children: [
|
|
1544
2797
|
selectedCount,
|
|
1545
2798
|
" selected"
|
|
1546
2799
|
] })
|
|
1547
2800
|
] }),
|
|
1548
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end", children: paginationType === "SIMPLE" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2801
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:justify-end", children: paginationType === "SIMPLE" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-1", children: [
|
|
1549
2802
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1550
2803
|
Button,
|
|
1551
2804
|
{
|
|
@@ -1553,7 +2806,7 @@ var DataKitRoot = (props) => {
|
|
|
1553
2806
|
size: "icon",
|
|
1554
2807
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1555
2808
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1556
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" })
|
|
2809
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "ndk:size-4" })
|
|
1557
2810
|
}
|
|
1558
2811
|
),
|
|
1559
2812
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1563,26 +2816,26 @@ var DataKitRoot = (props) => {
|
|
|
1563
2816
|
size: "icon",
|
|
1564
2817
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1565
2818
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1566
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4" })
|
|
2819
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ndk:size-4" })
|
|
1567
2820
|
}
|
|
1568
2821
|
)
|
|
1569
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(Pagination, { className: "w-auto", children: /* @__PURE__ */ jsxRuntime.jsxs(PaginationContent, { children: [
|
|
1570
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2822
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(Pagination, { className: "ndk:w-auto", children: /* @__PURE__ */ jsxRuntime.jsxs(PaginationContent, { children: [
|
|
2823
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1571
2824
|
PaginationPrevious,
|
|
1572
2825
|
{
|
|
1573
2826
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1574
2827
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1)
|
|
1575
2828
|
}
|
|
1576
2829
|
) }),
|
|
1577
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2830
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1578
2831
|
PaginationLink,
|
|
1579
2832
|
{
|
|
1580
2833
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1581
2834
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1582
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" })
|
|
2835
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "ndk:size-4" })
|
|
1583
2836
|
}
|
|
1584
2837
|
) }),
|
|
1585
|
-
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "hidden sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2838
|
+
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1586
2839
|
PaginationLink,
|
|
1587
2840
|
{
|
|
1588
2841
|
isActive: pageNum === dataKit.page,
|
|
@@ -1591,20 +2844,20 @@ var DataKitRoot = (props) => {
|
|
|
1591
2844
|
children: pageNum
|
|
1592
2845
|
}
|
|
1593
2846
|
) }, idx)),
|
|
1594
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-9 items-center justify-center text-sm", children: dataKit.page }) }),
|
|
1595
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2847
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ndk:flex ndk:size-9 ndk:items-center ndk:justify-center ndk:text-sm", children: dataKit.page }) }),
|
|
2848
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1596
2849
|
PaginationNext,
|
|
1597
2850
|
{
|
|
1598
2851
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1599
2852
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1)
|
|
1600
2853
|
}
|
|
1601
2854
|
) }),
|
|
1602
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2855
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1603
2856
|
PaginationLink,
|
|
1604
2857
|
{
|
|
1605
2858
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1606
2859
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1607
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4" })
|
|
2860
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ndk:size-4" })
|
|
1608
2861
|
}
|
|
1609
2862
|
) })
|
|
1610
2863
|
] }) }) })
|
|
@@ -1691,21 +2944,21 @@ var DataKitInner = (props, ref) => {
|
|
|
1691
2944
|
if (intervalRef.current) clearInterval(intervalRef.current);
|
|
1692
2945
|
};
|
|
1693
2946
|
}, [refetchInterval, isVisible, dataKit.actions]);
|
|
1694
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: `space-y-3 ${className ?? ""}`, children: [
|
|
1695
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1696
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
2947
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: `ndk:space-y-3 ${className ?? ""}`, children: [
|
|
2948
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:justify-between ndk:gap-2", children: [
|
|
2949
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:items-center ndk:gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
1697
2950
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "sm", children: [
|
|
1698
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "mr-1.5 size-4" }),
|
|
2951
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "ndk:mr-1.5 ndk:size-4" }),
|
|
1699
2952
|
"Filters"
|
|
1700
2953
|
] }) }),
|
|
1701
|
-
/* @__PURE__ */ jsxRuntime.jsxs(PopoverContent, { align: "start", className: "w-80", container: overlayContainer, children: [
|
|
1702
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3", children: filters.map((f) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1.5", children: [
|
|
1703
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium", children: f.label }),
|
|
2954
|
+
/* @__PURE__ */ jsxRuntime.jsxs(PopoverContent, { align: "start", className: "ndk:w-80", container: overlayContainer, children: [
|
|
2955
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:grid ndk:gap-3", children: filters.map((f) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:grid ndk:gap-1.5", children: [
|
|
2956
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "ndk:text-sm ndk:font-medium", children: f.label }),
|
|
1704
2957
|
f.type === "TEXT" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1705
2958
|
"input",
|
|
1706
2959
|
{
|
|
1707
2960
|
type: "text",
|
|
1708
|
-
className: "h-9 w-full rounded-md border bg-transparent px-3 text-sm outline-none focus:ring-2 focus:ring-ring",
|
|
2961
|
+
className: "ndk:h-9 ndk:w-full ndk:rounded-md ndk:border ndk:bg-transparent ndk:px-3 ndk:text-sm ndk:outline-none ndk:focus:ring-2 ndk:focus:ring-ring",
|
|
1709
2962
|
placeholder: f.placeholder,
|
|
1710
2963
|
value: dataKit.filter[f.id] ?? "",
|
|
1711
2964
|
onChange: (e) => dataKit.actions.setFilter(f.id, e.target.value)
|
|
@@ -1725,7 +2978,7 @@ var DataKitInner = (props, ref) => {
|
|
|
1725
2978
|
]
|
|
1726
2979
|
}
|
|
1727
2980
|
),
|
|
1728
|
-
f.type === "BOOLEAN" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2981
|
+
f.type === "BOOLEAN" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:items-center ndk:justify-between", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1729
2982
|
Checkbox,
|
|
1730
2983
|
{
|
|
1731
2984
|
checked: Boolean(dataKit.filter[f.id]),
|
|
@@ -1733,33 +2986,33 @@ var DataKitInner = (props, ref) => {
|
|
|
1733
2986
|
}
|
|
1734
2987
|
) })
|
|
1735
2988
|
] }, f.id)) }),
|
|
1736
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 flex justify-between border-t pt-3", children: [
|
|
2989
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:mt-4 ndk:flex ndk:justify-between ndk:border-t ndk:pt-3", children: [
|
|
1737
2990
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "sm", onClick: handleResetFilters, children: "Reset" }),
|
|
1738
2991
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { size: "sm", onClick: () => setIsFilterOpen(false), children: "Done" })
|
|
1739
2992
|
] })
|
|
1740
2993
|
] })
|
|
1741
2994
|
] }) }),
|
|
1742
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
1743
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "mr-2 text-sm text-muted-foreground", children: [
|
|
2995
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-1", children: [
|
|
2996
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ndk:mr-2 ndk:text-sm ndk:text-muted-foreground", children: [
|
|
1744
2997
|
dataKit.items.length,
|
|
1745
2998
|
" of ",
|
|
1746
2999
|
dataKit.total
|
|
1747
3000
|
] }),
|
|
1748
3001
|
/* @__PURE__ */ jsxRuntime.jsxs(Select, { value: String(dataKit.limit), onValueChange: (v) => dataKit.actions.setLimit(Number(v)), disabled: dataKit.state.isLoading, children: [
|
|
1749
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { className: "w-16", children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {}) }),
|
|
3002
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { className: "ndk:w-16", children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {}) }),
|
|
1750
3003
|
/* @__PURE__ */ jsxRuntime.jsx(SelectContent, { container: overlayContainer, children: limitOptions.map((v) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: String(v), children: v }, v)) })
|
|
1751
3004
|
] })
|
|
1752
3005
|
] })
|
|
1753
3006
|
] }),
|
|
1754
|
-
manual ? children(dataKit) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-[200px]", children: dataKit.state.isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-48 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-6 animate-spin text-muted-foreground" }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-48 items-center justify-center text-muted-foreground", children: "No results found." }) : children(dataKit) }),
|
|
1755
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1756
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
3007
|
+
manual ? children(dataKit) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:min-h-[200px]", children: dataKit.state.isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:h-48 ndk:items-center ndk:justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "ndk:size-6 ndk:animate-spin ndk:text-muted-foreground" }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ndk:flex ndk:h-48 ndk:items-center ndk:justify-center ndk:text-muted-foreground", children: "No results found." }) : children(dataKit) }),
|
|
3008
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:justify-between", children: [
|
|
3009
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "ndk:text-sm ndk:text-muted-foreground", children: [
|
|
1757
3010
|
"Page ",
|
|
1758
3011
|
dataKit.page,
|
|
1759
3012
|
" of ",
|
|
1760
3013
|
pagination.totalPages
|
|
1761
3014
|
] }),
|
|
1762
|
-
paginationType === "SIMPLE" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
3015
|
+
paginationType === "SIMPLE" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-1", children: [
|
|
1763
3016
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1764
3017
|
Button,
|
|
1765
3018
|
{
|
|
@@ -1767,7 +3020,7 @@ var DataKitInner = (props, ref) => {
|
|
|
1767
3020
|
size: "icon",
|
|
1768
3021
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1769
3022
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1770
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" })
|
|
3023
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "ndk:size-4" })
|
|
1771
3024
|
}
|
|
1772
3025
|
),
|
|
1773
3026
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1777,26 +3030,26 @@ var DataKitInner = (props, ref) => {
|
|
|
1777
3030
|
size: "icon",
|
|
1778
3031
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1779
3032
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1780
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4" })
|
|
3033
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ndk:size-4" })
|
|
1781
3034
|
}
|
|
1782
3035
|
)
|
|
1783
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(Pagination, { className: "mx-0 w-auto", children: /* @__PURE__ */ jsxRuntime.jsxs(PaginationContent, { children: [
|
|
1784
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3036
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(Pagination, { className: "ndk:mx-0 ndk:w-auto", children: /* @__PURE__ */ jsxRuntime.jsxs(PaginationContent, { children: [
|
|
3037
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1785
3038
|
PaginationPrevious,
|
|
1786
3039
|
{
|
|
1787
3040
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1788
3041
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1)
|
|
1789
3042
|
}
|
|
1790
3043
|
) }),
|
|
1791
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3044
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1792
3045
|
PaginationLink,
|
|
1793
3046
|
{
|
|
1794
3047
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1795
3048
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1796
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" })
|
|
3049
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "ndk:size-4" })
|
|
1797
3050
|
}
|
|
1798
3051
|
) }),
|
|
1799
|
-
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "hidden sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3052
|
+
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1800
3053
|
PaginationLink,
|
|
1801
3054
|
{
|
|
1802
3055
|
isActive: pageNum === dataKit.page,
|
|
@@ -1805,20 +3058,20 @@ var DataKitInner = (props, ref) => {
|
|
|
1805
3058
|
children: pageNum
|
|
1806
3059
|
}
|
|
1807
3060
|
) }, idx)),
|
|
1808
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-9 items-center justify-center text-sm", children: dataKit.page }) }),
|
|
1809
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3061
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ndk:flex ndk:size-9 ndk:items-center ndk:justify-center ndk:text-sm", children: dataKit.page }) }),
|
|
3062
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1810
3063
|
PaginationNext,
|
|
1811
3064
|
{
|
|
1812
3065
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1813
3066
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1)
|
|
1814
3067
|
}
|
|
1815
3068
|
) }),
|
|
1816
|
-
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3069
|
+
/* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1817
3070
|
PaginationLink,
|
|
1818
3071
|
{
|
|
1819
3072
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1820
3073
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1821
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4" })
|
|
3074
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ndk:size-4" })
|
|
1822
3075
|
}
|
|
1823
3076
|
) })
|
|
1824
3077
|
] }) })
|