@kopexa/theme 1.7.6 → 1.7.7

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.
@@ -0,0 +1,325 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const datagrid: tailwind_variants.TVReturnType<{
5
+ border: {
6
+ true: {
7
+ container: string;
8
+ };
9
+ };
10
+ headerBorder: {
11
+ true: {
12
+ headerRow: string;
13
+ };
14
+ };
15
+ cellBorder: {
16
+ true: {
17
+ headerRow: string;
18
+ headerRowCell: string;
19
+ bodyRowSkeleton: string;
20
+ bodyRowSkeletonCell: string;
21
+ bodyRow: string;
22
+ bodyRowCell: string;
23
+ };
24
+ };
25
+ rowBorder: {
26
+ true: {
27
+ bodyRowExpanded: string;
28
+ };
29
+ };
30
+ rowRounded: {
31
+ true: {
32
+ body: string;
33
+ };
34
+ };
35
+ columnsResizable: {
36
+ true: {
37
+ headerRowCell: string;
38
+ };
39
+ };
40
+ columnsDraggable: {
41
+ true: {
42
+ table: string;
43
+ };
44
+ };
45
+ headerBackground: {
46
+ false: {
47
+ headerRow: string;
48
+ };
49
+ true: {
50
+ headerRow: string;
51
+ };
52
+ };
53
+ stripped: {
54
+ true: {
55
+ headerRow: string;
56
+ bodyRowSkeleton: string;
57
+ bodyRow: string;
58
+ };
59
+ };
60
+ width: {
61
+ fixed: {
62
+ table: string;
63
+ headerRowCell: string;
64
+ };
65
+ auto: {
66
+ table: string;
67
+ };
68
+ };
69
+ dense: {
70
+ true: {
71
+ headerRowCell: string;
72
+ bodyRowSkeletonCell: string;
73
+ bodyRowCell: string;
74
+ };
75
+ false: {
76
+ headerRowCell: string;
77
+ bodyRowSkeletonCell: string;
78
+ bodyRowCell: string;
79
+ };
80
+ };
81
+ columnsPinnable: {
82
+ true: {
83
+ headerRowCell: string;
84
+ };
85
+ false: {};
86
+ };
87
+ headerSticky: {
88
+ true: {
89
+ head: string;
90
+ };
91
+ };
92
+ loadingMode: {
93
+ skeleton: {};
94
+ };
95
+ }, {
96
+ container: string;
97
+ table: string;
98
+ head: string;
99
+ headerRow: string;
100
+ headerRowCell: string;
101
+ headRowCellResize: string;
102
+ rowSpacer: string;
103
+ body: string;
104
+ bodyRowSkeleton: string;
105
+ bodyRowSkeletonCell: string;
106
+ bodyRow: string;
107
+ bodyRowCell: string;
108
+ bodyRowExpanded: string;
109
+ empty: string;
110
+ }, undefined, {
111
+ border: {
112
+ true: {
113
+ container: string;
114
+ };
115
+ };
116
+ headerBorder: {
117
+ true: {
118
+ headerRow: string;
119
+ };
120
+ };
121
+ cellBorder: {
122
+ true: {
123
+ headerRow: string;
124
+ headerRowCell: string;
125
+ bodyRowSkeleton: string;
126
+ bodyRowSkeletonCell: string;
127
+ bodyRow: string;
128
+ bodyRowCell: string;
129
+ };
130
+ };
131
+ rowBorder: {
132
+ true: {
133
+ bodyRowExpanded: string;
134
+ };
135
+ };
136
+ rowRounded: {
137
+ true: {
138
+ body: string;
139
+ };
140
+ };
141
+ columnsResizable: {
142
+ true: {
143
+ headerRowCell: string;
144
+ };
145
+ };
146
+ columnsDraggable: {
147
+ true: {
148
+ table: string;
149
+ };
150
+ };
151
+ headerBackground: {
152
+ false: {
153
+ headerRow: string;
154
+ };
155
+ true: {
156
+ headerRow: string;
157
+ };
158
+ };
159
+ stripped: {
160
+ true: {
161
+ headerRow: string;
162
+ bodyRowSkeleton: string;
163
+ bodyRow: string;
164
+ };
165
+ };
166
+ width: {
167
+ fixed: {
168
+ table: string;
169
+ headerRowCell: string;
170
+ };
171
+ auto: {
172
+ table: string;
173
+ };
174
+ };
175
+ dense: {
176
+ true: {
177
+ headerRowCell: string;
178
+ bodyRowSkeletonCell: string;
179
+ bodyRowCell: string;
180
+ };
181
+ false: {
182
+ headerRowCell: string;
183
+ bodyRowSkeletonCell: string;
184
+ bodyRowCell: string;
185
+ };
186
+ };
187
+ columnsPinnable: {
188
+ true: {
189
+ headerRowCell: string;
190
+ };
191
+ false: {};
192
+ };
193
+ headerSticky: {
194
+ true: {
195
+ head: string;
196
+ };
197
+ };
198
+ loadingMode: {
199
+ skeleton: {};
200
+ };
201
+ }, {
202
+ container: string;
203
+ table: string;
204
+ head: string;
205
+ headerRow: string;
206
+ headerRowCell: string;
207
+ headRowCellResize: string;
208
+ rowSpacer: string;
209
+ body: string;
210
+ bodyRowSkeleton: string;
211
+ bodyRowSkeletonCell: string;
212
+ bodyRow: string;
213
+ bodyRowCell: string;
214
+ bodyRowExpanded: string;
215
+ empty: string;
216
+ }, tailwind_variants.TVReturnType<{
217
+ border: {
218
+ true: {
219
+ container: string;
220
+ };
221
+ };
222
+ headerBorder: {
223
+ true: {
224
+ headerRow: string;
225
+ };
226
+ };
227
+ cellBorder: {
228
+ true: {
229
+ headerRow: string;
230
+ headerRowCell: string;
231
+ bodyRowSkeleton: string;
232
+ bodyRowSkeletonCell: string;
233
+ bodyRow: string;
234
+ bodyRowCell: string;
235
+ };
236
+ };
237
+ rowBorder: {
238
+ true: {
239
+ bodyRowExpanded: string;
240
+ };
241
+ };
242
+ rowRounded: {
243
+ true: {
244
+ body: string;
245
+ };
246
+ };
247
+ columnsResizable: {
248
+ true: {
249
+ headerRowCell: string;
250
+ };
251
+ };
252
+ columnsDraggable: {
253
+ true: {
254
+ table: string;
255
+ };
256
+ };
257
+ headerBackground: {
258
+ false: {
259
+ headerRow: string;
260
+ };
261
+ true: {
262
+ headerRow: string;
263
+ };
264
+ };
265
+ stripped: {
266
+ true: {
267
+ headerRow: string;
268
+ bodyRowSkeleton: string;
269
+ bodyRow: string;
270
+ };
271
+ };
272
+ width: {
273
+ fixed: {
274
+ table: string;
275
+ headerRowCell: string;
276
+ };
277
+ auto: {
278
+ table: string;
279
+ };
280
+ };
281
+ dense: {
282
+ true: {
283
+ headerRowCell: string;
284
+ bodyRowSkeletonCell: string;
285
+ bodyRowCell: string;
286
+ };
287
+ false: {
288
+ headerRowCell: string;
289
+ bodyRowSkeletonCell: string;
290
+ bodyRowCell: string;
291
+ };
292
+ };
293
+ columnsPinnable: {
294
+ true: {
295
+ headerRowCell: string;
296
+ };
297
+ false: {};
298
+ };
299
+ headerSticky: {
300
+ true: {
301
+ head: string;
302
+ };
303
+ };
304
+ loadingMode: {
305
+ skeleton: {};
306
+ };
307
+ }, {
308
+ container: string;
309
+ table: string;
310
+ head: string;
311
+ headerRow: string;
312
+ headerRowCell: string;
313
+ headRowCellResize: string;
314
+ rowSpacer: string;
315
+ body: string;
316
+ bodyRowSkeleton: string;
317
+ bodyRowSkeletonCell: string;
318
+ bodyRow: string;
319
+ bodyRowCell: string;
320
+ bodyRowExpanded: string;
321
+ empty: string;
322
+ }, undefined, unknown, unknown, undefined>>;
323
+ type DataGridVariants = VariantProps<typeof datagrid>;
324
+
325
+ export { type DataGridVariants, datagrid };
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/data-grid.ts
21
+ var data_grid_exports = {};
22
+ __export(data_grid_exports, {
23
+ datagrid: () => datagrid
24
+ });
25
+ module.exports = __toCommonJS(data_grid_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var datagrid = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ container: "grid w-full",
30
+ table: "w-full align-middle caption-bottom text-left rtl:text-right text-foreground font-normal text-sm",
31
+ head: "",
32
+ headerRow: "",
33
+ headerRowCell: "relative h-10 text-left rtl:text-right align-middle font-normal text-secondary-foreground/80 [&:has([role=checkbox])]:pe-0",
34
+ headRowCellResize: "absolute top-0 h-full w-4 cursor-col-resize user-select-none touch-none -end-2 z-10 flex justify-center before:absolute before:w-px before:inset-y-0 before:bg-border before:-translate-x-px",
35
+ rowSpacer: "h-2",
36
+ body: "[&_tr:last-child]:border-0",
37
+ bodyRowSkeleton: "hover:bg-muted/40 data-[state=selected]:bg-muted/50",
38
+ bodyRowSkeletonCell: "align-middle",
39
+ bodyRow: "hover:bg-muted/40 data-[state=selected]:bg-muted/50",
40
+ bodyRowCell: "align-middle",
41
+ bodyRowExpanded: "",
42
+ empty: "text-center text-muted-foreground py-6"
43
+ },
44
+ variants: {
45
+ border: {
46
+ true: {
47
+ container: "border border-border rounded-lg"
48
+ }
49
+ },
50
+ headerBorder: {
51
+ true: {
52
+ headerRow: "[&>th]:border-b"
53
+ }
54
+ },
55
+ cellBorder: {
56
+ true: {
57
+ headerRow: "[&_>:last-child]:border-e-0",
58
+ headerRowCell: "border-e",
59
+ bodyRowSkeleton: "[&_>:last-child]:border-e-0",
60
+ bodyRowSkeletonCell: "border-e",
61
+ bodyRow: "[&_>:last-child]:border-e-0",
62
+ bodyRowCell: "border-e"
63
+ }
64
+ },
65
+ rowBorder: {
66
+ true: {
67
+ bodyRowExpanded: "[&:not(:last-child)>td]:border-b"
68
+ }
69
+ },
70
+ rowRounded: {
71
+ true: {
72
+ body: "[&_td:first-child]:rounded-s-lg [&_td:last-child]:rounded-e-lg"
73
+ }
74
+ },
75
+ columnsResizable: {
76
+ true: {
77
+ headerRowCell: "truncate"
78
+ }
79
+ },
80
+ columnsDraggable: {
81
+ true: {
82
+ table: "border-separate border-spacing-0"
83
+ }
84
+ },
85
+ headerBackground: {
86
+ false: {
87
+ headerRow: "bg-transparent"
88
+ },
89
+ true: {
90
+ headerRow: "bg-muted/40"
91
+ }
92
+ },
93
+ stripped: {
94
+ true: {
95
+ headerRow: "bg-transparent",
96
+ bodyRowSkeleton: "odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted",
97
+ bodyRow: "odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted"
98
+ }
99
+ },
100
+ width: {
101
+ fixed: {
102
+ table: "table-fixed",
103
+ headerRowCell: "w-[var(--size)]"
104
+ },
105
+ auto: {
106
+ table: "table-auto"
107
+ }
108
+ },
109
+ dense: {
110
+ true: {
111
+ headerRowCell: "px-2.5 h-8",
112
+ bodyRowSkeletonCell: "px-2.5 py-2",
113
+ bodyRowCell: "px-2.5 py-2"
114
+ },
115
+ false: {
116
+ headerRowCell: "px-4",
117
+ bodyRowSkeletonCell: "px-4 py-3",
118
+ bodyRowCell: "px-4 py-3"
119
+ }
120
+ },
121
+ columnsPinnable: {
122
+ true: {
123
+ headerRowCell: "[&:not([data-pinned]):has(+[data-pinned])_div.cursor-col-resize:last-child]:opacity-0 [&[data-last-col=left]_div.cursor-col-resize:last-child]:opacity-0 [&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right]:last-child_div.cursor-col-resize:last-child]:opacity-0 [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-muted/90 data-pinned:backdrop-blur-xs"
124
+ },
125
+ false: {}
126
+ },
127
+ headerSticky: {
128
+ true: {
129
+ head: "sticky top-0 z-10 bg-background/90 backdrop-blur-xs"
130
+ }
131
+ },
132
+ loadingMode: {
133
+ skeleton: {}
134
+ }
135
+ },
136
+ compoundVariants: [
137
+ {
138
+ stripped: false,
139
+ rowBorder: true,
140
+ className: {
141
+ bodyRowSkeleton: "border-b border-border [&:not(:last-child)>td]:border-b",
142
+ bodyRow: "border-b border-border [&:not(:last-child)>td]:border-b"
143
+ }
144
+ }
145
+ ],
146
+ defaultVariants: {
147
+ border: true,
148
+ dense: false,
149
+ width: "fixed",
150
+ headerSticky: false,
151
+ headerBorder: true,
152
+ headerBackground: true,
153
+ cellBorder: false,
154
+ stripped: false,
155
+ columnsPinnable: false,
156
+ columnsResizable: false,
157
+ loadingMode: "skeleton",
158
+ rowBorder: true
159
+ }
160
+ });
161
+ // Annotate the CommonJS export names for ESM import in node:
162
+ 0 && (module.exports = {
163
+ datagrid
164
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ datagrid
3
+ } from "../chunk-45KIKY4A.mjs";
4
+ export {
5
+ datagrid
6
+ };
@@ -11,6 +11,7 @@ export { CheckboxVariantProps, checkbox } from './checkbox.mjs';
11
11
  export { ChipSlots, ChipVariantProps, chip } from './chip.mjs';
12
12
  export { CodeVariantProps, code } from './code.mjs';
13
13
  export { CommandVariants, command } from './command.mjs';
14
+ export { DataGridVariants, datagrid } from './data-grid.mjs';
14
15
  export { DataTableVariants, dataTable } from './data-table.mjs';
15
16
  export { DialogSlots, DialogVariantProps, dialog } from './dialog.mjs';
16
17
  export { DrawerVariantProps, drawer } from './drawer.mjs';
@@ -11,6 +11,7 @@ export { CheckboxVariantProps, checkbox } from './checkbox.js';
11
11
  export { ChipSlots, ChipVariantProps, chip } from './chip.js';
12
12
  export { CodeVariantProps, code } from './code.js';
13
13
  export { CommandVariants, command } from './command.js';
14
+ export { DataGridVariants, datagrid } from './data-grid.js';
14
15
  export { DataTableVariants, dataTable } from './data-table.js';
15
16
  export { DialogSlots, DialogVariantProps, dialog } from './dialog.js';
16
17
  export { DrawerVariantProps, drawer } from './drawer.js';