next-data-kit 9.0.2 → 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 +121 -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 +4 -0
- package/dist/client/components/data-kit-table.d.ts.map +1 -1
- package/dist/client/components/data-kit-table.js +18 -9
- 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 +1380 -121
- 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 +1380 -121
- 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.js
CHANGED
|
@@ -11,6 +11,1219 @@ import { cva } from 'class-variance-authority';
|
|
|
11
11
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
12
12
|
import 'react-intersection-observer';
|
|
13
13
|
|
|
14
|
+
// #style-inject:#style-inject
|
|
15
|
+
function styleInject(css, { insertAt } = {}) {
|
|
16
|
+
if (typeof document === "undefined") return;
|
|
17
|
+
const head = document.head || document.getElementsByTagName("head")[0];
|
|
18
|
+
const style = document.createElement("style");
|
|
19
|
+
style.type = "text/css";
|
|
20
|
+
if (insertAt === "top") {
|
|
21
|
+
if (head.firstChild) {
|
|
22
|
+
head.insertBefore(style, head.firstChild);
|
|
23
|
+
} else {
|
|
24
|
+
head.appendChild(style);
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
head.appendChild(style);
|
|
28
|
+
}
|
|
29
|
+
if (style.styleSheet) {
|
|
30
|
+
style.styleSheet.cssText = css;
|
|
31
|
+
} else {
|
|
32
|
+
style.appendChild(document.createTextNode(css));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// dist/styles.css
|
|
37
|
+
styleInject(`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
38
|
+
@layer properties {
|
|
39
|
+
@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) {
|
|
40
|
+
*,
|
|
41
|
+
:before,
|
|
42
|
+
:after,
|
|
43
|
+
::backdrop {
|
|
44
|
+
--tw-space-y-reverse:0;
|
|
45
|
+
--tw-border-style:solid;
|
|
46
|
+
--tw-font-weight:initial;
|
|
47
|
+
--tw-tracking:initial;
|
|
48
|
+
--tw-shadow:0 0 #0000;
|
|
49
|
+
--tw-shadow-color:initial;
|
|
50
|
+
--tw-shadow-alpha:100%;
|
|
51
|
+
--tw-inset-shadow:0 0 #0000;
|
|
52
|
+
--tw-inset-shadow-color:initial;
|
|
53
|
+
--tw-inset-shadow-alpha:100%;
|
|
54
|
+
--tw-ring-color:initial;
|
|
55
|
+
--tw-ring-shadow:0 0 #0000;
|
|
56
|
+
--tw-inset-ring-color:initial;
|
|
57
|
+
--tw-inset-ring-shadow:0 0 #0000;
|
|
58
|
+
--tw-ring-inset:initial;
|
|
59
|
+
--tw-ring-offset-width:0px;
|
|
60
|
+
--tw-ring-offset-color:#fff;
|
|
61
|
+
--tw-ring-offset-shadow:0 0 #0000;
|
|
62
|
+
--tw-translate-x:0;
|
|
63
|
+
--tw-translate-y:0;
|
|
64
|
+
--tw-translate-z:0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@layer theme {
|
|
69
|
+
:root,
|
|
70
|
+
:host {
|
|
71
|
+
--ndk-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
|
|
72
|
+
--ndk-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
|
|
73
|
+
--ndk-color-red-400:oklch(70.4% .191 22.216);
|
|
74
|
+
--ndk-color-red-500:oklch(63.7% .237 25.331);
|
|
75
|
+
--ndk-color-red-600:oklch(57.7% .245 27.325);
|
|
76
|
+
--ndk-color-red-700:oklch(50.5% .213 27.518);
|
|
77
|
+
--ndk-color-gray-50:oklch(98.5% .002 247.839);
|
|
78
|
+
--ndk-color-gray-100:oklch(96.7% .003 264.542);
|
|
79
|
+
--ndk-color-gray-200:oklch(92.8% .006 264.531);
|
|
80
|
+
--ndk-color-gray-400:oklch(70.7% .022 261.325);
|
|
81
|
+
--ndk-color-gray-500:oklch(55.1% .027 264.364);
|
|
82
|
+
--ndk-color-gray-800:oklch(27.8% .033 256.848);
|
|
83
|
+
--ndk-color-gray-900:oklch(21% .034 264.665);
|
|
84
|
+
--ndk-color-gray-950:oklch(13% .028 261.692);
|
|
85
|
+
--ndk-color-black:#000;
|
|
86
|
+
--ndk-color-white:#fff;
|
|
87
|
+
--ndk-spacing:.25rem;
|
|
88
|
+
--ndk-text-xs:.75rem;
|
|
89
|
+
--ndk-text-xs--line-height:calc(1/.75);
|
|
90
|
+
--ndk-text-sm:.875rem;
|
|
91
|
+
--ndk-text-sm--line-height:calc(1.25/.875);
|
|
92
|
+
--ndk-font-weight-medium:500;
|
|
93
|
+
--ndk-tracking-widest:.1em;
|
|
94
|
+
--ndk-radius-sm:.25rem;
|
|
95
|
+
--ndk-radius-md:.375rem;
|
|
96
|
+
--ndk-radius-lg:.5rem;
|
|
97
|
+
--ndk-animate-spin:spin 1s linear infinite;
|
|
98
|
+
--ndk-default-transition-duration:.15s;
|
|
99
|
+
--ndk-default-transition-timing-function:cubic-bezier(.4,0,.2,1);
|
|
100
|
+
--ndk-default-font-family:var(--ndk-font-sans);
|
|
101
|
+
--ndk-default-mono-font-family:var(--ndk-font-mono);
|
|
102
|
+
--ndk-animate-in:animate-in;
|
|
103
|
+
--ndk-animate-out:animate-out;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@layer base {
|
|
107
|
+
*,
|
|
108
|
+
:after,
|
|
109
|
+
:before,
|
|
110
|
+
::backdrop {
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
border: 0 solid;
|
|
113
|
+
margin: 0;
|
|
114
|
+
padding: 0;
|
|
115
|
+
}
|
|
116
|
+
::file-selector-button {
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
border: 0 solid;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
}
|
|
122
|
+
html,
|
|
123
|
+
:host {
|
|
124
|
+
-webkit-text-size-adjust: 100%;
|
|
125
|
+
tab-size: 4;
|
|
126
|
+
line-height: 1.5;
|
|
127
|
+
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");
|
|
128
|
+
font-feature-settings: var(--ndk-default-font-feature-settings,normal);
|
|
129
|
+
font-variation-settings: var(--ndk-default-font-variation-settings,normal);
|
|
130
|
+
-webkit-tap-highlight-color: transparent;
|
|
131
|
+
}
|
|
132
|
+
hr {
|
|
133
|
+
height: 0;
|
|
134
|
+
color: inherit;
|
|
135
|
+
border-top-width: 1px;
|
|
136
|
+
}
|
|
137
|
+
abbr:where([title]) {
|
|
138
|
+
-webkit-text-decoration: underline dotted;
|
|
139
|
+
text-decoration: underline dotted;
|
|
140
|
+
}
|
|
141
|
+
h1,
|
|
142
|
+
h2,
|
|
143
|
+
h3,
|
|
144
|
+
h4,
|
|
145
|
+
h5,
|
|
146
|
+
h6 {
|
|
147
|
+
font-size: inherit;
|
|
148
|
+
font-weight: inherit;
|
|
149
|
+
}
|
|
150
|
+
a {
|
|
151
|
+
color: inherit;
|
|
152
|
+
-webkit-text-decoration: inherit;
|
|
153
|
+
-webkit-text-decoration: inherit;
|
|
154
|
+
-webkit-text-decoration: inherit;
|
|
155
|
+
text-decoration: inherit;
|
|
156
|
+
}
|
|
157
|
+
b,
|
|
158
|
+
strong {
|
|
159
|
+
font-weight: bolder;
|
|
160
|
+
}
|
|
161
|
+
code,
|
|
162
|
+
kbd,
|
|
163
|
+
samp,
|
|
164
|
+
pre {
|
|
165
|
+
font-family: var(--ndk-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);
|
|
166
|
+
font-feature-settings: var(--ndk-default-mono-font-feature-settings,normal);
|
|
167
|
+
font-variation-settings: var(--ndk-default-mono-font-variation-settings,normal);
|
|
168
|
+
font-size: 1em;
|
|
169
|
+
}
|
|
170
|
+
small {
|
|
171
|
+
font-size: 80%;
|
|
172
|
+
}
|
|
173
|
+
sub,
|
|
174
|
+
sup {
|
|
175
|
+
vertical-align: baseline;
|
|
176
|
+
font-size: 75%;
|
|
177
|
+
line-height: 0;
|
|
178
|
+
position: relative;
|
|
179
|
+
}
|
|
180
|
+
sub {
|
|
181
|
+
bottom: -.25em;
|
|
182
|
+
}
|
|
183
|
+
sup {
|
|
184
|
+
top: -.5em;
|
|
185
|
+
}
|
|
186
|
+
table {
|
|
187
|
+
text-indent: 0;
|
|
188
|
+
border-color: inherit;
|
|
189
|
+
border-collapse: collapse;
|
|
190
|
+
}
|
|
191
|
+
:-moz-focusring {
|
|
192
|
+
outline: auto;
|
|
193
|
+
}
|
|
194
|
+
progress {
|
|
195
|
+
vertical-align: baseline;
|
|
196
|
+
}
|
|
197
|
+
summary {
|
|
198
|
+
display: list-item;
|
|
199
|
+
}
|
|
200
|
+
ol,
|
|
201
|
+
ul,
|
|
202
|
+
menu {
|
|
203
|
+
list-style: none;
|
|
204
|
+
}
|
|
205
|
+
img,
|
|
206
|
+
svg,
|
|
207
|
+
video,
|
|
208
|
+
canvas,
|
|
209
|
+
audio,
|
|
210
|
+
iframe,
|
|
211
|
+
embed,
|
|
212
|
+
object {
|
|
213
|
+
vertical-align: middle;
|
|
214
|
+
display: block;
|
|
215
|
+
}
|
|
216
|
+
img,
|
|
217
|
+
video {
|
|
218
|
+
max-width: 100%;
|
|
219
|
+
height: auto;
|
|
220
|
+
}
|
|
221
|
+
button,
|
|
222
|
+
input,
|
|
223
|
+
select,
|
|
224
|
+
optgroup,
|
|
225
|
+
textarea {
|
|
226
|
+
font: inherit;
|
|
227
|
+
font-feature-settings: inherit;
|
|
228
|
+
font-variation-settings: inherit;
|
|
229
|
+
letter-spacing: inherit;
|
|
230
|
+
color: inherit;
|
|
231
|
+
opacity: 1;
|
|
232
|
+
background-color: #0000;
|
|
233
|
+
border-radius: 0;
|
|
234
|
+
}
|
|
235
|
+
::file-selector-button {
|
|
236
|
+
font: inherit;
|
|
237
|
+
font-feature-settings: inherit;
|
|
238
|
+
font-variation-settings: inherit;
|
|
239
|
+
letter-spacing: inherit;
|
|
240
|
+
color: inherit;
|
|
241
|
+
opacity: 1;
|
|
242
|
+
background-color: #0000;
|
|
243
|
+
border-radius: 0;
|
|
244
|
+
}
|
|
245
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
246
|
+
font-weight: bolder;
|
|
247
|
+
}
|
|
248
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
249
|
+
padding-inline-start: 20px;
|
|
250
|
+
}
|
|
251
|
+
::file-selector-button {
|
|
252
|
+
margin-inline-end: 4px;
|
|
253
|
+
}
|
|
254
|
+
::placeholder {
|
|
255
|
+
opacity: 1;
|
|
256
|
+
}
|
|
257
|
+
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
|
|
258
|
+
::placeholder {
|
|
259
|
+
color: currentColor;
|
|
260
|
+
}
|
|
261
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
262
|
+
::placeholder {
|
|
263
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
textarea {
|
|
268
|
+
resize: vertical;
|
|
269
|
+
}
|
|
270
|
+
::-webkit-search-decoration {
|
|
271
|
+
-webkit-appearance: none;
|
|
272
|
+
}
|
|
273
|
+
::-webkit-date-and-time-value {
|
|
274
|
+
min-height: 1lh;
|
|
275
|
+
text-align: inherit;
|
|
276
|
+
}
|
|
277
|
+
::-webkit-datetime-edit {
|
|
278
|
+
display: inline-flex;
|
|
279
|
+
}
|
|
280
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
281
|
+
padding: 0;
|
|
282
|
+
}
|
|
283
|
+
::-webkit-datetime-edit {
|
|
284
|
+
padding-block: 0;
|
|
285
|
+
}
|
|
286
|
+
::-webkit-datetime-edit-year-field {
|
|
287
|
+
padding-block: 0;
|
|
288
|
+
}
|
|
289
|
+
::-webkit-datetime-edit-month-field {
|
|
290
|
+
padding-block: 0;
|
|
291
|
+
}
|
|
292
|
+
::-webkit-datetime-edit-day-field {
|
|
293
|
+
padding-block: 0;
|
|
294
|
+
}
|
|
295
|
+
::-webkit-datetime-edit-hour-field {
|
|
296
|
+
padding-block: 0;
|
|
297
|
+
}
|
|
298
|
+
::-webkit-datetime-edit-minute-field {
|
|
299
|
+
padding-block: 0;
|
|
300
|
+
}
|
|
301
|
+
::-webkit-datetime-edit-second-field {
|
|
302
|
+
padding-block: 0;
|
|
303
|
+
}
|
|
304
|
+
::-webkit-datetime-edit-millisecond-field {
|
|
305
|
+
padding-block: 0;
|
|
306
|
+
}
|
|
307
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
308
|
+
padding-block: 0;
|
|
309
|
+
}
|
|
310
|
+
::-webkit-calendar-picker-indicator {
|
|
311
|
+
line-height: 1;
|
|
312
|
+
}
|
|
313
|
+
:-moz-ui-invalid {
|
|
314
|
+
box-shadow: none;
|
|
315
|
+
}
|
|
316
|
+
button,
|
|
317
|
+
input:where([type=button], [type=reset], [type=submit]) {
|
|
318
|
+
appearance: button;
|
|
319
|
+
}
|
|
320
|
+
::file-selector-button {
|
|
321
|
+
appearance: button;
|
|
322
|
+
}
|
|
323
|
+
::-webkit-inner-spin-button {
|
|
324
|
+
height: auto;
|
|
325
|
+
}
|
|
326
|
+
::-webkit-outer-spin-button {
|
|
327
|
+
height: auto;
|
|
328
|
+
}
|
|
329
|
+
[hidden]:where(:not([hidden=until-found])) {
|
|
330
|
+
display: none !important;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
@layer components;
|
|
334
|
+
@layer utilities {
|
|
335
|
+
.ndk\\:pointer-events-none {
|
|
336
|
+
pointer-events: none;
|
|
337
|
+
}
|
|
338
|
+
.ndk\\:sr-only {
|
|
339
|
+
clip-path: inset(50%);
|
|
340
|
+
white-space: nowrap;
|
|
341
|
+
border-width: 0;
|
|
342
|
+
width: 1px;
|
|
343
|
+
height: 1px;
|
|
344
|
+
margin: -1px;
|
|
345
|
+
padding: 0;
|
|
346
|
+
position: absolute;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
}
|
|
349
|
+
.ndk\\:absolute {
|
|
350
|
+
position: absolute;
|
|
351
|
+
}
|
|
352
|
+
.ndk\\:relative {
|
|
353
|
+
position: relative;
|
|
354
|
+
}
|
|
355
|
+
.ndk\\:right-2 {
|
|
356
|
+
right: calc(var(--ndk-spacing)*2);
|
|
357
|
+
}
|
|
358
|
+
.ndk\\:left-2 {
|
|
359
|
+
left: calc(var(--ndk-spacing)*2);
|
|
360
|
+
}
|
|
361
|
+
.ndk\\:z-50 {
|
|
362
|
+
z-index: 50;
|
|
363
|
+
}
|
|
364
|
+
.ndk\\:-mx-1 {
|
|
365
|
+
margin-inline: calc(var(--ndk-spacing)*-1);
|
|
366
|
+
}
|
|
367
|
+
.ndk\\:mx-0 {
|
|
368
|
+
margin-inline: calc(var(--ndk-spacing)*0);
|
|
369
|
+
}
|
|
370
|
+
.ndk\\:mx-auto {
|
|
371
|
+
margin-inline: auto;
|
|
372
|
+
}
|
|
373
|
+
.ndk\\:my-1 {
|
|
374
|
+
margin-block: calc(var(--ndk-spacing)*1);
|
|
375
|
+
}
|
|
376
|
+
.ndk\\:mt-4 {
|
|
377
|
+
margin-top: calc(var(--ndk-spacing)*4);
|
|
378
|
+
}
|
|
379
|
+
.ndk\\:mr-1\\.5 {
|
|
380
|
+
margin-right: calc(var(--ndk-spacing)*1.5);
|
|
381
|
+
}
|
|
382
|
+
.ndk\\:mr-2 {
|
|
383
|
+
margin-right: calc(var(--ndk-spacing)*2);
|
|
384
|
+
}
|
|
385
|
+
.ndk\\:-ml-4 {
|
|
386
|
+
margin-left: calc(var(--ndk-spacing)*-4);
|
|
387
|
+
}
|
|
388
|
+
.ndk\\:ml-1 {
|
|
389
|
+
margin-left: calc(var(--ndk-spacing)*1);
|
|
390
|
+
}
|
|
391
|
+
.ndk\\:ml-auto {
|
|
392
|
+
margin-left: auto;
|
|
393
|
+
}
|
|
394
|
+
.ndk\\:flex {
|
|
395
|
+
display: flex;
|
|
396
|
+
}
|
|
397
|
+
.ndk\\:grid {
|
|
398
|
+
display: grid;
|
|
399
|
+
}
|
|
400
|
+
.ndk\\:hidden {
|
|
401
|
+
display: none;
|
|
402
|
+
}
|
|
403
|
+
.ndk\\:inline-flex {
|
|
404
|
+
display: inline-flex;
|
|
405
|
+
}
|
|
406
|
+
.ndk\\:size-2 {
|
|
407
|
+
width: calc(var(--ndk-spacing)*2);
|
|
408
|
+
height: calc(var(--ndk-spacing)*2);
|
|
409
|
+
}
|
|
410
|
+
.ndk\\:size-3\\.5 {
|
|
411
|
+
width: calc(var(--ndk-spacing)*3.5);
|
|
412
|
+
height: calc(var(--ndk-spacing)*3.5);
|
|
413
|
+
}
|
|
414
|
+
.ndk\\:size-4 {
|
|
415
|
+
width: calc(var(--ndk-spacing)*4);
|
|
416
|
+
height: calc(var(--ndk-spacing)*4);
|
|
417
|
+
}
|
|
418
|
+
.ndk\\:size-5 {
|
|
419
|
+
width: calc(var(--ndk-spacing)*5);
|
|
420
|
+
height: calc(var(--ndk-spacing)*5);
|
|
421
|
+
}
|
|
422
|
+
.ndk\\:size-6 {
|
|
423
|
+
width: calc(var(--ndk-spacing)*6);
|
|
424
|
+
height: calc(var(--ndk-spacing)*6);
|
|
425
|
+
}
|
|
426
|
+
.ndk\\:size-8 {
|
|
427
|
+
width: calc(var(--ndk-spacing)*8);
|
|
428
|
+
height: calc(var(--ndk-spacing)*8);
|
|
429
|
+
}
|
|
430
|
+
.ndk\\:size-9 {
|
|
431
|
+
width: calc(var(--ndk-spacing)*9);
|
|
432
|
+
height: calc(var(--ndk-spacing)*9);
|
|
433
|
+
}
|
|
434
|
+
.ndk\\:size-10 {
|
|
435
|
+
width: calc(var(--ndk-spacing)*10);
|
|
436
|
+
height: calc(var(--ndk-spacing)*10);
|
|
437
|
+
}
|
|
438
|
+
.ndk\\:h-8 {
|
|
439
|
+
height: calc(var(--ndk-spacing)*8);
|
|
440
|
+
}
|
|
441
|
+
.ndk\\:h-9 {
|
|
442
|
+
height: calc(var(--ndk-spacing)*9);
|
|
443
|
+
}
|
|
444
|
+
.ndk\\:h-10 {
|
|
445
|
+
height: calc(var(--ndk-spacing)*10);
|
|
446
|
+
}
|
|
447
|
+
.ndk\\:h-24 {
|
|
448
|
+
height: calc(var(--ndk-spacing)*24);
|
|
449
|
+
}
|
|
450
|
+
.ndk\\:h-48 {
|
|
451
|
+
height: calc(var(--ndk-spacing)*48);
|
|
452
|
+
}
|
|
453
|
+
.ndk\\:h-\\[var\\(--radix-select-trigger-height\\)\\] {
|
|
454
|
+
height: var(--radix-select-trigger-height);
|
|
455
|
+
}
|
|
456
|
+
.ndk\\:h-auto {
|
|
457
|
+
height: auto;
|
|
458
|
+
}
|
|
459
|
+
.ndk\\:h-full {
|
|
460
|
+
height: 100%;
|
|
461
|
+
}
|
|
462
|
+
.ndk\\:h-px {
|
|
463
|
+
height: 1px;
|
|
464
|
+
}
|
|
465
|
+
.ndk\\:max-h-\\(--radix-dropdown-menu-content-available-height\\) {
|
|
466
|
+
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
467
|
+
}
|
|
468
|
+
.ndk\\:max-h-\\(--radix-select-content-available-height\\) {
|
|
469
|
+
max-height: var(--radix-select-content-available-height);
|
|
470
|
+
}
|
|
471
|
+
.ndk\\:min-h-0 {
|
|
472
|
+
min-height: calc(var(--ndk-spacing)*0);
|
|
473
|
+
}
|
|
474
|
+
.ndk\\:min-h-\\[200px\\] {
|
|
475
|
+
min-height: 200px;
|
|
476
|
+
}
|
|
477
|
+
.ndk\\:w-12 {
|
|
478
|
+
width: calc(var(--ndk-spacing)*12);
|
|
479
|
+
}
|
|
480
|
+
.ndk\\:w-16 {
|
|
481
|
+
width: calc(var(--ndk-spacing)*16);
|
|
482
|
+
}
|
|
483
|
+
.ndk\\:w-72 {
|
|
484
|
+
width: calc(var(--ndk-spacing)*72);
|
|
485
|
+
}
|
|
486
|
+
.ndk\\:w-80 {
|
|
487
|
+
width: calc(var(--ndk-spacing)*80);
|
|
488
|
+
}
|
|
489
|
+
.ndk\\:w-auto {
|
|
490
|
+
width: auto;
|
|
491
|
+
}
|
|
492
|
+
.ndk\\:w-fit {
|
|
493
|
+
width: fit-content;
|
|
494
|
+
}
|
|
495
|
+
.ndk\\:w-full {
|
|
496
|
+
width: 100%;
|
|
497
|
+
}
|
|
498
|
+
.ndk\\:min-w-\\[8rem\\] {
|
|
499
|
+
min-width: 8rem;
|
|
500
|
+
}
|
|
501
|
+
.ndk\\:min-w-\\[var\\(--radix-select-trigger-width\\)\\] {
|
|
502
|
+
min-width: var(--radix-select-trigger-width);
|
|
503
|
+
}
|
|
504
|
+
.ndk\\:flex-1 {
|
|
505
|
+
flex: 1;
|
|
506
|
+
}
|
|
507
|
+
.ndk\\:shrink-0 {
|
|
508
|
+
flex-shrink: 0;
|
|
509
|
+
}
|
|
510
|
+
.ndk\\:caption-bottom {
|
|
511
|
+
caption-side: bottom;
|
|
512
|
+
}
|
|
513
|
+
.ndk\\:origin-\\(--radix-dropdown-menu-content-transform-origin\\) {
|
|
514
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin);
|
|
515
|
+
}
|
|
516
|
+
.ndk\\:origin-\\(--radix-popover-content-transform-origin\\) {
|
|
517
|
+
transform-origin: var(--radix-popover-content-transform-origin);
|
|
518
|
+
}
|
|
519
|
+
.ndk\\:origin-\\(--radix-select-content-transform-origin\\) {
|
|
520
|
+
transform-origin: var(--radix-select-content-transform-origin);
|
|
521
|
+
}
|
|
522
|
+
.ndk\\:animate-spin {
|
|
523
|
+
animation: var(--ndk-animate-spin);
|
|
524
|
+
}
|
|
525
|
+
.ndk\\:cursor-default {
|
|
526
|
+
cursor: default;
|
|
527
|
+
}
|
|
528
|
+
.ndk\\:scroll-my-1 {
|
|
529
|
+
scroll-margin-block: calc(var(--ndk-spacing)*1);
|
|
530
|
+
}
|
|
531
|
+
.ndk\\:flex-col {
|
|
532
|
+
flex-direction: column;
|
|
533
|
+
}
|
|
534
|
+
.ndk\\:flex-row {
|
|
535
|
+
flex-direction: row;
|
|
536
|
+
}
|
|
537
|
+
.ndk\\:place-content-center {
|
|
538
|
+
place-content: center;
|
|
539
|
+
}
|
|
540
|
+
.ndk\\:items-center {
|
|
541
|
+
align-items: center;
|
|
542
|
+
}
|
|
543
|
+
.ndk\\:justify-between {
|
|
544
|
+
justify-content: space-between;
|
|
545
|
+
}
|
|
546
|
+
.ndk\\:justify-center {
|
|
547
|
+
justify-content: center;
|
|
548
|
+
}
|
|
549
|
+
.ndk\\:justify-end {
|
|
550
|
+
justify-content: flex-end;
|
|
551
|
+
}
|
|
552
|
+
.ndk\\:gap-1 {
|
|
553
|
+
gap: calc(var(--ndk-spacing)*1);
|
|
554
|
+
}
|
|
555
|
+
.ndk\\:gap-1\\.5 {
|
|
556
|
+
gap: calc(var(--ndk-spacing)*1.5);
|
|
557
|
+
}
|
|
558
|
+
.ndk\\:gap-2 {
|
|
559
|
+
gap: calc(var(--ndk-spacing)*2);
|
|
560
|
+
}
|
|
561
|
+
.ndk\\:gap-3 {
|
|
562
|
+
gap: calc(var(--ndk-spacing)*3);
|
|
563
|
+
}
|
|
564
|
+
.ndk\\:gap-4 {
|
|
565
|
+
gap: calc(var(--ndk-spacing)*4);
|
|
566
|
+
}
|
|
567
|
+
:where(.ndk\\:space-y-3 > :not(:last-child)) {
|
|
568
|
+
--tw-space-y-reverse:0;
|
|
569
|
+
margin-block-start: calc(calc(var(--ndk-spacing)*3)*var(--tw-space-y-reverse));
|
|
570
|
+
margin-block-end: calc(calc(var(--ndk-spacing)*3)*calc(1 - var(--tw-space-y-reverse)));
|
|
571
|
+
}
|
|
572
|
+
.ndk\\:overflow-hidden {
|
|
573
|
+
overflow: hidden;
|
|
574
|
+
}
|
|
575
|
+
.ndk\\:overflow-x-auto {
|
|
576
|
+
overflow-x: auto;
|
|
577
|
+
}
|
|
578
|
+
.ndk\\:overflow-x-hidden {
|
|
579
|
+
overflow-x: hidden;
|
|
580
|
+
}
|
|
581
|
+
.ndk\\:overflow-y-auto {
|
|
582
|
+
overflow-y: auto;
|
|
583
|
+
}
|
|
584
|
+
.ndk\\:rounded-\\[4px\\] {
|
|
585
|
+
border-radius: 4px;
|
|
586
|
+
}
|
|
587
|
+
.ndk\\:rounded-lg {
|
|
588
|
+
border-radius: var(--ndk-radius-lg);
|
|
589
|
+
}
|
|
590
|
+
.ndk\\:rounded-md {
|
|
591
|
+
border-radius: var(--ndk-radius-md);
|
|
592
|
+
}
|
|
593
|
+
.ndk\\:rounded-sm {
|
|
594
|
+
border-radius: var(--ndk-radius-sm);
|
|
595
|
+
}
|
|
596
|
+
.ndk\\:border {
|
|
597
|
+
border-style: var(--tw-border-style);
|
|
598
|
+
border-width: 1px;
|
|
599
|
+
}
|
|
600
|
+
.ndk\\:border-t {
|
|
601
|
+
border-top-style: var(--tw-border-style);
|
|
602
|
+
border-top-width: 1px;
|
|
603
|
+
}
|
|
604
|
+
.ndk\\:border-b {
|
|
605
|
+
border-bottom-style: var(--tw-border-style);
|
|
606
|
+
border-bottom-width: 1px;
|
|
607
|
+
}
|
|
608
|
+
.ndk\\:border-gray-100 {
|
|
609
|
+
border-color: var(--ndk-color-gray-100);
|
|
610
|
+
}
|
|
611
|
+
.ndk\\:border-gray-200 {
|
|
612
|
+
border-color: var(--ndk-color-gray-200);
|
|
613
|
+
}
|
|
614
|
+
.ndk\\:bg-gray-50\\/70 {
|
|
615
|
+
background-color: var(--ndk-color-gray-50);
|
|
616
|
+
}
|
|
617
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
618
|
+
.ndk\\:bg-gray-50\\/70 {
|
|
619
|
+
background-color: color-mix(in oklab, var(--ndk-color-gray-50)70%, transparent);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
.ndk\\:bg-gray-100 {
|
|
623
|
+
background-color: var(--ndk-color-gray-100);
|
|
624
|
+
}
|
|
625
|
+
.ndk\\:bg-gray-900 {
|
|
626
|
+
background-color: var(--ndk-color-gray-900);
|
|
627
|
+
}
|
|
628
|
+
.ndk\\:bg-red-600 {
|
|
629
|
+
background-color: var(--ndk-color-red-600);
|
|
630
|
+
}
|
|
631
|
+
.ndk\\:bg-transparent {
|
|
632
|
+
background-color: #0000;
|
|
633
|
+
}
|
|
634
|
+
.ndk\\:bg-white {
|
|
635
|
+
background-color: var(--ndk-color-white);
|
|
636
|
+
}
|
|
637
|
+
.ndk\\:fill-current {
|
|
638
|
+
fill: currentColor;
|
|
639
|
+
}
|
|
640
|
+
.ndk\\:p-1 {
|
|
641
|
+
padding: calc(var(--ndk-spacing)*1);
|
|
642
|
+
}
|
|
643
|
+
.ndk\\:p-2 {
|
|
644
|
+
padding: calc(var(--ndk-spacing)*2);
|
|
645
|
+
}
|
|
646
|
+
.ndk\\:p-4 {
|
|
647
|
+
padding: calc(var(--ndk-spacing)*4);
|
|
648
|
+
}
|
|
649
|
+
.ndk\\:px-2 {
|
|
650
|
+
padding-inline: calc(var(--ndk-spacing)*2);
|
|
651
|
+
}
|
|
652
|
+
.ndk\\:px-2\\.5 {
|
|
653
|
+
padding-inline: calc(var(--ndk-spacing)*2.5);
|
|
654
|
+
}
|
|
655
|
+
.ndk\\:px-3 {
|
|
656
|
+
padding-inline: calc(var(--ndk-spacing)*3);
|
|
657
|
+
}
|
|
658
|
+
.ndk\\:px-4 {
|
|
659
|
+
padding-inline: calc(var(--ndk-spacing)*4);
|
|
660
|
+
}
|
|
661
|
+
.ndk\\:px-6 {
|
|
662
|
+
padding-inline: calc(var(--ndk-spacing)*6);
|
|
663
|
+
}
|
|
664
|
+
.ndk\\:py-0 {
|
|
665
|
+
padding-block: calc(var(--ndk-spacing)*0);
|
|
666
|
+
}
|
|
667
|
+
.ndk\\:py-1 {
|
|
668
|
+
padding-block: calc(var(--ndk-spacing)*1);
|
|
669
|
+
}
|
|
670
|
+
.ndk\\:py-1\\.5 {
|
|
671
|
+
padding-block: calc(var(--ndk-spacing)*1.5);
|
|
672
|
+
}
|
|
673
|
+
.ndk\\:py-2 {
|
|
674
|
+
padding-block: calc(var(--ndk-spacing)*2);
|
|
675
|
+
}
|
|
676
|
+
.ndk\\:py-4 {
|
|
677
|
+
padding-block: calc(var(--ndk-spacing)*4);
|
|
678
|
+
}
|
|
679
|
+
.ndk\\:pt-3 {
|
|
680
|
+
padding-top: calc(var(--ndk-spacing)*3);
|
|
681
|
+
}
|
|
682
|
+
.ndk\\:pt-4 {
|
|
683
|
+
padding-top: calc(var(--ndk-spacing)*4);
|
|
684
|
+
}
|
|
685
|
+
.ndk\\:pr-2 {
|
|
686
|
+
padding-right: calc(var(--ndk-spacing)*2);
|
|
687
|
+
}
|
|
688
|
+
.ndk\\:pr-8 {
|
|
689
|
+
padding-right: calc(var(--ndk-spacing)*8);
|
|
690
|
+
}
|
|
691
|
+
.ndk\\:pb-3 {
|
|
692
|
+
padding-bottom: calc(var(--ndk-spacing)*3);
|
|
693
|
+
}
|
|
694
|
+
.ndk\\:pl-2 {
|
|
695
|
+
padding-left: calc(var(--ndk-spacing)*2);
|
|
696
|
+
}
|
|
697
|
+
.ndk\\:pl-8 {
|
|
698
|
+
padding-left: calc(var(--ndk-spacing)*8);
|
|
699
|
+
}
|
|
700
|
+
.ndk\\:text-center {
|
|
701
|
+
text-align: center;
|
|
702
|
+
}
|
|
703
|
+
.ndk\\:text-left {
|
|
704
|
+
text-align: left;
|
|
705
|
+
}
|
|
706
|
+
.ndk\\:align-middle {
|
|
707
|
+
vertical-align: middle;
|
|
708
|
+
}
|
|
709
|
+
.ndk\\:text-sm {
|
|
710
|
+
font-size: var(--ndk-text-sm);
|
|
711
|
+
line-height: var(--tw-leading,var(--ndk-text-sm--line-height));
|
|
712
|
+
}
|
|
713
|
+
.ndk\\:text-xs {
|
|
714
|
+
font-size: var(--ndk-text-xs);
|
|
715
|
+
line-height: var(--tw-leading,var(--ndk-text-xs--line-height));
|
|
716
|
+
}
|
|
717
|
+
.ndk\\:font-medium {
|
|
718
|
+
--tw-font-weight:var(--ndk-font-weight-medium);
|
|
719
|
+
font-weight: var(--ndk-font-weight-medium);
|
|
720
|
+
}
|
|
721
|
+
.ndk\\:tracking-widest {
|
|
722
|
+
--tw-tracking:var(--ndk-tracking-widest);
|
|
723
|
+
letter-spacing: var(--ndk-tracking-widest);
|
|
724
|
+
}
|
|
725
|
+
.ndk\\:whitespace-nowrap {
|
|
726
|
+
white-space: nowrap;
|
|
727
|
+
}
|
|
728
|
+
.ndk\\:text-current {
|
|
729
|
+
color: currentColor;
|
|
730
|
+
}
|
|
731
|
+
.ndk\\:text-gray-500 {
|
|
732
|
+
color: var(--ndk-color-gray-500);
|
|
733
|
+
}
|
|
734
|
+
.ndk\\:text-gray-900 {
|
|
735
|
+
color: var(--ndk-color-gray-900);
|
|
736
|
+
}
|
|
737
|
+
.ndk\\:text-red-500 {
|
|
738
|
+
color: var(--ndk-color-red-500);
|
|
739
|
+
}
|
|
740
|
+
.ndk\\:text-white {
|
|
741
|
+
color: var(--ndk-color-white);
|
|
742
|
+
}
|
|
743
|
+
.ndk\\:underline-offset-4 {
|
|
744
|
+
text-underline-offset: 4px;
|
|
745
|
+
}
|
|
746
|
+
.ndk\\:opacity-50 {
|
|
747
|
+
opacity: .5;
|
|
748
|
+
}
|
|
749
|
+
.ndk\\:shadow-lg {
|
|
750
|
+
--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);
|
|
751
|
+
box-shadow:
|
|
752
|
+
var(--tw-inset-shadow),
|
|
753
|
+
var(--tw-inset-ring-shadow),
|
|
754
|
+
var(--tw-ring-offset-shadow),
|
|
755
|
+
var(--tw-ring-shadow),
|
|
756
|
+
var(--tw-shadow);
|
|
757
|
+
}
|
|
758
|
+
.ndk\\:shadow-md {
|
|
759
|
+
--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);
|
|
760
|
+
box-shadow:
|
|
761
|
+
var(--tw-inset-shadow),
|
|
762
|
+
var(--tw-inset-ring-shadow),
|
|
763
|
+
var(--tw-ring-offset-shadow),
|
|
764
|
+
var(--tw-ring-shadow),
|
|
765
|
+
var(--tw-shadow);
|
|
766
|
+
}
|
|
767
|
+
.ndk\\:shadow-xs {
|
|
768
|
+
--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);
|
|
769
|
+
box-shadow:
|
|
770
|
+
var(--tw-inset-shadow),
|
|
771
|
+
var(--tw-inset-ring-shadow),
|
|
772
|
+
var(--tw-ring-offset-shadow),
|
|
773
|
+
var(--tw-ring-shadow),
|
|
774
|
+
var(--tw-shadow);
|
|
775
|
+
}
|
|
776
|
+
.ndk\\:outline-hidden {
|
|
777
|
+
--tw-outline-style:none;
|
|
778
|
+
outline-style: none;
|
|
779
|
+
}
|
|
780
|
+
@media (forced-colors: active) {
|
|
781
|
+
.ndk\\:outline-hidden {
|
|
782
|
+
outline-offset: 2px;
|
|
783
|
+
outline: 2px solid #0000;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
.ndk\\:transition-\\[color\\,box-shadow\\] {
|
|
787
|
+
transition-property: color, box-shadow;
|
|
788
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
789
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
790
|
+
}
|
|
791
|
+
.ndk\\:transition-all {
|
|
792
|
+
transition-property: all;
|
|
793
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
794
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
795
|
+
}
|
|
796
|
+
.ndk\\:transition-colors {
|
|
797
|
+
transition-property:
|
|
798
|
+
color,
|
|
799
|
+
background-color,
|
|
800
|
+
border-color,
|
|
801
|
+
outline-color,
|
|
802
|
+
text-decoration-color,
|
|
803
|
+
fill,
|
|
804
|
+
stroke,
|
|
805
|
+
--tw-gradient-from,
|
|
806
|
+
--tw-gradient-via,
|
|
807
|
+
--tw-gradient-to;
|
|
808
|
+
transition-timing-function: var(--tw-ease,var(--ndk-default-transition-timing-function));
|
|
809
|
+
transition-duration: var(--tw-duration,var(--ndk-default-transition-duration));
|
|
810
|
+
}
|
|
811
|
+
.ndk\\:transition-shadow {
|
|
812
|
+
transition-property: 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-none {
|
|
817
|
+
transition-property: none;
|
|
818
|
+
}
|
|
819
|
+
.ndk\\:outline-none {
|
|
820
|
+
--tw-outline-style:none;
|
|
821
|
+
outline-style: none;
|
|
822
|
+
}
|
|
823
|
+
.ndk\\:select-none {
|
|
824
|
+
-webkit-user-select: none;
|
|
825
|
+
user-select: none;
|
|
826
|
+
}
|
|
827
|
+
@media (hover: hover) {
|
|
828
|
+
.ndk\\:hover\\:bg-gray-50:hover {
|
|
829
|
+
background-color: var(--ndk-color-gray-50);
|
|
830
|
+
}
|
|
831
|
+
.ndk\\:hover\\:bg-gray-100:hover {
|
|
832
|
+
background-color: var(--ndk-color-gray-100);
|
|
833
|
+
}
|
|
834
|
+
.ndk\\:hover\\:bg-gray-200:hover {
|
|
835
|
+
background-color: var(--ndk-color-gray-200);
|
|
836
|
+
}
|
|
837
|
+
.ndk\\:hover\\:bg-gray-800:hover {
|
|
838
|
+
background-color: var(--ndk-color-gray-800);
|
|
839
|
+
}
|
|
840
|
+
.ndk\\:hover\\:bg-red-700:hover {
|
|
841
|
+
background-color: var(--ndk-color-red-700);
|
|
842
|
+
}
|
|
843
|
+
.ndk\\:hover\\:text-gray-900:hover {
|
|
844
|
+
color: var(--ndk-color-gray-900);
|
|
845
|
+
}
|
|
846
|
+
.ndk\\:hover\\:underline:hover {
|
|
847
|
+
text-decoration-line: underline;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
.ndk\\:focus\\:bg-gray-50:focus {
|
|
851
|
+
background-color: var(--ndk-color-gray-50);
|
|
852
|
+
}
|
|
853
|
+
.ndk\\:focus\\:text-gray-900:focus {
|
|
854
|
+
color: var(--ndk-color-gray-900);
|
|
855
|
+
}
|
|
856
|
+
.ndk\\:focus\\:ring-2:focus {
|
|
857
|
+
--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);
|
|
858
|
+
box-shadow:
|
|
859
|
+
var(--tw-inset-shadow),
|
|
860
|
+
var(--tw-inset-ring-shadow),
|
|
861
|
+
var(--tw-ring-offset-shadow),
|
|
862
|
+
var(--tw-ring-shadow),
|
|
863
|
+
var(--tw-shadow);
|
|
864
|
+
}
|
|
865
|
+
.ndk\\:focus-visible\\:border-gray-900:focus-visible {
|
|
866
|
+
border-color: var(--ndk-color-gray-900);
|
|
867
|
+
}
|
|
868
|
+
.ndk\\:focus-visible\\:ring-\\[3px\\]:focus-visible {
|
|
869
|
+
--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);
|
|
870
|
+
box-shadow:
|
|
871
|
+
var(--tw-inset-shadow),
|
|
872
|
+
var(--tw-inset-ring-shadow),
|
|
873
|
+
var(--tw-ring-offset-shadow),
|
|
874
|
+
var(--tw-ring-shadow),
|
|
875
|
+
var(--tw-shadow);
|
|
876
|
+
}
|
|
877
|
+
.ndk\\:focus-visible\\:ring-black\\/20:focus-visible {
|
|
878
|
+
--tw-ring-color:var(--ndk-color-black);
|
|
879
|
+
}
|
|
880
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
881
|
+
.ndk\\:focus-visible\\:ring-black\\/20:focus-visible {
|
|
882
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-black)20%,transparent);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
.ndk\\:disabled\\:pointer-events-none:disabled {
|
|
886
|
+
pointer-events: none;
|
|
887
|
+
}
|
|
888
|
+
.ndk\\:disabled\\:cursor-not-allowed:disabled {
|
|
889
|
+
cursor: not-allowed;
|
|
890
|
+
}
|
|
891
|
+
.ndk\\:disabled\\:opacity-50:disabled {
|
|
892
|
+
opacity: .5;
|
|
893
|
+
}
|
|
894
|
+
.ndk\\:has-\\[\\>svg\\]\\:px-2\\.5:has(> svg) {
|
|
895
|
+
padding-inline: calc(var(--ndk-spacing)*2.5);
|
|
896
|
+
}
|
|
897
|
+
.ndk\\:has-\\[\\>svg\\]\\:px-3:has(> svg) {
|
|
898
|
+
padding-inline: calc(var(--ndk-spacing)*3);
|
|
899
|
+
}
|
|
900
|
+
.ndk\\:has-\\[\\>svg\\]\\:px-4:has(> svg) {
|
|
901
|
+
padding-inline: calc(var(--ndk-spacing)*4);
|
|
902
|
+
}
|
|
903
|
+
.ndk\\:aria-invalid\\:border-red-500[aria-invalid=true] {
|
|
904
|
+
border-color: var(--ndk-color-red-500);
|
|
905
|
+
}
|
|
906
|
+
.ndk\\:aria-invalid\\:ring-red-500\\/20[aria-invalid=true] {
|
|
907
|
+
--tw-ring-color:var(--ndk-color-red-500);
|
|
908
|
+
}
|
|
909
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
910
|
+
.ndk\\:aria-invalid\\:ring-red-500\\/20[aria-invalid=true] {
|
|
911
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-red-500)20%,transparent);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
.ndk\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled] {
|
|
915
|
+
pointer-events: none;
|
|
916
|
+
}
|
|
917
|
+
.ndk\\:data-\\[disabled\\]\\:opacity-50[data-disabled] {
|
|
918
|
+
opacity: .5;
|
|
919
|
+
}
|
|
920
|
+
.ndk\\:data-\\[inset\\]\\:pl-8[data-inset] {
|
|
921
|
+
padding-left: calc(var(--ndk-spacing)*8);
|
|
922
|
+
}
|
|
923
|
+
.ndk\\:data-\\[placeholder\\]\\:text-gray-500[data-placeholder] {
|
|
924
|
+
color: var(--ndk-color-gray-500);
|
|
925
|
+
}
|
|
926
|
+
.ndk\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom] {
|
|
927
|
+
--tw-translate-y:calc(var(--ndk-spacing)*1);
|
|
928
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
929
|
+
}
|
|
930
|
+
.ndk\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left] {
|
|
931
|
+
--tw-translate-x:calc(var(--ndk-spacing)*-1);
|
|
932
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
933
|
+
}
|
|
934
|
+
.ndk\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right] {
|
|
935
|
+
--tw-translate-x:calc(var(--ndk-spacing)*1);
|
|
936
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
937
|
+
}
|
|
938
|
+
.ndk\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top] {
|
|
939
|
+
--tw-translate-y:calc(var(--ndk-spacing)*-1);
|
|
940
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
941
|
+
}
|
|
942
|
+
.ndk\\:data-\\[size\\=default\\]\\:h-9[data-size=default] {
|
|
943
|
+
height: calc(var(--ndk-spacing)*9);
|
|
944
|
+
}
|
|
945
|
+
.ndk\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm] {
|
|
946
|
+
height: calc(var(--ndk-spacing)*8);
|
|
947
|
+
}
|
|
948
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1 > *)[data-slot=select-value] {
|
|
949
|
+
-webkit-line-clamp: 1;
|
|
950
|
+
-webkit-box-orient: vertical;
|
|
951
|
+
display: -webkit-box;
|
|
952
|
+
overflow: hidden;
|
|
953
|
+
}
|
|
954
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex > *)[data-slot=select-value] {
|
|
955
|
+
display: flex;
|
|
956
|
+
}
|
|
957
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center > *)[data-slot=select-value] {
|
|
958
|
+
align-items: center;
|
|
959
|
+
}
|
|
960
|
+
:is(.ndk\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2 > *)[data-slot=select-value] {
|
|
961
|
+
gap: calc(var(--ndk-spacing)*2);
|
|
962
|
+
}
|
|
963
|
+
.ndk\\:data-\\[state\\=checked\\]\\:border-gray-900[data-state=checked] {
|
|
964
|
+
border-color: var(--ndk-color-gray-900);
|
|
965
|
+
}
|
|
966
|
+
.ndk\\:data-\\[state\\=checked\\]\\:bg-gray-900[data-state=checked] {
|
|
967
|
+
background-color: var(--ndk-color-gray-900);
|
|
968
|
+
}
|
|
969
|
+
.ndk\\:data-\\[state\\=checked\\]\\:text-white[data-state=checked] {
|
|
970
|
+
color: var(--ndk-color-white);
|
|
971
|
+
}
|
|
972
|
+
.ndk\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed] {
|
|
973
|
+
animation: var(--ndk-animate-out);
|
|
974
|
+
}
|
|
975
|
+
.ndk\\:data-\\[state\\=open\\]\\:animate-in[data-state=open] {
|
|
976
|
+
animation: var(--ndk-animate-in);
|
|
977
|
+
}
|
|
978
|
+
.ndk\\:data-\\[state\\=open\\]\\:bg-gray-50[data-state=open] {
|
|
979
|
+
background-color: var(--ndk-color-gray-50);
|
|
980
|
+
}
|
|
981
|
+
.ndk\\:data-\\[state\\=open\\]\\:text-gray-900[data-state=open] {
|
|
982
|
+
color: var(--ndk-color-gray-900);
|
|
983
|
+
}
|
|
984
|
+
.ndk\\:data-\\[state\\=selected\\]\\:bg-gray-50[data-state=selected] {
|
|
985
|
+
background-color: var(--ndk-color-gray-50);
|
|
986
|
+
}
|
|
987
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:text-red-600[data-variant=destructive] {
|
|
988
|
+
color: var(--ndk-color-red-600);
|
|
989
|
+
}
|
|
990
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/10[data-variant=destructive]:focus {
|
|
991
|
+
background-color: var(--ndk-color-red-500);
|
|
992
|
+
}
|
|
993
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
994
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/10[data-variant=destructive]:focus {
|
|
995
|
+
background-color: color-mix(in oklab, var(--ndk-color-red-500)10%, transparent);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
.ndk\\:data-\\[variant\\=destructive\\]\\:focus\\:text-red-700[data-variant=destructive]:focus {
|
|
999
|
+
color: var(--ndk-color-red-700);
|
|
1000
|
+
}
|
|
1001
|
+
@media (min-width: 40rem) {
|
|
1002
|
+
.ndk\\:sm\\:block {
|
|
1003
|
+
display: block;
|
|
1004
|
+
}
|
|
1005
|
+
.ndk\\:sm\\:hidden {
|
|
1006
|
+
display: none;
|
|
1007
|
+
}
|
|
1008
|
+
.ndk\\:sm\\:pr-2\\.5 {
|
|
1009
|
+
padding-right: calc(var(--ndk-spacing)*2.5);
|
|
1010
|
+
}
|
|
1011
|
+
.ndk\\:sm\\:pl-2\\.5 {
|
|
1012
|
+
padding-left: calc(var(--ndk-spacing)*2.5);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
@media (prefers-color-scheme: dark) {
|
|
1016
|
+
.ndk\\:dark\\:border-gray-800 {
|
|
1017
|
+
border-color: var(--ndk-color-gray-800);
|
|
1018
|
+
}
|
|
1019
|
+
.ndk\\:dark\\:bg-gray-100 {
|
|
1020
|
+
background-color: var(--ndk-color-gray-100);
|
|
1021
|
+
}
|
|
1022
|
+
.ndk\\:dark\\:bg-gray-900,
|
|
1023
|
+
.ndk\\:dark\\:bg-gray-900\\/40 {
|
|
1024
|
+
background-color: var(--ndk-color-gray-900);
|
|
1025
|
+
}
|
|
1026
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1027
|
+
.ndk\\:dark\\:bg-gray-900\\/40 {
|
|
1028
|
+
background-color: color-mix(in oklab, var(--ndk-color-gray-900)40%, transparent);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
.ndk\\:dark\\:bg-gray-950 {
|
|
1032
|
+
background-color: var(--ndk-color-gray-950);
|
|
1033
|
+
}
|
|
1034
|
+
.ndk\\:dark\\:bg-red-600 {
|
|
1035
|
+
background-color: var(--ndk-color-red-600);
|
|
1036
|
+
}
|
|
1037
|
+
.ndk\\:dark\\:text-gray-100 {
|
|
1038
|
+
color: var(--ndk-color-gray-100);
|
|
1039
|
+
}
|
|
1040
|
+
.ndk\\:dark\\:text-gray-400 {
|
|
1041
|
+
color: var(--ndk-color-gray-400);
|
|
1042
|
+
}
|
|
1043
|
+
.ndk\\:dark\\:text-gray-900 {
|
|
1044
|
+
color: var(--ndk-color-gray-900);
|
|
1045
|
+
}
|
|
1046
|
+
@media (hover: hover) {
|
|
1047
|
+
.ndk\\:dark\\:hover\\:bg-gray-200:hover {
|
|
1048
|
+
background-color: var(--ndk-color-gray-200);
|
|
1049
|
+
}
|
|
1050
|
+
.ndk\\:dark\\:hover\\:bg-gray-800:hover {
|
|
1051
|
+
background-color: var(--ndk-color-gray-800);
|
|
1052
|
+
}
|
|
1053
|
+
.ndk\\:dark\\:hover\\:bg-gray-900:hover {
|
|
1054
|
+
background-color: var(--ndk-color-gray-900);
|
|
1055
|
+
}
|
|
1056
|
+
.ndk\\:dark\\:hover\\:bg-red-500:hover {
|
|
1057
|
+
background-color: var(--ndk-color-red-500);
|
|
1058
|
+
}
|
|
1059
|
+
.ndk\\:dark\\:hover\\:text-gray-100:hover {
|
|
1060
|
+
color: var(--ndk-color-gray-100);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
.ndk\\:dark\\:focus\\:bg-gray-900:focus {
|
|
1064
|
+
background-color: var(--ndk-color-gray-900);
|
|
1065
|
+
}
|
|
1066
|
+
.ndk\\:dark\\:focus\\:text-gray-100:focus {
|
|
1067
|
+
color: var(--ndk-color-gray-100);
|
|
1068
|
+
}
|
|
1069
|
+
.ndk\\:dark\\:focus-visible\\:border-gray-200:focus-visible {
|
|
1070
|
+
border-color: var(--ndk-color-gray-200);
|
|
1071
|
+
}
|
|
1072
|
+
.ndk\\:dark\\:focus-visible\\:ring-white\\/20:focus-visible {
|
|
1073
|
+
--tw-ring-color:var(--ndk-color-white);
|
|
1074
|
+
}
|
|
1075
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1076
|
+
.ndk\\:dark\\:focus-visible\\:ring-white\\/20:focus-visible {
|
|
1077
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-white)20%,transparent);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
.ndk\\:dark\\:aria-invalid\\:ring-red-500\\/30[aria-invalid=true] {
|
|
1081
|
+
--tw-ring-color:var(--ndk-color-red-500);
|
|
1082
|
+
}
|
|
1083
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1084
|
+
.ndk\\:dark\\:aria-invalid\\:ring-red-500\\/30[aria-invalid=true] {
|
|
1085
|
+
--tw-ring-color:color-mix(in oklab,var(--ndk-color-red-500)30%,transparent);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
.ndk\\:dark\\:data-\\[placeholder\\]\\:text-gray-400[data-placeholder] {
|
|
1089
|
+
color: var(--ndk-color-gray-400);
|
|
1090
|
+
}
|
|
1091
|
+
.ndk\\:dark\\:data-\\[state\\=checked\\]\\:border-gray-100[data-state=checked] {
|
|
1092
|
+
border-color: var(--ndk-color-gray-100);
|
|
1093
|
+
}
|
|
1094
|
+
.ndk\\:dark\\:data-\\[state\\=checked\\]\\:bg-gray-100[data-state=checked] {
|
|
1095
|
+
background-color: var(--ndk-color-gray-100);
|
|
1096
|
+
}
|
|
1097
|
+
.ndk\\:dark\\:data-\\[state\\=checked\\]\\:text-gray-900[data-state=checked] {
|
|
1098
|
+
color: var(--ndk-color-gray-900);
|
|
1099
|
+
}
|
|
1100
|
+
.ndk\\:dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state=open] {
|
|
1101
|
+
background-color: var(--ndk-color-gray-900);
|
|
1102
|
+
}
|
|
1103
|
+
.ndk\\:dark\\:data-\\[state\\=open\\]\\:text-gray-100[data-state=open] {
|
|
1104
|
+
color: var(--ndk-color-gray-100);
|
|
1105
|
+
}
|
|
1106
|
+
.ndk\\:dark\\:data-\\[state\\=selected\\]\\:bg-gray-900[data-state=selected] {
|
|
1107
|
+
background-color: var(--ndk-color-gray-900);
|
|
1108
|
+
}
|
|
1109
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:text-red-500[data-variant=destructive] {
|
|
1110
|
+
color: var(--ndk-color-red-500);
|
|
1111
|
+
}
|
|
1112
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/15[data-variant=destructive]:focus {
|
|
1113
|
+
background-color: var(--ndk-color-red-500);
|
|
1114
|
+
}
|
|
1115
|
+
@supports (color:color-mix(in lab, red, red)) {
|
|
1116
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-red-500\\/15[data-variant=destructive]:focus {
|
|
1117
|
+
background-color: color-mix(in oklab, var(--ndk-color-red-500)15%, transparent);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:text-red-400[data-variant=destructive]:focus {
|
|
1121
|
+
color: var(--ndk-color-red-400);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
.ndk\\:\\[\\&_svg\\]\\:pointer-events-none svg {
|
|
1125
|
+
pointer-events: none;
|
|
1126
|
+
}
|
|
1127
|
+
.ndk\\:\\[\\&_svg\\]\\:shrink-0 svg {
|
|
1128
|
+
flex-shrink: 0;
|
|
1129
|
+
}
|
|
1130
|
+
.ndk\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]) {
|
|
1131
|
+
width: calc(var(--ndk-spacing)*4);
|
|
1132
|
+
height: calc(var(--ndk-spacing)*4);
|
|
1133
|
+
}
|
|
1134
|
+
.ndk\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-gray-500 svg:not([class*=text-]) {
|
|
1135
|
+
color: var(--ndk-color-gray-500);
|
|
1136
|
+
}
|
|
1137
|
+
@media (prefers-color-scheme: dark) {
|
|
1138
|
+
.ndk\\:dark\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-gray-400 svg:not([class*=text-]) {
|
|
1139
|
+
color: var(--ndk-color-gray-400);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
.ndk\\:\\[\\&_tr\\]\\:border-b tr {
|
|
1143
|
+
border-bottom-style: var(--tw-border-style);
|
|
1144
|
+
border-bottom-width: 1px;
|
|
1145
|
+
}
|
|
1146
|
+
.ndk\\:\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {
|
|
1147
|
+
border-style: var(--tw-border-style);
|
|
1148
|
+
border-width: 0;
|
|
1149
|
+
}
|
|
1150
|
+
.ndk\\:\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {
|
|
1151
|
+
padding-right: calc(var(--ndk-spacing)*0);
|
|
1152
|
+
}
|
|
1153
|
+
:is(.ndk\\:\\*\\:\\[span\\]\\:last\\:flex > *):is(span):last-child {
|
|
1154
|
+
display: flex;
|
|
1155
|
+
}
|
|
1156
|
+
:is(.ndk\\:\\*\\:\\[span\\]\\:last\\:items-center > *):is(span):last-child {
|
|
1157
|
+
align-items: center;
|
|
1158
|
+
}
|
|
1159
|
+
:is(.ndk\\:\\*\\:\\[span\\]\\:last\\:gap-2 > *):is(span):last-child {
|
|
1160
|
+
gap: calc(var(--ndk-spacing)*2);
|
|
1161
|
+
}
|
|
1162
|
+
:is(.ndk\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-red-600[data-variant=destructive] > *):is(svg) {
|
|
1163
|
+
color: var(--ndk-color-red-600) !important;
|
|
1164
|
+
}
|
|
1165
|
+
@media (prefers-color-scheme: dark) {
|
|
1166
|
+
:is(.ndk\\:dark\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-red-500[data-variant=destructive] > *):is(svg) {
|
|
1167
|
+
color: var(--ndk-color-red-500) !important;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
.ndk\\:\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\] > [role=checkbox] {
|
|
1171
|
+
--tw-translate-y:2px;
|
|
1172
|
+
translate: var(--tw-translate-x)var(--tw-translate-y);
|
|
1173
|
+
}
|
|
1174
|
+
.ndk\\:\\[\\&\\>tr\\]\\:last\\:border-b-0 > tr:last-child {
|
|
1175
|
+
border-bottom-style: var(--tw-border-style);
|
|
1176
|
+
border-bottom-width: 0;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
@keyframes animate-in {
|
|
1180
|
+
0% {
|
|
1181
|
+
opacity: 0;
|
|
1182
|
+
transform: scale(.95);
|
|
1183
|
+
}
|
|
1184
|
+
to {
|
|
1185
|
+
opacity: 1;
|
|
1186
|
+
transform: scale(1);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
@keyframes animate-out {
|
|
1190
|
+
0% {
|
|
1191
|
+
opacity: 1;
|
|
1192
|
+
transform: scale(1);
|
|
1193
|
+
}
|
|
1194
|
+
to {
|
|
1195
|
+
opacity: 0;
|
|
1196
|
+
transform: scale(.95);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
@property --tw-space-y-reverse { syntax:"*";inherits:false;initial-value:0 }
|
|
1200
|
+
@property --tw-border-style { syntax:"*";inherits:false;initial-value:solid }
|
|
1201
|
+
@property --tw-font-weight { syntax:"*";inherits:false }
|
|
1202
|
+
@property --tw-tracking { syntax:"*";inherits:false }
|
|
1203
|
+
@property --tw-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1204
|
+
@property --tw-shadow-color { syntax:"*";inherits:false }
|
|
1205
|
+
@property --tw-shadow-alpha { syntax:"<percentage>";inherits:false;initial-value:100% }
|
|
1206
|
+
@property --tw-inset-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1207
|
+
@property --tw-inset-shadow-color { syntax:"*";inherits:false }
|
|
1208
|
+
@property --tw-inset-shadow-alpha { syntax:"<percentage>";inherits:false;initial-value:100% }
|
|
1209
|
+
@property --tw-ring-color { syntax:"*";inherits:false }
|
|
1210
|
+
@property --tw-ring-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1211
|
+
@property --tw-inset-ring-color { syntax:"*";inherits:false }
|
|
1212
|
+
@property --tw-inset-ring-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1213
|
+
@property --tw-ring-inset { syntax:"*";inherits:false }
|
|
1214
|
+
@property --tw-ring-offset-width { syntax:"<length>";inherits:false;initial-value:0 }
|
|
1215
|
+
@property --tw-ring-offset-color { syntax:"*";inherits:false;initial-value:#fff }
|
|
1216
|
+
@property --tw-ring-offset-shadow { syntax:"*";inherits:false;initial-value:0 0 #0000 }
|
|
1217
|
+
@property --tw-translate-x { syntax:"*";inherits:false;initial-value:0 }
|
|
1218
|
+
@property --tw-translate-y { syntax:"*";inherits:false;initial-value:0 }
|
|
1219
|
+
@property --tw-translate-z { syntax:"*";inherits:false;initial-value:0 }
|
|
1220
|
+
@keyframes spin {
|
|
1221
|
+
to {
|
|
1222
|
+
transform: rotate(360deg);
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
`);
|
|
1226
|
+
|
|
14
1227
|
// src/server/utils.ts
|
|
15
1228
|
var isProvided = (value) => value !== void 0 && value !== null && value !== "";
|
|
16
1229
|
var getValueByPath = (obj, path) => {
|
|
@@ -526,9 +1739,45 @@ var useDataKit = (props) => {
|
|
|
526
1739
|
return next;
|
|
527
1740
|
});
|
|
528
1741
|
}, []);
|
|
1742
|
+
const itemUpdate = useCallback((props2) => {
|
|
1743
|
+
setItems((prev) => {
|
|
1744
|
+
if ("index" in props2) {
|
|
1745
|
+
const { index, data } = props2;
|
|
1746
|
+
if (index < 0 || index >= prev.length) return prev;
|
|
1747
|
+
const next = [...prev];
|
|
1748
|
+
next[index] = { ...next[index], ...data };
|
|
1749
|
+
return next;
|
|
1750
|
+
} else {
|
|
1751
|
+
const { id, data } = props2;
|
|
1752
|
+
const index = prev.findIndex((item) => {
|
|
1753
|
+
const itemWithId = item;
|
|
1754
|
+
return itemWithId.id === id;
|
|
1755
|
+
});
|
|
1756
|
+
if (index === -1) return prev;
|
|
1757
|
+
const next = [...prev];
|
|
1758
|
+
next[index] = { ...next[index], ...data };
|
|
1759
|
+
return next;
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1762
|
+
}, []);
|
|
529
1763
|
const deleteItemAt = useCallback((index) => {
|
|
530
1764
|
setItems((prev) => prev.filter((_, i) => i !== index));
|
|
531
1765
|
}, []);
|
|
1766
|
+
const itemDelete = useCallback((props2) => {
|
|
1767
|
+
setItems((prev) => {
|
|
1768
|
+
if ("index" in props2) {
|
|
1769
|
+
const { index } = props2;
|
|
1770
|
+
if (index < 0 || index >= prev.length) return prev;
|
|
1771
|
+
return prev.filter((_, i) => i !== index);
|
|
1772
|
+
} else {
|
|
1773
|
+
const { id } = props2;
|
|
1774
|
+
return prev.filter((item) => {
|
|
1775
|
+
const itemWithId = item;
|
|
1776
|
+
return itemWithId.id !== id;
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
});
|
|
1780
|
+
}, []);
|
|
532
1781
|
const itemPush = useCallback((item, position = 1) => {
|
|
533
1782
|
setItems((prev) => position === 0 ? [item, ...prev] : [...prev, item]);
|
|
534
1783
|
}, []);
|
|
@@ -617,7 +1866,9 @@ var useDataKit = (props) => {
|
|
|
617
1866
|
getInput,
|
|
618
1867
|
setItems: setItemsAction,
|
|
619
1868
|
setItemAt,
|
|
1869
|
+
itemUpdate,
|
|
620
1870
|
deleteItemAt,
|
|
1871
|
+
itemDelete,
|
|
621
1872
|
itemPush,
|
|
622
1873
|
deleteBulk
|
|
623
1874
|
}
|
|
@@ -748,11 +1999,11 @@ var {
|
|
|
748
1999
|
Context: DefaultDataKitContext
|
|
749
2000
|
} = createDataKitContext();
|
|
750
2001
|
function Table({ className, ...props }) {
|
|
751
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ jsx(
|
|
2002
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "table-container", className: "ndk:relative ndk:w-full ndk:overflow-x-auto", children: /* @__PURE__ */ jsx(
|
|
752
2003
|
"table",
|
|
753
2004
|
{
|
|
754
2005
|
"data-slot": "table",
|
|
755
|
-
className: cn("w-full caption-bottom text-sm", className),
|
|
2006
|
+
className: cn("ndk:w-full ndk:caption-bottom ndk:text-sm", className),
|
|
756
2007
|
...props
|
|
757
2008
|
}
|
|
758
2009
|
) });
|
|
@@ -762,7 +2013,7 @@ function TableHeader({ className, ...props }) {
|
|
|
762
2013
|
"thead",
|
|
763
2014
|
{
|
|
764
2015
|
"data-slot": "table-header",
|
|
765
|
-
className: cn("[&_tr]:border-b", className),
|
|
2016
|
+
className: cn("ndk:[&_tr]:border-b", className),
|
|
766
2017
|
...props
|
|
767
2018
|
}
|
|
768
2019
|
);
|
|
@@ -772,7 +2023,7 @@ function TableBody({ className, ...props }) {
|
|
|
772
2023
|
"tbody",
|
|
773
2024
|
{
|
|
774
2025
|
"data-slot": "table-body",
|
|
775
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
2026
|
+
className: cn("ndk:[&_tr:last-child]:border-0", className),
|
|
776
2027
|
...props
|
|
777
2028
|
}
|
|
778
2029
|
);
|
|
@@ -783,7 +2034,7 @@ function TableRow({ className, ...props }) {
|
|
|
783
2034
|
{
|
|
784
2035
|
"data-slot": "table-row",
|
|
785
2036
|
className: cn(
|
|
786
|
-
"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",
|
|
2037
|
+
"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",
|
|
787
2038
|
className
|
|
788
2039
|
),
|
|
789
2040
|
...props
|
|
@@ -796,7 +2047,7 @@ function TableHead({ className, ...props }) {
|
|
|
796
2047
|
{
|
|
797
2048
|
"data-slot": "table-head",
|
|
798
2049
|
className: cn(
|
|
799
|
-
"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]",
|
|
2050
|
+
"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]",
|
|
800
2051
|
className
|
|
801
2052
|
),
|
|
802
2053
|
...props
|
|
@@ -809,7 +2060,7 @@ function TableCell({ className, ...props }) {
|
|
|
809
2060
|
{
|
|
810
2061
|
"data-slot": "table-cell",
|
|
811
2062
|
className: cn(
|
|
812
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
2063
|
+
"ndk:p-2 ndk:align-middle ndk:whitespace-nowrap ndk:[&:has([role=checkbox])]:pr-0 ndk:[&>[role=checkbox]]:translate-y-[2px]",
|
|
813
2064
|
className
|
|
814
2065
|
),
|
|
815
2066
|
...props
|
|
@@ -825,7 +2076,7 @@ function Checkbox({
|
|
|
825
2076
|
{
|
|
826
2077
|
"data-slot": "checkbox",
|
|
827
2078
|
className: cn(
|
|
828
|
-
"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",
|
|
2079
|
+
"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",
|
|
829
2080
|
className
|
|
830
2081
|
),
|
|
831
2082
|
...props,
|
|
@@ -833,8 +2084,8 @@ function Checkbox({
|
|
|
833
2084
|
CheckboxPrimitive.Indicator,
|
|
834
2085
|
{
|
|
835
2086
|
"data-slot": "checkbox-indicator",
|
|
836
|
-
className: "grid place-content-center text-current transition-none",
|
|
837
|
-
children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
|
|
2087
|
+
className: "ndk:grid ndk:place-content-center ndk:text-current ndk:transition-none",
|
|
2088
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { className: "ndk:size-3.5" })
|
|
838
2089
|
}
|
|
839
2090
|
)
|
|
840
2091
|
}
|
|
@@ -860,7 +2111,7 @@ function PopoverContent({
|
|
|
860
2111
|
align,
|
|
861
2112
|
sideOffset,
|
|
862
2113
|
className: cn(
|
|
863
|
-
"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",
|
|
2114
|
+
"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",
|
|
864
2115
|
className
|
|
865
2116
|
),
|
|
866
2117
|
...props
|
|
@@ -895,7 +2146,7 @@ function DropdownMenuContent({
|
|
|
895
2146
|
"data-slot": "dropdown-menu-content",
|
|
896
2147
|
sideOffset,
|
|
897
2148
|
className: cn(
|
|
898
|
-
"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",
|
|
2149
|
+
"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",
|
|
899
2150
|
className
|
|
900
2151
|
),
|
|
901
2152
|
...props
|
|
@@ -915,7 +2166,7 @@ function DropdownMenuItem({
|
|
|
915
2166
|
"data-inset": inset,
|
|
916
2167
|
"data-variant": variant,
|
|
917
2168
|
className: cn(
|
|
918
|
-
"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",
|
|
2169
|
+
"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",
|
|
919
2170
|
className
|
|
920
2171
|
),
|
|
921
2172
|
...props
|
|
@@ -930,30 +2181,30 @@ function DropdownMenuSeparator({
|
|
|
930
2181
|
DropdownMenuPrimitive.Separator,
|
|
931
2182
|
{
|
|
932
2183
|
"data-slot": "dropdown-menu-separator",
|
|
933
|
-
className: cn("bg-gray-100 dark:bg-gray-900
|
|
2184
|
+
className: cn("ndk:bg-gray-100 ndk:dark:bg-gray-900 ndk:-mx-1 ndk:my-1 ndk:h-px", className),
|
|
934
2185
|
...props
|
|
935
2186
|
}
|
|
936
2187
|
);
|
|
937
2188
|
}
|
|
938
2189
|
var buttonVariants = cva(
|
|
939
|
-
"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",
|
|
2190
|
+
"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",
|
|
940
2191
|
{
|
|
941
2192
|
variants: {
|
|
942
2193
|
variant: {
|
|
943
|
-
default: "bg-gray-900 text-white hover:bg-gray-800 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-200",
|
|
944
|
-
destructive: "bg-red-600 text-white hover:bg-red-700 dark:bg-red-600 dark:hover:bg-red-500",
|
|
945
|
-
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",
|
|
946
|
-
secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-900 dark:text-gray-100 dark:hover:bg-gray-800",
|
|
947
|
-
ghost: "hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-900 dark:hover:text-gray-100",
|
|
948
|
-
link: "text-gray-900 underline-offset-4 hover:underline dark:text-gray-100"
|
|
2194
|
+
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",
|
|
2195
|
+
destructive: "ndk:bg-red-600 ndk:text-white ndk:hover:bg-red-700 ndk:dark:bg-red-600 ndk:dark:hover:bg-red-500",
|
|
2196
|
+
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",
|
|
2197
|
+
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",
|
|
2198
|
+
ghost: "ndk:hover:bg-gray-100 ndk:hover:text-gray-900 ndk:dark:hover:bg-gray-900 ndk:dark:hover:text-gray-100",
|
|
2199
|
+
link: "ndk:text-gray-900 ndk:underline-offset-4 ndk:hover:underline ndk:dark:text-gray-100"
|
|
949
2200
|
},
|
|
950
2201
|
size: {
|
|
951
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
952
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
953
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
954
|
-
icon: "size-9",
|
|
955
|
-
"icon-sm": "size-8",
|
|
956
|
-
"icon-lg": "size-10"
|
|
2202
|
+
default: "ndk:h-9 ndk:px-4 ndk:py-2 ndk:has-[>svg]:px-3",
|
|
2203
|
+
sm: "ndk:h-8 ndk:rounded-md ndk:gap-1.5 ndk:px-3 ndk:has-[>svg]:px-2.5",
|
|
2204
|
+
lg: "ndk:h-10 ndk:rounded-md ndk:px-6 ndk:has-[>svg]:px-4",
|
|
2205
|
+
icon: "ndk:size-9",
|
|
2206
|
+
"icon-sm": "ndk:size-8",
|
|
2207
|
+
"icon-lg": "ndk:size-10"
|
|
957
2208
|
}
|
|
958
2209
|
},
|
|
959
2210
|
defaultVariants: {
|
|
@@ -990,7 +2241,7 @@ function Pagination({ className, ...props }) {
|
|
|
990
2241
|
role: "navigation",
|
|
991
2242
|
"aria-label": "pagination",
|
|
992
2243
|
"data-slot": "pagination",
|
|
993
|
-
className: cn("flex", className),
|
|
2244
|
+
className: cn("ndk:flex", className),
|
|
994
2245
|
...props
|
|
995
2246
|
}
|
|
996
2247
|
);
|
|
@@ -1003,7 +2254,7 @@ function PaginationContent({
|
|
|
1003
2254
|
"ul",
|
|
1004
2255
|
{
|
|
1005
2256
|
"data-slot": "pagination-content",
|
|
1006
|
-
className: cn("flex flex-row items-center gap-1", className),
|
|
2257
|
+
className: cn("ndk:flex ndk:flex-row ndk:items-center ndk:gap-1", className),
|
|
1007
2258
|
...props
|
|
1008
2259
|
}
|
|
1009
2260
|
);
|
|
@@ -1045,11 +2296,11 @@ function PaginationPrevious({
|
|
|
1045
2296
|
{
|
|
1046
2297
|
"aria-label": "Go to previous page",
|
|
1047
2298
|
size: "default",
|
|
1048
|
-
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
2299
|
+
className: cn("ndk:gap-1 ndk:px-2.5 ndk:sm:pl-2.5", className),
|
|
1049
2300
|
...props,
|
|
1050
2301
|
children: [
|
|
1051
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "size-4", "aria-hidden": "true" }),
|
|
1052
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Previous" })
|
|
2302
|
+
/* @__PURE__ */ jsx(ChevronLeft, { className: "ndk:size-4", "aria-hidden": "true" }),
|
|
2303
|
+
/* @__PURE__ */ jsx("span", { className: "ndk:hidden ndk:sm:block", children: "Previous" })
|
|
1053
2304
|
]
|
|
1054
2305
|
}
|
|
1055
2306
|
);
|
|
@@ -1063,11 +2314,11 @@ function PaginationNext({
|
|
|
1063
2314
|
{
|
|
1064
2315
|
"aria-label": "Go to next page",
|
|
1065
2316
|
size: "default",
|
|
1066
|
-
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
2317
|
+
className: cn("ndk:gap-1 ndk:px-2.5 ndk:sm:pr-2.5", className),
|
|
1067
2318
|
...props,
|
|
1068
2319
|
children: [
|
|
1069
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Next" }),
|
|
1070
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "size-4", "aria-hidden": "true" })
|
|
2320
|
+
/* @__PURE__ */ jsx("span", { className: "ndk:hidden ndk:sm:block", children: "Next" }),
|
|
2321
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "ndk:size-4", "aria-hidden": "true" })
|
|
1071
2322
|
]
|
|
1072
2323
|
}
|
|
1073
2324
|
);
|
|
@@ -1081,11 +2332,11 @@ function PaginationEllipsis({
|
|
|
1081
2332
|
{
|
|
1082
2333
|
"aria-hidden": "true",
|
|
1083
2334
|
"data-slot": "pagination-ellipsis",
|
|
1084
|
-
className: cn("flex size-9 items-center justify-center", className),
|
|
2335
|
+
className: cn("ndk:flex ndk:size-9 ndk:items-center ndk:justify-center", className),
|
|
1085
2336
|
...props,
|
|
1086
2337
|
children: [
|
|
1087
|
-
/* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4", "aria-hidden": "true" }),
|
|
1088
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
2338
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "ndk:size-4", "aria-hidden": "true" }),
|
|
2339
|
+
/* @__PURE__ */ jsx("span", { className: "ndk:sr-only", children: "More pages" })
|
|
1089
2340
|
]
|
|
1090
2341
|
}
|
|
1091
2342
|
);
|
|
@@ -1112,13 +2363,13 @@ function SelectTrigger({
|
|
|
1112
2363
|
"data-slot": "select-trigger",
|
|
1113
2364
|
"data-size": size,
|
|
1114
2365
|
className: cn(
|
|
1115
|
-
"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
|
|
2366
|
+
"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",
|
|
1116
2367
|
className
|
|
1117
2368
|
),
|
|
1118
2369
|
...props,
|
|
1119
2370
|
children: [
|
|
1120
2371
|
children,
|
|
1121
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
2372
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "ndk:size-4 ndk:opacity-50" }) })
|
|
1122
2373
|
]
|
|
1123
2374
|
}
|
|
1124
2375
|
);
|
|
@@ -1136,8 +2387,8 @@ function SelectContent({
|
|
|
1136
2387
|
{
|
|
1137
2388
|
"data-slot": "select-content",
|
|
1138
2389
|
className: cn(
|
|
1139
|
-
"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",
|
|
1140
|
-
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",
|
|
2390
|
+
"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",
|
|
2391
|
+
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",
|
|
1141
2392
|
className
|
|
1142
2393
|
),
|
|
1143
2394
|
position,
|
|
@@ -1149,8 +2400,8 @@ function SelectContent({
|
|
|
1149
2400
|
SelectPrimitive.Viewport,
|
|
1150
2401
|
{
|
|
1151
2402
|
className: cn(
|
|
1152
|
-
"p-1",
|
|
1153
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
2403
|
+
"ndk:p-1",
|
|
2404
|
+
position === "popper" && "ndk:h-[var(--radix-select-trigger-height)] ndk:w-full ndk:min-w-[var(--radix-select-trigger-width)] ndk:scroll-my-1"
|
|
1154
2405
|
),
|
|
1155
2406
|
children
|
|
1156
2407
|
}
|
|
@@ -1170,7 +2421,7 @@ function SelectItem({
|
|
|
1170
2421
|
{
|
|
1171
2422
|
"data-slot": "select-item",
|
|
1172
2423
|
className: cn(
|
|
1173
|
-
"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
|
|
2424
|
+
"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",
|
|
1174
2425
|
className
|
|
1175
2426
|
),
|
|
1176
2427
|
...props,
|
|
@@ -1179,8 +2430,8 @@ function SelectItem({
|
|
|
1179
2430
|
"span",
|
|
1180
2431
|
{
|
|
1181
2432
|
"data-slot": "select-item-indicator",
|
|
1182
|
-
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
1183
|
-
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
2433
|
+
className: "ndk:absolute ndk:right-2 ndk:flex ndk:size-3.5 ndk:items-center ndk:justify-center",
|
|
2434
|
+
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "ndk:size-4" }) })
|
|
1184
2435
|
}
|
|
1185
2436
|
),
|
|
1186
2437
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
@@ -1197,11 +2448,11 @@ function SelectScrollUpButton({
|
|
|
1197
2448
|
{
|
|
1198
2449
|
"data-slot": "select-scroll-up-button",
|
|
1199
2450
|
className: cn(
|
|
1200
|
-
"flex cursor-default items-center justify-center py-1",
|
|
2451
|
+
"ndk:flex ndk:cursor-default ndk:items-center ndk:justify-center ndk:py-1",
|
|
1201
2452
|
className
|
|
1202
2453
|
),
|
|
1203
2454
|
...props,
|
|
1204
|
-
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
2455
|
+
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "ndk:size-4" })
|
|
1205
2456
|
}
|
|
1206
2457
|
);
|
|
1207
2458
|
}
|
|
@@ -1214,11 +2465,11 @@ function SelectScrollDownButton({
|
|
|
1214
2465
|
{
|
|
1215
2466
|
"data-slot": "select-scroll-down-button",
|
|
1216
2467
|
className: cn(
|
|
1217
|
-
"flex cursor-default items-center justify-center py-1",
|
|
2468
|
+
"ndk:flex ndk:cursor-default ndk:items-center ndk:justify-center ndk:py-1",
|
|
1218
2469
|
className
|
|
1219
2470
|
),
|
|
1220
2471
|
...props,
|
|
1221
|
-
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
2472
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "ndk:size-4" })
|
|
1222
2473
|
}
|
|
1223
2474
|
);
|
|
1224
2475
|
}
|
|
@@ -1238,7 +2489,8 @@ var DataKitRoot = (props) => {
|
|
|
1238
2489
|
refetchInterval,
|
|
1239
2490
|
memory: memoryMode = "memory",
|
|
1240
2491
|
pagination: paginationType = "NUMBER",
|
|
1241
|
-
controller
|
|
2492
|
+
controller,
|
|
2493
|
+
sorts: defaultSorts = []
|
|
1242
2494
|
} = props;
|
|
1243
2495
|
const tableRef = useRef(null);
|
|
1244
2496
|
const intervalRef = useRef(null);
|
|
@@ -1270,12 +2522,17 @@ var DataKitRoot = (props) => {
|
|
|
1270
2522
|
initial: {
|
|
1271
2523
|
limit: limitConfig?.default ?? 10,
|
|
1272
2524
|
query: query ?? {},
|
|
1273
|
-
sorts:
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
2525
|
+
sorts: (() => {
|
|
2526
|
+
const columnSorts = columns.reduce((acc, col) => {
|
|
2527
|
+
if (col.sortable && col.sortable.default !== 0) {
|
|
2528
|
+
acc.push({ path: col.sortable.path, value: col.sortable.default });
|
|
2529
|
+
}
|
|
2530
|
+
return acc;
|
|
2531
|
+
}, []);
|
|
2532
|
+
const columnPaths = new Set(columnSorts.map((s) => s.path));
|
|
2533
|
+
const additionalSorts = defaultSorts.filter((s) => !columnPaths.has(s.path));
|
|
2534
|
+
return [...columnSorts, ...additionalSorts];
|
|
2535
|
+
})(),
|
|
1279
2536
|
filter: filters.reduce((acc, f) => {
|
|
1280
2537
|
if (f.defaultValue !== void 0) acc[f.id] = f.defaultValue;
|
|
1281
2538
|
return acc;
|
|
@@ -1346,6 +2603,8 @@ var DataKitRoot = (props) => {
|
|
|
1346
2603
|
if (controller) {
|
|
1347
2604
|
controller.current = {
|
|
1348
2605
|
itemPush: dataKit.actions.itemPush,
|
|
2606
|
+
itemUpdate: dataKit.actions.itemUpdate,
|
|
2607
|
+
itemDelete: dataKit.actions.itemDelete,
|
|
1349
2608
|
refetchData: dataKit.actions.refresh,
|
|
1350
2609
|
deleteBulk: dataKit.actions.deleteBulk,
|
|
1351
2610
|
getSelectedItems: () => dataKit.items.filter((item) => selection.isSelected(item.id)),
|
|
@@ -1380,20 +2639,20 @@ var DataKitRoot = (props) => {
|
|
|
1380
2639
|
useEffect(() => {
|
|
1381
2640
|
selection.deselectAll();
|
|
1382
2641
|
}, [dataKit.items.length]);
|
|
1383
|
-
return /* @__PURE__ */ jsxs("div", { ref: tableRef, className: `space-y-3 ${className ?? ""}`, children: [
|
|
1384
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between gap-2", children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
2642
|
+
return /* @__PURE__ */ jsxs("div", { ref: tableRef, className: `ndk:space-y-3 ${className ?? ""}`, children: [
|
|
2643
|
+
/* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:items-center ndk:justify-between ndk:gap-2", children: /* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:items-center ndk:gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
1385
2644
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", children: [
|
|
1386
|
-
/* @__PURE__ */ jsx(Filter, { className: "mr-1.5 size-4" }),
|
|
2645
|
+
/* @__PURE__ */ jsx(Filter, { className: "ndk:mr-1.5 ndk:size-4" }),
|
|
1387
2646
|
"Filters"
|
|
1388
2647
|
] }) }),
|
|
1389
|
-
/* @__PURE__ */ jsxs(PopoverContent, { align: "start", className: "w-80", container: overlayContainer, children: [
|
|
1390
|
-
/* @__PURE__ */ jsx("div", { className: "grid gap-3", children: filters.map((f) => /* @__PURE__ */ jsxs("div", { className: "grid gap-1.5", children: [
|
|
1391
|
-
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: f.label }),
|
|
2648
|
+
/* @__PURE__ */ jsxs(PopoverContent, { align: "start", className: "ndk:w-80", container: overlayContainer, children: [
|
|
2649
|
+
/* @__PURE__ */ jsx("div", { className: "ndk:grid ndk:gap-3", children: filters.map((f) => /* @__PURE__ */ jsxs("div", { className: "ndk:grid ndk:gap-1.5", children: [
|
|
2650
|
+
/* @__PURE__ */ jsx("label", { className: "ndk:text-sm ndk:font-medium", children: f.label }),
|
|
1392
2651
|
f.type === "TEXT" && /* @__PURE__ */ jsx(
|
|
1393
2652
|
"input",
|
|
1394
2653
|
{
|
|
1395
2654
|
type: "text",
|
|
1396
|
-
className: "h-9 w-full rounded-md border bg-transparent px-3 text-sm outline-none focus:ring-2 focus:ring-ring",
|
|
2655
|
+
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",
|
|
1397
2656
|
placeholder: f.placeholder,
|
|
1398
2657
|
value: dataKit.filter[f.id] ?? "",
|
|
1399
2658
|
onChange: (e) => dataKit.actions.setFilter(f.id, e.target.value)
|
|
@@ -1413,7 +2672,7 @@ var DataKitRoot = (props) => {
|
|
|
1413
2672
|
]
|
|
1414
2673
|
}
|
|
1415
2674
|
),
|
|
1416
|
-
f.type === "BOOLEAN" && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx(
|
|
2675
|
+
f.type === "BOOLEAN" && /* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:items-center ndk:justify-between", children: /* @__PURE__ */ jsx(
|
|
1417
2676
|
Checkbox,
|
|
1418
2677
|
{
|
|
1419
2678
|
checked: Boolean(dataKit.filter[f.id]),
|
|
@@ -1421,15 +2680,15 @@ var DataKitRoot = (props) => {
|
|
|
1421
2680
|
}
|
|
1422
2681
|
) })
|
|
1423
2682
|
] }, f.id)) }),
|
|
1424
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-4 flex justify-between border-t pt-3", children: [
|
|
2683
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:mt-4 ndk:flex ndk:justify-between ndk:border-t ndk:pt-3", children: [
|
|
1425
2684
|
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: handleResetFilters, children: "Reset" }),
|
|
1426
2685
|
/* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => setIsFilterOpen(false), children: "Done" })
|
|
1427
2686
|
] })
|
|
1428
2687
|
] })
|
|
1429
2688
|
] }) }) }),
|
|
1430
|
-
/* @__PURE__ */ jsx("div", { className: `overflow-hidden border border-gray-200 dark:border-gray-800 ${bordered === "rounded" ? "rounded-lg" : bordered ? "" : "rounded-lg"}`, children: /* @__PURE__ */ jsxs(Table, { children: [
|
|
2689
|
+
/* @__PURE__ */ 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__ */ jsxs(Table, { children: [
|
|
1431
2690
|
/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
1432
|
-
selectable?.enabled && /* @__PURE__ */ jsx(TableHead, { className: "w-12", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2691
|
+
selectable?.enabled && /* @__PURE__ */ jsx(TableHead, { className: "ndk:w-12", children: /* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-2", children: [
|
|
1433
2692
|
/* @__PURE__ */ jsx(
|
|
1434
2693
|
Checkbox,
|
|
1435
2694
|
{
|
|
@@ -1443,9 +2702,9 @@ var DataKitRoot = (props) => {
|
|
|
1443
2702
|
{
|
|
1444
2703
|
variant: "ghost",
|
|
1445
2704
|
size: "icon",
|
|
1446
|
-
className: "size-6",
|
|
2705
|
+
className: "ndk:size-6",
|
|
1447
2706
|
disabled: selectedCount === 0 || !!actionLoading,
|
|
1448
|
-
children: actionLoading ? /* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin" }) : /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" })
|
|
2707
|
+
children: actionLoading ? /* @__PURE__ */ jsx(Loader2, { className: "ndk:size-4 ndk:animate-spin" }) : /* @__PURE__ */ jsx(MoreHorizontal, { className: "ndk:size-4" })
|
|
1449
2708
|
}
|
|
1450
2709
|
) }),
|
|
1451
2710
|
/* @__PURE__ */ jsx(DropdownMenuContent, { align: "start", container: overlayContainer, children: Object.entries(selectable.actions).map(
|
|
@@ -1461,20 +2720,20 @@ var DataKitRoot = (props) => {
|
|
|
1461
2720
|
{
|
|
1462
2721
|
variant: "ghost",
|
|
1463
2722
|
size: "sm",
|
|
1464
|
-
className: "
|
|
2723
|
+
className: "ndk:-ml-4 ndk:h-auto ndk:py-0",
|
|
1465
2724
|
onClick: () => handleSort(col.sortable.path),
|
|
1466
2725
|
children: [
|
|
1467
2726
|
React2__default.isValidElement(col.head) ? col.head.props.children : col.head,
|
|
1468
|
-
getSortFor(col.sortable.path) === 1 && /* @__PURE__ */ jsx(ArrowUp, { className: "ml-1 size-4" }),
|
|
1469
|
-
getSortFor(col.sortable.path) === -1 && /* @__PURE__ */ jsx(ArrowDown, { className: "ml-1 size-4" })
|
|
2727
|
+
getSortFor(col.sortable.path) === 1 && /* @__PURE__ */ jsx(ArrowUp, { className: "ndk:ml-1 ndk:size-4" }),
|
|
2728
|
+
getSortFor(col.sortable.path) === -1 && /* @__PURE__ */ jsx(ArrowDown, { className: "ndk:ml-1 ndk:size-4" })
|
|
1470
2729
|
]
|
|
1471
2730
|
}
|
|
1472
2731
|
) }) : col.head }, idx))
|
|
1473
2732
|
] }) }),
|
|
1474
|
-
/* @__PURE__ */ jsx(TableBody, { children: dataKit.state.isLoading ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan, className: "h-24 text-center", children: /* @__PURE__ */ jsx(Loader2, { className: "mx-auto size-5 animate-spin" }) }) }) : dataKit.state.error ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsxs(TableCell, { colSpan, className: "h-24 text-center text-red-500", children: [
|
|
2733
|
+
/* @__PURE__ */ jsx(TableBody, { children: dataKit.state.isLoading ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan, className: "ndk:h-24 ndk:text-center", children: /* @__PURE__ */ jsx(Loader2, { className: "ndk:mx-auto ndk:size-5 ndk:animate-spin" }) }) }) : dataKit.state.error ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsxs(TableCell, { colSpan, className: "ndk:h-24 ndk:text-center ndk:text-red-500", children: [
|
|
1475
2734
|
"Error: ",
|
|
1476
2735
|
dataKit.state.error.message
|
|
1477
|
-
] }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan, className: "h-24 text-center text-muted-foreground", children: "No results found." }) }) : dataKit.items.map((item, idx) => {
|
|
2736
|
+
] }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan, className: "ndk:h-24 ndk:text-center ndk:text-muted-foreground", children: "No results found." }) }) : dataKit.items.map((item, idx) => {
|
|
1478
2737
|
const rowId = item.id ?? idx;
|
|
1479
2738
|
return /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
1480
2739
|
selectable?.enabled && /* @__PURE__ */ jsx(TableCell, { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
|
|
@@ -1497,24 +2756,24 @@ var DataKitRoot = (props) => {
|
|
|
1497
2756
|
] }, rowId);
|
|
1498
2757
|
}) })
|
|
1499
2758
|
] }) }),
|
|
1500
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 justify-between", children: [
|
|
1501
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2759
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-4 ndk:justify-between", children: [
|
|
2760
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-3", children: [
|
|
1502
2761
|
/* @__PURE__ */ jsxs(Select, { value: String(dataKit.limit), onValueChange: (v) => dataKit.actions.setLimit(Number(v)), disabled: dataKit.state.isLoading, children: [
|
|
1503
|
-
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-16", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
2762
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "ndk:w-16", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
1504
2763
|
/* @__PURE__ */ jsx(SelectContent, { container: overlayContainer, children: limitOptions.map((v) => /* @__PURE__ */ jsx(SelectItem, { value: String(v), children: v }, v)) })
|
|
1505
2764
|
] }),
|
|
1506
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: [
|
|
2765
|
+
/* @__PURE__ */ jsxs("p", { className: "ndk:text-sm ndk:text-muted-foreground ndk:whitespace-nowrap", children: [
|
|
1507
2766
|
"Page ",
|
|
1508
2767
|
dataKit.page,
|
|
1509
2768
|
" of ",
|
|
1510
2769
|
pagination.totalPages
|
|
1511
2770
|
] }),
|
|
1512
|
-
selectable?.enabled && selectedCount > 0 && /* @__PURE__ */ jsxs("p", { className: "text-sm text-foreground", children: [
|
|
2771
|
+
selectable?.enabled && selectedCount > 0 && /* @__PURE__ */ jsxs("p", { className: "ndk:text-sm ndk:text-foreground", children: [
|
|
1513
2772
|
selectedCount,
|
|
1514
2773
|
" selected"
|
|
1515
2774
|
] })
|
|
1516
2775
|
] }),
|
|
1517
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: paginationType === "SIMPLE" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2776
|
+
/* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:justify-end", children: paginationType === "SIMPLE" ? /* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-1", children: [
|
|
1518
2777
|
/* @__PURE__ */ jsx(
|
|
1519
2778
|
Button,
|
|
1520
2779
|
{
|
|
@@ -1522,7 +2781,7 @@ var DataKitRoot = (props) => {
|
|
|
1522
2781
|
size: "icon",
|
|
1523
2782
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1524
2783
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1525
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
|
|
2784
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "ndk:size-4" })
|
|
1526
2785
|
}
|
|
1527
2786
|
),
|
|
1528
2787
|
/* @__PURE__ */ jsx(
|
|
@@ -1532,26 +2791,26 @@ var DataKitRoot = (props) => {
|
|
|
1532
2791
|
size: "icon",
|
|
1533
2792
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1534
2793
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1535
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
|
|
2794
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "ndk:size-4" })
|
|
1536
2795
|
}
|
|
1537
2796
|
)
|
|
1538
|
-
] }) : /* @__PURE__ */ jsx(Pagination, { className: "w-auto", children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
1539
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsx(
|
|
2797
|
+
] }) : /* @__PURE__ */ jsx(Pagination, { className: "ndk:w-auto", children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
2798
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsx(
|
|
1540
2799
|
PaginationPrevious,
|
|
1541
2800
|
{
|
|
1542
2801
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1543
2802
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1)
|
|
1544
2803
|
}
|
|
1545
2804
|
) }),
|
|
1546
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsx(
|
|
2805
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsx(
|
|
1547
2806
|
PaginationLink,
|
|
1548
2807
|
{
|
|
1549
2808
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1550
2809
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1551
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
|
|
2810
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "ndk:size-4" })
|
|
1552
2811
|
}
|
|
1553
2812
|
) }),
|
|
1554
|
-
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsx(PaginationItem, { className: "hidden sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsx(
|
|
2813
|
+
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsx(
|
|
1555
2814
|
PaginationLink,
|
|
1556
2815
|
{
|
|
1557
2816
|
isActive: pageNum === dataKit.page,
|
|
@@ -1560,20 +2819,20 @@ var DataKitRoot = (props) => {
|
|
|
1560
2819
|
children: pageNum
|
|
1561
2820
|
}
|
|
1562
2821
|
) }, idx)),
|
|
1563
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsx("span", { className: "flex size-9 items-center justify-center text-sm", children: dataKit.page }) }),
|
|
1564
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsx(
|
|
2822
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsx("span", { className: "ndk:flex ndk:size-9 ndk:items-center ndk:justify-center ndk:text-sm", children: dataKit.page }) }),
|
|
2823
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsx(
|
|
1565
2824
|
PaginationNext,
|
|
1566
2825
|
{
|
|
1567
2826
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1568
2827
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1)
|
|
1569
2828
|
}
|
|
1570
2829
|
) }),
|
|
1571
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsx(
|
|
2830
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsx(
|
|
1572
2831
|
PaginationLink,
|
|
1573
2832
|
{
|
|
1574
2833
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1575
2834
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1576
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
|
|
2835
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "ndk:size-4" })
|
|
1577
2836
|
}
|
|
1578
2837
|
) })
|
|
1579
2838
|
] }) }) })
|
|
@@ -1660,21 +2919,21 @@ var DataKitInner = (props, ref) => {
|
|
|
1660
2919
|
if (intervalRef.current) clearInterval(intervalRef.current);
|
|
1661
2920
|
};
|
|
1662
2921
|
}, [refetchInterval, isVisible, dataKit.actions]);
|
|
1663
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: `space-y-3 ${className ?? ""}`, children: [
|
|
1664
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1665
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
2922
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: `ndk:space-y-3 ${className ?? ""}`, children: [
|
|
2923
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:justify-between ndk:gap-2", children: [
|
|
2924
|
+
/* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:items-center ndk:gap-2", children: filters.length > 0 && /* @__PURE__ */ jsxs(Popover, { open: isFilterOpen, onOpenChange: setIsFilterOpen, children: [
|
|
1666
2925
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", children: [
|
|
1667
|
-
/* @__PURE__ */ jsx(Filter, { className: "mr-1.5 size-4" }),
|
|
2926
|
+
/* @__PURE__ */ jsx(Filter, { className: "ndk:mr-1.5 ndk:size-4" }),
|
|
1668
2927
|
"Filters"
|
|
1669
2928
|
] }) }),
|
|
1670
|
-
/* @__PURE__ */ jsxs(PopoverContent, { align: "start", className: "w-80", container: overlayContainer, children: [
|
|
1671
|
-
/* @__PURE__ */ jsx("div", { className: "grid gap-3", children: filters.map((f) => /* @__PURE__ */ jsxs("div", { className: "grid gap-1.5", children: [
|
|
1672
|
-
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: f.label }),
|
|
2929
|
+
/* @__PURE__ */ jsxs(PopoverContent, { align: "start", className: "ndk:w-80", container: overlayContainer, children: [
|
|
2930
|
+
/* @__PURE__ */ jsx("div", { className: "ndk:grid ndk:gap-3", children: filters.map((f) => /* @__PURE__ */ jsxs("div", { className: "ndk:grid ndk:gap-1.5", children: [
|
|
2931
|
+
/* @__PURE__ */ jsx("label", { className: "ndk:text-sm ndk:font-medium", children: f.label }),
|
|
1673
2932
|
f.type === "TEXT" && /* @__PURE__ */ jsx(
|
|
1674
2933
|
"input",
|
|
1675
2934
|
{
|
|
1676
2935
|
type: "text",
|
|
1677
|
-
className: "h-9 w-full rounded-md border bg-transparent px-3 text-sm outline-none focus:ring-2 focus:ring-ring",
|
|
2936
|
+
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",
|
|
1678
2937
|
placeholder: f.placeholder,
|
|
1679
2938
|
value: dataKit.filter[f.id] ?? "",
|
|
1680
2939
|
onChange: (e) => dataKit.actions.setFilter(f.id, e.target.value)
|
|
@@ -1694,7 +2953,7 @@ var DataKitInner = (props, ref) => {
|
|
|
1694
2953
|
]
|
|
1695
2954
|
}
|
|
1696
2955
|
),
|
|
1697
|
-
f.type === "BOOLEAN" && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx(
|
|
2956
|
+
f.type === "BOOLEAN" && /* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:items-center ndk:justify-between", children: /* @__PURE__ */ jsx(
|
|
1698
2957
|
Checkbox,
|
|
1699
2958
|
{
|
|
1700
2959
|
checked: Boolean(dataKit.filter[f.id]),
|
|
@@ -1702,33 +2961,33 @@ var DataKitInner = (props, ref) => {
|
|
|
1702
2961
|
}
|
|
1703
2962
|
) })
|
|
1704
2963
|
] }, f.id)) }),
|
|
1705
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-4 flex justify-between border-t pt-3", children: [
|
|
2964
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:mt-4 ndk:flex ndk:justify-between ndk:border-t ndk:pt-3", children: [
|
|
1706
2965
|
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: handleResetFilters, children: "Reset" }),
|
|
1707
2966
|
/* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => setIsFilterOpen(false), children: "Done" })
|
|
1708
2967
|
] })
|
|
1709
2968
|
] })
|
|
1710
2969
|
] }) }),
|
|
1711
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
1712
|
-
/* @__PURE__ */ jsxs("span", { className: "mr-2 text-sm text-muted-foreground", children: [
|
|
2970
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-1", children: [
|
|
2971
|
+
/* @__PURE__ */ jsxs("span", { className: "ndk:mr-2 ndk:text-sm ndk:text-muted-foreground", children: [
|
|
1713
2972
|
dataKit.items.length,
|
|
1714
2973
|
" of ",
|
|
1715
2974
|
dataKit.total
|
|
1716
2975
|
] }),
|
|
1717
2976
|
/* @__PURE__ */ jsxs(Select, { value: String(dataKit.limit), onValueChange: (v) => dataKit.actions.setLimit(Number(v)), disabled: dataKit.state.isLoading, children: [
|
|
1718
|
-
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-16", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
2977
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "ndk:w-16", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
1719
2978
|
/* @__PURE__ */ jsx(SelectContent, { container: overlayContainer, children: limitOptions.map((v) => /* @__PURE__ */ jsx(SelectItem, { value: String(v), children: v }, v)) })
|
|
1720
2979
|
] })
|
|
1721
2980
|
] })
|
|
1722
2981
|
] }),
|
|
1723
|
-
manual ? children(dataKit) : /* @__PURE__ */ jsx("div", { className: "min-h-[200px]", children: dataKit.state.isLoading ? /* @__PURE__ */ jsx("div", { className: "flex h-48 items-center justify-center", children: /* @__PURE__ */ jsx(Loader2, { className: "size-6 animate-spin text-muted-foreground" }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex h-48 items-center justify-center text-muted-foreground", children: "No results found." }) : children(dataKit) }),
|
|
1724
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1725
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
2982
|
+
manual ? children(dataKit) : /* @__PURE__ */ jsx("div", { className: "ndk:min-h-[200px]", children: dataKit.state.isLoading ? /* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:h-48 ndk:items-center ndk:justify-center", children: /* @__PURE__ */ jsx(Loader2, { className: "ndk:size-6 ndk:animate-spin ndk:text-muted-foreground" }) }) : dataKit.items.length === 0 ? /* @__PURE__ */ jsx("div", { className: "ndk:flex ndk:h-48 ndk:items-center ndk:justify-center ndk:text-muted-foreground", children: "No results found." }) : children(dataKit) }),
|
|
2983
|
+
/* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:justify-between", children: [
|
|
2984
|
+
/* @__PURE__ */ jsxs("p", { className: "ndk:text-sm ndk:text-muted-foreground", children: [
|
|
1726
2985
|
"Page ",
|
|
1727
2986
|
dataKit.page,
|
|
1728
2987
|
" of ",
|
|
1729
2988
|
pagination.totalPages
|
|
1730
2989
|
] }),
|
|
1731
|
-
paginationType === "SIMPLE" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2990
|
+
paginationType === "SIMPLE" ? /* @__PURE__ */ jsxs("div", { className: "ndk:flex ndk:items-center ndk:gap-1", children: [
|
|
1732
2991
|
/* @__PURE__ */ jsx(
|
|
1733
2992
|
Button,
|
|
1734
2993
|
{
|
|
@@ -1736,7 +2995,7 @@ var DataKitInner = (props, ref) => {
|
|
|
1736
2995
|
size: "icon",
|
|
1737
2996
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1738
2997
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1739
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
|
|
2998
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "ndk:size-4" })
|
|
1740
2999
|
}
|
|
1741
3000
|
),
|
|
1742
3001
|
/* @__PURE__ */ jsx(
|
|
@@ -1746,26 +3005,26 @@ var DataKitInner = (props, ref) => {
|
|
|
1746
3005
|
size: "icon",
|
|
1747
3006
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1748
3007
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1749
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
|
|
3008
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "ndk:size-4" })
|
|
1750
3009
|
}
|
|
1751
3010
|
)
|
|
1752
|
-
] }) : /* @__PURE__ */ jsx(Pagination, { className: "mx-0 w-auto", children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
1753
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsx(
|
|
3011
|
+
] }) : /* @__PURE__ */ jsx(Pagination, { className: "ndk:mx-0 ndk:w-auto", children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
3012
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsx(
|
|
1754
3013
|
PaginationPrevious,
|
|
1755
3014
|
{
|
|
1756
3015
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1757
3016
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1)
|
|
1758
3017
|
}
|
|
1759
3018
|
) }),
|
|
1760
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsx(
|
|
3019
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsx(
|
|
1761
3020
|
PaginationLink,
|
|
1762
3021
|
{
|
|
1763
3022
|
disabled: !pagination.hasPrevPage || dataKit.state.isLoading,
|
|
1764
3023
|
onClick: () => dataKit.actions.setPage(dataKit.page - 1),
|
|
1765
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
|
|
3024
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "ndk:size-4" })
|
|
1766
3025
|
}
|
|
1767
3026
|
) }),
|
|
1768
|
-
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsx(PaginationItem, { className: "hidden sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsx(
|
|
3027
|
+
pagination.pages.map((pageNum, idx) => /* @__PURE__ */ jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: pageNum === "ellipsis" ? /* @__PURE__ */ jsx(PaginationEllipsis, {}) : /* @__PURE__ */ jsx(
|
|
1769
3028
|
PaginationLink,
|
|
1770
3029
|
{
|
|
1771
3030
|
isActive: pageNum === dataKit.page,
|
|
@@ -1774,20 +3033,20 @@ var DataKitInner = (props, ref) => {
|
|
|
1774
3033
|
children: pageNum
|
|
1775
3034
|
}
|
|
1776
3035
|
) }, idx)),
|
|
1777
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsx("span", { className: "flex size-9 items-center justify-center text-sm", children: dataKit.page }) }),
|
|
1778
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "hidden sm:block", children: /* @__PURE__ */ jsx(
|
|
3036
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsx("span", { className: "ndk:flex ndk:size-9 ndk:items-center ndk:justify-center ndk:text-sm", children: dataKit.page }) }),
|
|
3037
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:hidden ndk:sm:block", children: /* @__PURE__ */ jsx(
|
|
1779
3038
|
PaginationNext,
|
|
1780
3039
|
{
|
|
1781
3040
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1782
3041
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1)
|
|
1783
3042
|
}
|
|
1784
3043
|
) }),
|
|
1785
|
-
/* @__PURE__ */ jsx(PaginationItem, { className: "sm:hidden", children: /* @__PURE__ */ jsx(
|
|
3044
|
+
/* @__PURE__ */ jsx(PaginationItem, { className: "ndk:sm:hidden", children: /* @__PURE__ */ jsx(
|
|
1786
3045
|
PaginationLink,
|
|
1787
3046
|
{
|
|
1788
3047
|
disabled: !pagination.hasNextPage || dataKit.state.isLoading,
|
|
1789
3048
|
onClick: () => dataKit.actions.setPage(dataKit.page + 1),
|
|
1790
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
|
|
3049
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "ndk:size-4" })
|
|
1791
3050
|
}
|
|
1792
3051
|
) })
|
|
1793
3052
|
] }) })
|