@kopexa/theme 17.1.2 → 17.3.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.
@@ -27,23 +27,22 @@ var import_tailwind_variants = require("tailwind-variants");
27
27
  var card = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
29
  root: [
30
- "flex flex-col relative h-auto outline-hidden box-border",
30
+ "flex flex-col relative h-auto outline-hidden box-border overflow-hidden",
31
31
  "transition-colors duration-200"
32
32
  ],
33
33
  header: [
34
34
  "flex",
35
- "items-center",
35
+ "items-start",
36
36
  "justify-between",
37
- "flex-wrap",
38
- "min-h-14",
39
- "gap-2.5",
40
37
  "w-full",
41
38
  "shrink-0",
42
39
  "overflow-inherit",
43
40
  "color-inherit",
44
41
  "subpixel-antialiased"
45
42
  ],
46
- heading: "space-y-1",
43
+ heading: "space-y-0.5 min-w-0",
44
+ title: "font-semibold truncate",
45
+ subtitle: "text-sm text-muted-foreground line-clamp-2",
47
46
  toolbar: "flex items-center gap-2.5",
48
47
  body: [
49
48
  "grow",
@@ -62,7 +61,6 @@ var card = (0, import_tailwind_variants.tv)({
62
61
  "subpixel-antialiased"
63
62
  ],
64
63
  footer: [
65
- "p-3",
66
64
  "h-auto",
67
65
  "flex",
68
66
  "w-full",
@@ -83,12 +81,12 @@ var card = (0, import_tailwind_variants.tv)({
83
81
  accent: {
84
82
  root: "bg-muted shadow-xs p-1",
85
83
  header: "!border-none",
86
- body: "bg-card rounded-t-xl [&:last-child]:rounded-b-xl"
84
+ body: "bg-card"
87
85
  },
88
86
  destructive: {
89
- root: "bg-destructive/10",
87
+ root: "bg-destructive/10 p-1",
90
88
  header: "!border-none",
91
- body: "bg-card rounded-t-xl [&:last-child]:rounded-b-xl"
89
+ body: "bg-card"
92
90
  }
93
91
  },
94
92
  shadow: {
@@ -119,6 +117,11 @@ var card = (0, import_tailwind_variants.tv)({
119
117
  emphasized: {
120
118
  root: "border-2 border-border",
121
119
  header: "border-b border-border"
120
+ },
121
+ divider: {
122
+ root: "border-0",
123
+ header: "border-b border-border",
124
+ footer: "border-t border-border"
122
125
  }
123
126
  },
124
127
  radius: {
@@ -170,48 +173,42 @@ var card = (0, import_tailwind_variants.tv)({
170
173
  }
171
174
  },
172
175
  bleed: {
173
- none: {},
174
- sm: {
175
- body: "px-2",
176
- header: "px-2",
177
- footer: "px-2"
176
+ none: {
177
+ body: "px-4",
178
+ header: "px-4",
179
+ footer: "px-4"
178
180
  },
179
- md: {
181
+ content: {
180
182
  body: "px-0",
181
- header: "px-0",
182
- footer: "px-0"
183
- },
184
- lg: {
185
- body: "-mx-2",
186
- header: "-mx-2",
187
- footer: "-mx-2"
183
+ header: "px-4",
184
+ footer: "px-4"
188
185
  },
189
- content: {
186
+ full: {
190
187
  body: "px-0",
191
- header: "px-3",
192
- footer: "px-3"
188
+ header: "px-0",
189
+ footer: "px-0"
193
190
  }
194
191
  },
195
192
  spacing: {
196
193
  sm: {
197
- body: "p-2",
198
- header: "p-2",
199
- footer: "p-2"
194
+ body: "py-2",
195
+ header: "py-2 gap-2",
196
+ footer: "py-2"
200
197
  },
201
198
  md: {
202
- body: "p-5",
203
- header: "px-5",
204
- footer: "px-5"
199
+ body: "py-4",
200
+ header: "py-4 gap-3",
201
+ footer: "py-4"
205
202
  },
206
203
  lg: {
207
- body: "p-4",
208
- header: "p-4",
209
- footer: "p-4"
204
+ body: "py-5",
205
+ header: "py-5 gap-4",
206
+ footer: "py-5"
210
207
  },
211
208
  xl: {
212
- body: "p-6",
213
- header: "p-6",
214
- footer: "p-6"
209
+ body: "py-6",
210
+ header: "py-6 gap-5",
211
+ footer: "py-6"
215
212
  }
216
213
  }
217
214
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  card
3
- } from "../chunk-W6VVV2XH.mjs";
3
+ } from "../chunk-5YHTCPJL.mjs";
4
4
  export {
5
5
  card
6
6
  };
@@ -42,20 +42,22 @@ declare const datagrid: tailwind_variants.TVReturnType<{
42
42
  table: string;
43
43
  };
44
44
  };
45
- headerBackground: {
46
- false: {
45
+ headerColor: {
46
+ default: {
47
47
  headerRow: string;
48
48
  };
49
- true: {
49
+ muted: {
50
50
  headerRow: string;
51
51
  };
52
- };
53
- stripped: {
54
- true: {
52
+ primary: {
55
53
  headerRow: string;
56
- bodyRowSkeleton: string;
57
- bodyRow: string;
58
54
  };
55
+ accent: {
56
+ headerRow: string;
57
+ };
58
+ };
59
+ stripped: {
60
+ true: {};
59
61
  };
60
62
  width: {
61
63
  fixed: {
@@ -81,6 +83,8 @@ declare const datagrid: tailwind_variants.TVReturnType<{
81
83
  columnsPinnable: {
82
84
  true: {
83
85
  headerRowCell: string;
86
+ bodyRowCell: string;
87
+ bodyRowSkeletonCell: string;
84
88
  };
85
89
  false: {};
86
90
  };
@@ -148,21 +152,23 @@ declare const datagrid: tailwind_variants.TVReturnType<{
148
152
  table: string;
149
153
  };
150
154
  };
151
- headerBackground: {
152
- false: {
155
+ headerColor: {
156
+ default: {
153
157
  headerRow: string;
154
158
  };
155
- true: {
159
+ muted: {
156
160
  headerRow: string;
157
161
  };
158
- };
159
- stripped: {
160
- true: {
162
+ primary: {
163
+ headerRow: string;
164
+ };
165
+ accent: {
161
166
  headerRow: string;
162
- bodyRowSkeleton: string;
163
- bodyRow: string;
164
167
  };
165
168
  };
169
+ stripped: {
170
+ true: {};
171
+ };
166
172
  width: {
167
173
  fixed: {
168
174
  table: string;
@@ -187,6 +193,8 @@ declare const datagrid: tailwind_variants.TVReturnType<{
187
193
  columnsPinnable: {
188
194
  true: {
189
195
  headerRowCell: string;
196
+ bodyRowCell: string;
197
+ bodyRowSkeletonCell: string;
190
198
  };
191
199
  false: {};
192
200
  };
@@ -254,21 +262,23 @@ declare const datagrid: tailwind_variants.TVReturnType<{
254
262
  table: string;
255
263
  };
256
264
  };
257
- headerBackground: {
258
- false: {
265
+ headerColor: {
266
+ default: {
259
267
  headerRow: string;
260
268
  };
261
- true: {
269
+ muted: {
262
270
  headerRow: string;
263
271
  };
264
- };
265
- stripped: {
266
- true: {
272
+ primary: {
273
+ headerRow: string;
274
+ };
275
+ accent: {
267
276
  headerRow: string;
268
- bodyRowSkeleton: string;
269
- bodyRow: string;
270
277
  };
271
278
  };
279
+ stripped: {
280
+ true: {};
281
+ };
272
282
  width: {
273
283
  fixed: {
274
284
  table: string;
@@ -293,6 +303,8 @@ declare const datagrid: tailwind_variants.TVReturnType<{
293
303
  columnsPinnable: {
294
304
  true: {
295
305
  headerRowCell: string;
306
+ bodyRowCell: string;
307
+ bodyRowSkeletonCell: string;
296
308
  };
297
309
  false: {};
298
310
  };
@@ -42,20 +42,22 @@ declare const datagrid: tailwind_variants.TVReturnType<{
42
42
  table: string;
43
43
  };
44
44
  };
45
- headerBackground: {
46
- false: {
45
+ headerColor: {
46
+ default: {
47
47
  headerRow: string;
48
48
  };
49
- true: {
49
+ muted: {
50
50
  headerRow: string;
51
51
  };
52
- };
53
- stripped: {
54
- true: {
52
+ primary: {
55
53
  headerRow: string;
56
- bodyRowSkeleton: string;
57
- bodyRow: string;
58
54
  };
55
+ accent: {
56
+ headerRow: string;
57
+ };
58
+ };
59
+ stripped: {
60
+ true: {};
59
61
  };
60
62
  width: {
61
63
  fixed: {
@@ -81,6 +83,8 @@ declare const datagrid: tailwind_variants.TVReturnType<{
81
83
  columnsPinnable: {
82
84
  true: {
83
85
  headerRowCell: string;
86
+ bodyRowCell: string;
87
+ bodyRowSkeletonCell: string;
84
88
  };
85
89
  false: {};
86
90
  };
@@ -148,21 +152,23 @@ declare const datagrid: tailwind_variants.TVReturnType<{
148
152
  table: string;
149
153
  };
150
154
  };
151
- headerBackground: {
152
- false: {
155
+ headerColor: {
156
+ default: {
153
157
  headerRow: string;
154
158
  };
155
- true: {
159
+ muted: {
156
160
  headerRow: string;
157
161
  };
158
- };
159
- stripped: {
160
- true: {
162
+ primary: {
163
+ headerRow: string;
164
+ };
165
+ accent: {
161
166
  headerRow: string;
162
- bodyRowSkeleton: string;
163
- bodyRow: string;
164
167
  };
165
168
  };
169
+ stripped: {
170
+ true: {};
171
+ };
166
172
  width: {
167
173
  fixed: {
168
174
  table: string;
@@ -187,6 +193,8 @@ declare const datagrid: tailwind_variants.TVReturnType<{
187
193
  columnsPinnable: {
188
194
  true: {
189
195
  headerRowCell: string;
196
+ bodyRowCell: string;
197
+ bodyRowSkeletonCell: string;
190
198
  };
191
199
  false: {};
192
200
  };
@@ -254,21 +262,23 @@ declare const datagrid: tailwind_variants.TVReturnType<{
254
262
  table: string;
255
263
  };
256
264
  };
257
- headerBackground: {
258
- false: {
265
+ headerColor: {
266
+ default: {
259
267
  headerRow: string;
260
268
  };
261
- true: {
269
+ muted: {
262
270
  headerRow: string;
263
271
  };
264
- };
265
- stripped: {
266
- true: {
272
+ primary: {
273
+ headerRow: string;
274
+ };
275
+ accent: {
267
276
  headerRow: string;
268
- bodyRowSkeleton: string;
269
- bodyRow: string;
270
277
  };
271
278
  };
279
+ stripped: {
280
+ true: {};
281
+ };
272
282
  width: {
273
283
  fixed: {
274
284
  table: string;
@@ -293,6 +303,8 @@ declare const datagrid: tailwind_variants.TVReturnType<{
293
303
  columnsPinnable: {
294
304
  true: {
295
305
  headerRowCell: string;
306
+ bodyRowCell: string;
307
+ bodyRowSkeletonCell: string;
296
308
  };
297
309
  false: {};
298
310
  };
@@ -82,20 +82,22 @@ var datagrid = (0, import_tailwind_variants.tv)({
82
82
  table: "border-separate border-spacing-0"
83
83
  }
84
84
  },
85
- headerBackground: {
86
- false: {
85
+ headerColor: {
86
+ default: {
87
87
  headerRow: "bg-transparent"
88
88
  },
89
- true: {
89
+ muted: {
90
90
  headerRow: "bg-muted/40"
91
+ },
92
+ primary: {
93
+ headerRow: "bg-primary/10"
94
+ },
95
+ accent: {
96
+ headerRow: "bg-accent"
91
97
  }
92
98
  },
93
99
  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
- }
100
+ true: {}
99
101
  },
100
102
  width: {
101
103
  fixed: {
@@ -120,7 +122,9 @@ var datagrid = (0, import_tailwind_variants.tv)({
120
122
  },
121
123
  columnsPinnable: {
122
124
  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"
125
+ 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-background",
126
+ bodyRowCell: "[&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-background",
127
+ bodyRowSkeletonCell: "[&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-background"
124
128
  },
125
129
  false: {}
126
130
  },
@@ -141,6 +145,71 @@ var datagrid = (0, import_tailwind_variants.tv)({
141
145
  bodyRowSkeleton: "border-b border-border [&:not(:last-child)>td]:border-b",
142
146
  bodyRow: "border-b border-border [&:not(:last-child)>td]:border-b"
143
147
  }
148
+ },
149
+ // stripped + headerColor default: odd rows are muted (first data row is muted)
150
+ {
151
+ stripped: true,
152
+ headerColor: "default",
153
+ className: {
154
+ bodyRowSkeleton: "odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted",
155
+ bodyRow: "odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted"
156
+ }
157
+ },
158
+ // stripped + headerColor muted: even rows are muted (header counts as first, so first data row is not muted)
159
+ {
160
+ stripped: true,
161
+ headerColor: "muted",
162
+ className: {
163
+ bodyRowSkeleton: "even:bg-muted/90 hover:bg-transparent even:hover:bg-muted",
164
+ bodyRow: "even:bg-muted/90 hover:bg-transparent even:hover:bg-muted"
165
+ }
166
+ },
167
+ // stripped + headerColor primary: even rows are muted
168
+ {
169
+ stripped: true,
170
+ headerColor: "primary",
171
+ className: {
172
+ bodyRowSkeleton: "even:bg-muted/90 hover:bg-transparent even:hover:bg-muted",
173
+ bodyRow: "even:bg-muted/90 hover:bg-transparent even:hover:bg-muted"
174
+ }
175
+ },
176
+ // stripped + headerColor accent: even rows are muted
177
+ {
178
+ stripped: true,
179
+ headerColor: "accent",
180
+ className: {
181
+ bodyRowSkeleton: "even:bg-muted/90 hover:bg-transparent even:hover:bg-muted",
182
+ bodyRow: "even:bg-muted/90 hover:bg-transparent even:hover:bg-muted"
183
+ }
184
+ },
185
+ // columnsPinnable + headerColor: pinned header cells need matching background
186
+ {
187
+ columnsPinnable: true,
188
+ headerColor: "default",
189
+ className: {
190
+ headerRowCell: "data-pinned:bg-transparent!"
191
+ }
192
+ },
193
+ {
194
+ columnsPinnable: true,
195
+ headerColor: "muted",
196
+ className: {
197
+ headerRowCell: "data-pinned:bg-muted/40!"
198
+ }
199
+ },
200
+ {
201
+ columnsPinnable: true,
202
+ headerColor: "primary",
203
+ className: {
204
+ headerRowCell: "data-pinned:bg-primary/10!"
205
+ }
206
+ },
207
+ {
208
+ columnsPinnable: true,
209
+ headerColor: "accent",
210
+ className: {
211
+ headerRowCell: "data-pinned:bg-accent!"
212
+ }
144
213
  }
145
214
  ],
146
215
  defaultVariants: {
@@ -149,7 +218,7 @@ var datagrid = (0, import_tailwind_variants.tv)({
149
218
  width: "fixed",
150
219
  headerSticky: false,
151
220
  headerBorder: true,
152
- headerBackground: true,
221
+ headerColor: "muted",
153
222
  cellBorder: false,
154
223
  stripped: false,
155
224
  columnsPinnable: false,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  datagrid
3
- } from "../chunk-45KIKY4A.mjs";
3
+ } from "../chunk-Z5W4E7GM.mjs";
4
4
  export {
5
5
  datagrid
6
6
  };