@kopexa/theme 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BIRJNNEY.mjs → chunk-3M5JSM7Y.mjs} +5 -5
- package/dist/chunk-5BIGFSZK.mjs +48 -0
- package/dist/chunk-CDTKWCOH.mjs +120 -0
- package/dist/{chunk-7CM52H5K.mjs → chunk-CQDTDA47.mjs} +1 -1
- package/dist/chunk-GNYTZGE5.mjs +48 -0
- package/dist/chunk-HAVJ6EQ6.mjs +39 -0
- package/dist/{chunk-Z56OSRTC.mjs → chunk-I2NMD23O.mjs} +3 -3
- package/dist/chunk-KPOZFVP6.mjs +13 -0
- package/dist/chunk-NWKBPO37.mjs +21 -0
- package/dist/chunk-VNQEJU4P.mjs +9 -0
- package/dist/components/avatar.js +3 -3
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/button.js +5 -5
- package/dist/components/button.mjs +1 -1
- package/dist/components/checkbox.d.mts +43 -0
- package/dist/components/checkbox.d.ts +43 -0
- package/dist/components/checkbox.js +37 -0
- package/dist/components/checkbox.mjs +6 -0
- package/dist/components/code.d.mts +70 -0
- package/dist/components/code.d.ts +70 -0
- package/dist/components/code.js +120 -0
- package/dist/components/code.mjs +7 -0
- package/dist/components/data-table.d.mts +121 -0
- package/dist/components/data-table.d.ts +121 -0
- package/dist/components/data-table.js +72 -0
- package/dist/components/data-table.mjs +6 -0
- package/dist/components/heading.d.mts +34 -0
- package/dist/components/heading.d.ts +34 -0
- package/dist/components/heading.js +45 -0
- package/dist/components/heading.mjs +6 -0
- package/dist/components/index.d.mts +7 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +317 -30
- package/dist/components/index.mjs +45 -17
- package/dist/components/input.js +1 -1
- package/dist/components/input.mjs +1 -1
- package/dist/components/page-header.d.mts +85 -0
- package/dist/components/page-header.d.ts +85 -0
- package/dist/components/page-header.js +63 -0
- package/dist/components/page-header.mjs +6 -0
- package/dist/components/skeleton.d.mts +5 -0
- package/dist/components/skeleton.d.ts +5 -0
- package/dist/components/skeleton.js +33 -0
- package/dist/components/skeleton.mjs +6 -0
- package/dist/components/table.d.mts +215 -0
- package/dist/components/table.d.ts +215 -0
- package/dist/components/table.js +144 -0
- package/dist/components/table.mjs +6 -0
- package/dist/index.css +131 -26
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +317 -30
- package/dist/index.mjs +45 -17
- package/package.json +3 -3
- /package/dist/{chunk-5EDS3TJU.mjs → chunk-FWB233VZ.mjs} +0 -0
package/dist/index.js
CHANGED
|
@@ -26,16 +26,23 @@ __export(index_exports, {
|
|
|
26
26
|
button: () => button,
|
|
27
27
|
calendar: () => calendar,
|
|
28
28
|
card: () => card,
|
|
29
|
+
checkbox: () => checkbox,
|
|
29
30
|
chip: () => chip,
|
|
31
|
+
code: () => code,
|
|
30
32
|
command: () => command,
|
|
33
|
+
dataTable: () => dataTable,
|
|
31
34
|
dialog: () => dialog,
|
|
32
35
|
drawer: () => drawer,
|
|
33
36
|
dropdownMenu: () => dropdownMenu,
|
|
37
|
+
heading: () => heading,
|
|
34
38
|
input: () => input,
|
|
39
|
+
pageHeader: () => pageHeader,
|
|
35
40
|
pageLayout: () => pageLayout,
|
|
36
41
|
passwordInput: () => passwordInput,
|
|
37
42
|
popover: () => popover,
|
|
43
|
+
skeleton: () => skeleton,
|
|
38
44
|
spinner: () => spinner,
|
|
45
|
+
table: () => table,
|
|
39
46
|
tooltip: () => tooltip
|
|
40
47
|
});
|
|
41
48
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -175,13 +182,13 @@ var avatar = (0, import_tailwind_variants2.tv)({
|
|
|
175
182
|
variants: {
|
|
176
183
|
size: {
|
|
177
184
|
sm: {
|
|
178
|
-
root: "w-8 h-8 text-
|
|
185
|
+
root: "w-8 h-8 text-[11px]"
|
|
179
186
|
},
|
|
180
187
|
md: {
|
|
181
|
-
root: "w-10 h-10 text-
|
|
188
|
+
root: "w-10 h-10 text-[12px]"
|
|
182
189
|
},
|
|
183
190
|
lg: {
|
|
184
|
-
root: "w-14 h-14 text-
|
|
191
|
+
root: "w-14 h-14 text-[14px]"
|
|
185
192
|
}
|
|
186
193
|
},
|
|
187
194
|
color: {
|
|
@@ -329,13 +336,13 @@ var button = (0, import_tailwind_variants4.tv)({
|
|
|
329
336
|
variant: {
|
|
330
337
|
solid: "shadow-xs",
|
|
331
338
|
ghost: "",
|
|
332
|
-
outline: "border-
|
|
339
|
+
outline: "border-1 bg-transparent",
|
|
333
340
|
link: ""
|
|
334
341
|
},
|
|
335
342
|
size: {
|
|
336
|
-
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
337
|
-
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3",
|
|
338
|
-
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4"
|
|
343
|
+
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5 [&_svg]:size-3",
|
|
344
|
+
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3 [&_svg]:size-4",
|
|
345
|
+
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4 [&_svg]:size-4"
|
|
339
346
|
},
|
|
340
347
|
color: {
|
|
341
348
|
primary: "",
|
|
@@ -354,7 +361,7 @@ var button = (0, import_tailwind_variants4.tv)({
|
|
|
354
361
|
}
|
|
355
362
|
},
|
|
356
363
|
defaultVariants: {
|
|
357
|
-
size: "
|
|
364
|
+
size: "sm",
|
|
358
365
|
variant: "solid",
|
|
359
366
|
color: "primary",
|
|
360
367
|
fullWidth: false,
|
|
@@ -630,9 +637,19 @@ var card = (0, import_tailwind_variants6.tv)({
|
|
|
630
637
|
}
|
|
631
638
|
});
|
|
632
639
|
|
|
633
|
-
// src/components/
|
|
640
|
+
// src/components/checkbox.ts
|
|
634
641
|
var import_tailwind_variants7 = require("tailwind-variants");
|
|
635
|
-
var
|
|
642
|
+
var checkbox = (0, import_tailwind_variants7.tv)({
|
|
643
|
+
slots: {
|
|
644
|
+
base: "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
645
|
+
indicator: "flex items-center justify-center text-current transition-none",
|
|
646
|
+
icon: "size-3.5"
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
|
|
650
|
+
// src/components/chip.ts
|
|
651
|
+
var import_tailwind_variants8 = require("tailwind-variants");
|
|
652
|
+
var chip = (0, import_tailwind_variants8.tv)({
|
|
636
653
|
slots: {
|
|
637
654
|
root: [
|
|
638
655
|
"relative",
|
|
@@ -947,9 +964,50 @@ var chip = (0, import_tailwind_variants7.tv)({
|
|
|
947
964
|
]
|
|
948
965
|
});
|
|
949
966
|
|
|
967
|
+
// src/components/code.ts
|
|
968
|
+
var import_tailwind_variants9 = require("tailwind-variants");
|
|
969
|
+
var code = (0, import_tailwind_variants9.tv)({
|
|
970
|
+
base: [
|
|
971
|
+
"px-2",
|
|
972
|
+
"py-1",
|
|
973
|
+
"h-fit",
|
|
974
|
+
"font-mono",
|
|
975
|
+
"font-normal",
|
|
976
|
+
"inline-block",
|
|
977
|
+
"whitespace-nowrap"
|
|
978
|
+
],
|
|
979
|
+
variants: {
|
|
980
|
+
color: {
|
|
981
|
+
default: colorVariants.flat.default,
|
|
982
|
+
primary: colorVariants.flat.primary,
|
|
983
|
+
secondary: colorVariants.flat.secondary,
|
|
984
|
+
success: colorVariants.flat.success,
|
|
985
|
+
warning: colorVariants.flat.warning,
|
|
986
|
+
destructive: colorVariants.flat.destructive
|
|
987
|
+
},
|
|
988
|
+
size: {
|
|
989
|
+
sm: "text-xs",
|
|
990
|
+
md: "text-sm",
|
|
991
|
+
lg: "text-base"
|
|
992
|
+
},
|
|
993
|
+
radius: {
|
|
994
|
+
none: "rounded-none",
|
|
995
|
+
sm: "rounded-sm",
|
|
996
|
+
md: "rounded-md",
|
|
997
|
+
lg: "rounded-lg",
|
|
998
|
+
full: "rounded-full"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
defaultVariants: {
|
|
1002
|
+
color: "default",
|
|
1003
|
+
size: "sm",
|
|
1004
|
+
radius: "sm"
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
|
|
950
1008
|
// src/components/command.ts
|
|
951
|
-
var
|
|
952
|
-
var command = (0,
|
|
1009
|
+
var import_tailwind_variants10 = require("tailwind-variants");
|
|
1010
|
+
var command = (0, import_tailwind_variants10.tv)({
|
|
953
1011
|
slots: {
|
|
954
1012
|
root: "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
955
1013
|
inputWrapper: "flex h-9 items-center gap-2 border-b px-3",
|
|
@@ -967,9 +1025,54 @@ var command = (0, import_tailwind_variants8.tv)({
|
|
|
967
1025
|
}
|
|
968
1026
|
});
|
|
969
1027
|
|
|
1028
|
+
// src/components/data-table.ts
|
|
1029
|
+
var import_tailwind_variants11 = require("tailwind-variants");
|
|
1030
|
+
var dataTable = (0, import_tailwind_variants11.tv)({
|
|
1031
|
+
slots: {
|
|
1032
|
+
base: "relative flex min-h-0 flex-1 flex-col",
|
|
1033
|
+
toolbarWrapper: "flex flex-col gap-2 divide-y pb-2",
|
|
1034
|
+
toolbar: "flex items-center py-4",
|
|
1035
|
+
wrapper: "min-h-0 w-full flex-1 overflow-auto overscroll-none",
|
|
1036
|
+
th: "",
|
|
1037
|
+
td: ""
|
|
1038
|
+
},
|
|
1039
|
+
variants: {
|
|
1040
|
+
isFirstColumn: {
|
|
1041
|
+
true: {
|
|
1042
|
+
th: "after:absolute after:inset-y-0 after:right-0 after:h-full after:w-px after:bg-transparent after:content-['']",
|
|
1043
|
+
td: "after:absolute after:inset-y-0 after:right-0 after:h-full after:w-px after:bg-transparent after:content-['']"
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
showStickyBorder: {
|
|
1047
|
+
true: {
|
|
1048
|
+
th: "after:bg-border",
|
|
1049
|
+
td: "after:bg-border"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
isSelect: {
|
|
1053
|
+
true: {
|
|
1054
|
+
th: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]",
|
|
1055
|
+
td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
isAction: {
|
|
1059
|
+
true: {
|
|
1060
|
+
th: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]",
|
|
1061
|
+
td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
isSticky: {
|
|
1065
|
+
true: {
|
|
1066
|
+
th: "bg-background sticky",
|
|
1067
|
+
td: "bg-background sticky z-[2]"
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
|
|
970
1073
|
// src/components/dialog.ts
|
|
971
|
-
var
|
|
972
|
-
var dialog = (0,
|
|
1074
|
+
var import_tailwind_variants12 = require("tailwind-variants");
|
|
1075
|
+
var dialog = (0, import_tailwind_variants12.tv)({
|
|
973
1076
|
slots: {
|
|
974
1077
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
975
1078
|
content: [
|
|
@@ -1060,8 +1163,8 @@ var dialog = (0, import_tailwind_variants9.tv)({
|
|
|
1060
1163
|
});
|
|
1061
1164
|
|
|
1062
1165
|
// src/components/drawer.ts
|
|
1063
|
-
var
|
|
1064
|
-
var drawer = (0,
|
|
1166
|
+
var import_tailwind_variants13 = require("tailwind-variants");
|
|
1167
|
+
var drawer = (0, import_tailwind_variants13.tv)({
|
|
1065
1168
|
slots: {
|
|
1066
1169
|
overlay: dialog.slots.overlay,
|
|
1067
1170
|
content: [
|
|
@@ -1141,8 +1244,8 @@ var drawer = (0, import_tailwind_variants10.tv)({
|
|
|
1141
1244
|
});
|
|
1142
1245
|
|
|
1143
1246
|
// src/components/dropdown-menu.ts
|
|
1144
|
-
var
|
|
1145
|
-
var dropdownMenu = (0,
|
|
1247
|
+
var import_tailwind_variants14 = require("tailwind-variants");
|
|
1248
|
+
var dropdownMenu = (0, import_tailwind_variants14.tv)({
|
|
1146
1249
|
slots: {
|
|
1147
1250
|
root: "",
|
|
1148
1251
|
content: "min-w-56 bg-popover text-popover-foreground 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) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
@@ -1161,15 +1264,33 @@ var dropdownMenu = (0, import_tailwind_variants11.tv)({
|
|
|
1161
1264
|
}
|
|
1162
1265
|
});
|
|
1163
1266
|
|
|
1267
|
+
// src/components/heading.ts
|
|
1268
|
+
var import_tailwind_variants15 = require("tailwind-variants");
|
|
1269
|
+
var heading = (0, import_tailwind_variants15.tv)({
|
|
1270
|
+
variants: {
|
|
1271
|
+
level: {
|
|
1272
|
+
h1: "text-h1-core",
|
|
1273
|
+
h2: "text-h2-core",
|
|
1274
|
+
h3: "text-h3-core",
|
|
1275
|
+
h4: "text-h4-core",
|
|
1276
|
+
h5: "text-h5-core",
|
|
1277
|
+
h6: "text-h6-core"
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
defaultVariants: {
|
|
1281
|
+
level: "h1"
|
|
1282
|
+
}
|
|
1283
|
+
});
|
|
1284
|
+
|
|
1164
1285
|
// src/components/input.ts
|
|
1165
|
-
var
|
|
1166
|
-
var passwordInput = (0,
|
|
1286
|
+
var import_tailwind_variants16 = require("tailwind-variants");
|
|
1287
|
+
var passwordInput = (0, import_tailwind_variants16.tv)({
|
|
1167
1288
|
slots: {
|
|
1168
1289
|
button: "focus:outline-hidden",
|
|
1169
1290
|
icon: "pointer-events-none text-muted-foreground"
|
|
1170
1291
|
}
|
|
1171
1292
|
});
|
|
1172
|
-
var input = (0,
|
|
1293
|
+
var input = (0, import_tailwind_variants16.tv)({
|
|
1173
1294
|
base: [],
|
|
1174
1295
|
slots: {
|
|
1175
1296
|
inputWrapper: [
|
|
@@ -1245,13 +1366,49 @@ var input = (0, import_tailwind_variants12.tv)({
|
|
|
1245
1366
|
}
|
|
1246
1367
|
},
|
|
1247
1368
|
defaultVariants: {
|
|
1248
|
-
size: "
|
|
1369
|
+
size: "sm"
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
|
|
1373
|
+
// src/components/page-header.ts
|
|
1374
|
+
var import_tailwind_variants17 = require("tailwind-variants");
|
|
1375
|
+
var pageHeader = (0, import_tailwind_variants17.tv)({
|
|
1376
|
+
slots: {
|
|
1377
|
+
root: "page-header",
|
|
1378
|
+
titleArea: "page-header__title-area flex gap-2 flex-row items-center",
|
|
1379
|
+
title: "page-header__title block",
|
|
1380
|
+
contextArea: [
|
|
1381
|
+
"page-header__context-area",
|
|
1382
|
+
"flex",
|
|
1383
|
+
"pb-2",
|
|
1384
|
+
"text-sm",
|
|
1385
|
+
"flex-row",
|
|
1386
|
+
"gap-2"
|
|
1387
|
+
],
|
|
1388
|
+
leadingVisual: "page-header__leading-visual flex items-center [&_svg]:size-4",
|
|
1389
|
+
leadingAction: "page-header__leading-action",
|
|
1390
|
+
breadcrumbs: ["page-header__breadcrumbs", "flex pe-2 items-center"],
|
|
1391
|
+
actions: [
|
|
1392
|
+
"page-header__actions",
|
|
1393
|
+
"flex",
|
|
1394
|
+
"flex-row",
|
|
1395
|
+
"gap-2",
|
|
1396
|
+
"justify-end",
|
|
1397
|
+
"items-start",
|
|
1398
|
+
"min-w-max",
|
|
1399
|
+
"ps-2"
|
|
1400
|
+
],
|
|
1401
|
+
description: [
|
|
1402
|
+
"page-header__description",
|
|
1403
|
+
"flex flex-row items-center gap-2 pt-2 text-sm font-normal leading-normal"
|
|
1404
|
+
],
|
|
1405
|
+
navigation: ["page-header__navigation", "block pt-2 text-sm fonr-normal"]
|
|
1249
1406
|
}
|
|
1250
1407
|
});
|
|
1251
1408
|
|
|
1252
1409
|
// src/components/page-layout.ts
|
|
1253
|
-
var
|
|
1254
|
-
var pageLayout = (0,
|
|
1410
|
+
var import_tailwind_variants18 = require("tailwind-variants");
|
|
1411
|
+
var pageLayout = (0, import_tailwind_variants18.tv)({
|
|
1255
1412
|
slots: {
|
|
1256
1413
|
root: "",
|
|
1257
1414
|
wrapper: "flex mx-auto flex-wrap",
|
|
@@ -1348,8 +1505,8 @@ var pageLayout = (0, import_tailwind_variants13.tv)({
|
|
|
1348
1505
|
});
|
|
1349
1506
|
|
|
1350
1507
|
// src/components/popover.ts
|
|
1351
|
-
var
|
|
1352
|
-
var popover = (0,
|
|
1508
|
+
var import_tailwind_variants19 = require("tailwind-variants");
|
|
1509
|
+
var popover = (0, import_tailwind_variants19.tv)({
|
|
1353
1510
|
slots: {
|
|
1354
1511
|
content: [
|
|
1355
1512
|
"bg-popover text-popover-foreground z-50 w-72",
|
|
@@ -1359,9 +1516,15 @@ var popover = (0, import_tailwind_variants14.tv)({
|
|
|
1359
1516
|
}
|
|
1360
1517
|
});
|
|
1361
1518
|
|
|
1519
|
+
// src/components/skeleton.ts
|
|
1520
|
+
var import_tailwind_variants20 = require("tailwind-variants");
|
|
1521
|
+
var skeleton = (0, import_tailwind_variants20.tv)({
|
|
1522
|
+
base: "bg-accent animate-pulse rounded-md"
|
|
1523
|
+
});
|
|
1524
|
+
|
|
1362
1525
|
// src/components/spinner.ts
|
|
1363
|
-
var
|
|
1364
|
-
var spinner = (0,
|
|
1526
|
+
var import_tailwind_variants21 = require("tailwind-variants");
|
|
1527
|
+
var spinner = (0, import_tailwind_variants21.tv)({
|
|
1365
1528
|
slots: {
|
|
1366
1529
|
base: "relative inline-flex flex-col gap-2 items-center justify-center",
|
|
1367
1530
|
wrapper: "relative flex",
|
|
@@ -1477,9 +1640,126 @@ var spinner = (0, import_tailwind_variants15.tv)({
|
|
|
1477
1640
|
}
|
|
1478
1641
|
});
|
|
1479
1642
|
|
|
1643
|
+
// src/components/table.ts
|
|
1644
|
+
var import_tailwind_variants22 = require("tailwind-variants");
|
|
1645
|
+
var table = (0, import_tailwind_variants22.tv)({
|
|
1646
|
+
slots: {
|
|
1647
|
+
table: "min-w-full h-auto",
|
|
1648
|
+
thead: "",
|
|
1649
|
+
tbody: "after:block divide-y",
|
|
1650
|
+
tr: [
|
|
1651
|
+
"group/tr outline-hidden",
|
|
1652
|
+
"[&_td:last-child]:pr-4 [&_th:last-child]:pr-4",
|
|
1653
|
+
"[&_td:first-child]:pl-4 [&_th:first-child]:pl-4"
|
|
1654
|
+
],
|
|
1655
|
+
th: [
|
|
1656
|
+
"group/th px-3 py-3.5 text-start text-xs font-semibold whitespace-normal",
|
|
1657
|
+
"text-foreground border-b"
|
|
1658
|
+
],
|
|
1659
|
+
td: [
|
|
1660
|
+
"py-2 px-3 text-xs font-normal whitespace-normal relative",
|
|
1661
|
+
"[&>*]:z-[1]",
|
|
1662
|
+
"[&>*]:relative",
|
|
1663
|
+
// after content for selection
|
|
1664
|
+
"after:pointer-events-none",
|
|
1665
|
+
"after:content-['']",
|
|
1666
|
+
"after:absolute",
|
|
1667
|
+
"after:-z-[1]",
|
|
1668
|
+
"after:inset-0",
|
|
1669
|
+
"after:opacity-0",
|
|
1670
|
+
"group-aria-[selected=true]/tr:after:opacity-100",
|
|
1671
|
+
// before content for selection
|
|
1672
|
+
"before:pointer-events-none",
|
|
1673
|
+
"before:content-['']",
|
|
1674
|
+
"before:absolute",
|
|
1675
|
+
"before:-z-[1]",
|
|
1676
|
+
"before:inset-y-0",
|
|
1677
|
+
"before:start-0",
|
|
1678
|
+
"before:w-0.5",
|
|
1679
|
+
"before:opacity-0",
|
|
1680
|
+
"group-aria-[selected=true]/tr:first:before:opacity-100"
|
|
1681
|
+
]
|
|
1682
|
+
},
|
|
1683
|
+
variants: {
|
|
1684
|
+
overscroll: {
|
|
1685
|
+
horizontal: {
|
|
1686
|
+
th: "whitespace-nowrap",
|
|
1687
|
+
td: "whitespace-nowrap"
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
color: {
|
|
1691
|
+
default: {
|
|
1692
|
+
td: [
|
|
1693
|
+
"first:before:bg-primary group-aria-[selected=true]/tr:text-accent-foreground"
|
|
1694
|
+
]
|
|
1695
|
+
},
|
|
1696
|
+
primary: {
|
|
1697
|
+
td: [
|
|
1698
|
+
"before:bg-primary group-aria-[selected=true]/tr:text-primary dark:group-aria-[selected=true]/tr:text-primary-foreground",
|
|
1699
|
+
"after:bg-primary/10 dark:after:bg-primary/20"
|
|
1700
|
+
]
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
layout: {
|
|
1704
|
+
auto: {
|
|
1705
|
+
table: "table-auto"
|
|
1706
|
+
},
|
|
1707
|
+
fixed: {
|
|
1708
|
+
table: "table-fixed"
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
isSelectable: {
|
|
1712
|
+
true: {
|
|
1713
|
+
tr: "cursor-default",
|
|
1714
|
+
td: [
|
|
1715
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:bg-muted/30"
|
|
1716
|
+
]
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
hasSelect: {
|
|
1720
|
+
true: {
|
|
1721
|
+
tr: "[&_th:first-of-type]:w-[1%] [&_th:first-of-type]:whitespace-nowrap"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
hasActions: {
|
|
1725
|
+
true: {
|
|
1726
|
+
tr: "[&_th:last-of-type]:w-[1%] [&_th:last-of-type]:whitespace-nowrap"
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
isStickyCell: {
|
|
1730
|
+
true: {
|
|
1731
|
+
th: "sticky bg-background z-[2]",
|
|
1732
|
+
td: "sticky h-full bg-background z-[2]"
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
isSelectCell: {
|
|
1736
|
+
true: {
|
|
1737
|
+
td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
isActionCell: {
|
|
1741
|
+
true: {
|
|
1742
|
+
td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
fullWidth: {
|
|
1746
|
+
true: {
|
|
1747
|
+
base: "w-full",
|
|
1748
|
+
wrapper: "w-full",
|
|
1749
|
+
table: "w-full"
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1753
|
+
defaultVariants: {
|
|
1754
|
+
layout: "auto",
|
|
1755
|
+
color: "default",
|
|
1756
|
+
fullWidth: true
|
|
1757
|
+
}
|
|
1758
|
+
});
|
|
1759
|
+
|
|
1480
1760
|
// src/components/tooltip.ts
|
|
1481
|
-
var
|
|
1482
|
-
var tooltip = (0,
|
|
1761
|
+
var import_tailwind_variants23 = require("tailwind-variants");
|
|
1762
|
+
var tooltip = (0, import_tailwind_variants23.tv)({
|
|
1483
1763
|
slots: {
|
|
1484
1764
|
content: [
|
|
1485
1765
|
"bg-primary text-primary-foreground",
|
|
@@ -1497,15 +1777,22 @@ var tooltip = (0, import_tailwind_variants16.tv)({
|
|
|
1497
1777
|
button,
|
|
1498
1778
|
calendar,
|
|
1499
1779
|
card,
|
|
1780
|
+
checkbox,
|
|
1500
1781
|
chip,
|
|
1782
|
+
code,
|
|
1501
1783
|
command,
|
|
1784
|
+
dataTable,
|
|
1502
1785
|
dialog,
|
|
1503
1786
|
drawer,
|
|
1504
1787
|
dropdownMenu,
|
|
1788
|
+
heading,
|
|
1505
1789
|
input,
|
|
1790
|
+
pageHeader,
|
|
1506
1791
|
pageLayout,
|
|
1507
1792
|
passwordInput,
|
|
1508
1793
|
popover,
|
|
1794
|
+
skeleton,
|
|
1509
1795
|
spinner,
|
|
1796
|
+
table,
|
|
1510
1797
|
tooltip
|
|
1511
1798
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,42 @@
|
|
|
1
1
|
import "./chunk-XSN6P5JL.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-FWB233VZ.mjs";
|
|
3
|
+
import {
|
|
4
|
+
tooltip
|
|
5
|
+
} from "./chunk-SVCFD7RR.mjs";
|
|
6
|
+
import {
|
|
7
|
+
input,
|
|
8
|
+
passwordInput
|
|
9
|
+
} from "./chunk-CQDTDA47.mjs";
|
|
10
|
+
import {
|
|
11
|
+
pageHeader
|
|
12
|
+
} from "./chunk-HAVJ6EQ6.mjs";
|
|
13
|
+
import {
|
|
14
|
+
pageLayout
|
|
15
|
+
} from "./chunk-GQV7INYX.mjs";
|
|
16
|
+
import {
|
|
17
|
+
popover
|
|
18
|
+
} from "./chunk-J35D7RWA.mjs";
|
|
19
|
+
import {
|
|
20
|
+
skeleton
|
|
21
|
+
} from "./chunk-VNQEJU4P.mjs";
|
|
3
22
|
import {
|
|
4
23
|
spinner
|
|
5
24
|
} from "./chunk-4UDOCFU5.mjs";
|
|
6
25
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunk-
|
|
26
|
+
table
|
|
27
|
+
} from "./chunk-CDTKWCOH.mjs";
|
|
28
|
+
import {
|
|
29
|
+
chip
|
|
30
|
+
} from "./chunk-32L6KXLV.mjs";
|
|
31
|
+
import {
|
|
32
|
+
code
|
|
33
|
+
} from "./chunk-5BIGFSZK.mjs";
|
|
9
34
|
import {
|
|
10
35
|
command
|
|
11
36
|
} from "./chunk-YPHFKGNI.mjs";
|
|
37
|
+
import {
|
|
38
|
+
dataTable
|
|
39
|
+
} from "./chunk-GNYTZGE5.mjs";
|
|
12
40
|
import {
|
|
13
41
|
drawer
|
|
14
42
|
} from "./chunk-UI2M2MFB.mjs";
|
|
@@ -19,15 +47,8 @@ import {
|
|
|
19
47
|
dropdownMenu
|
|
20
48
|
} from "./chunk-EXBKQDH5.mjs";
|
|
21
49
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./chunk-7CM52H5K.mjs";
|
|
25
|
-
import {
|
|
26
|
-
pageLayout
|
|
27
|
-
} from "./chunk-GQV7INYX.mjs";
|
|
28
|
-
import {
|
|
29
|
-
popover
|
|
30
|
-
} from "./chunk-J35D7RWA.mjs";
|
|
50
|
+
heading
|
|
51
|
+
} from "./chunk-NWKBPO37.mjs";
|
|
31
52
|
import {
|
|
32
53
|
alertDialog
|
|
33
54
|
} from "./chunk-CPEP2RO4.mjs";
|
|
@@ -36,11 +57,12 @@ import {
|
|
|
36
57
|
} from "./chunk-XCLEKBCJ.mjs";
|
|
37
58
|
import {
|
|
38
59
|
avatar
|
|
39
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-I2NMD23O.mjs";
|
|
40
61
|
import {
|
|
41
62
|
button
|
|
42
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-3M5JSM7Y.mjs";
|
|
43
64
|
import "./chunk-25L2JS6A.mjs";
|
|
65
|
+
import "./chunk-67PPUTSS.mjs";
|
|
44
66
|
import {
|
|
45
67
|
calendar
|
|
46
68
|
} from "./chunk-JWF5ABNP.mjs";
|
|
@@ -48,9 +70,8 @@ import {
|
|
|
48
70
|
card
|
|
49
71
|
} from "./chunk-4VKJFW6Y.mjs";
|
|
50
72
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-67PPUTSS.mjs";
|
|
73
|
+
checkbox
|
|
74
|
+
} from "./chunk-KPOZFVP6.mjs";
|
|
54
75
|
export {
|
|
55
76
|
alertDialog,
|
|
56
77
|
avatar,
|
|
@@ -58,15 +79,22 @@ export {
|
|
|
58
79
|
button,
|
|
59
80
|
calendar,
|
|
60
81
|
card,
|
|
82
|
+
checkbox,
|
|
61
83
|
chip,
|
|
84
|
+
code,
|
|
62
85
|
command,
|
|
86
|
+
dataTable,
|
|
63
87
|
dialog,
|
|
64
88
|
drawer,
|
|
65
89
|
dropdownMenu,
|
|
90
|
+
heading,
|
|
66
91
|
input,
|
|
92
|
+
pageHeader,
|
|
67
93
|
pageLayout,
|
|
68
94
|
passwordInput,
|
|
69
95
|
popover,
|
|
96
|
+
skeleton,
|
|
70
97
|
spinner,
|
|
98
|
+
table,
|
|
71
99
|
tooltip
|
|
72
100
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/theme",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "The default theme for Kopexa components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"flat": "^6.0.1",
|
|
45
45
|
"tailwind-merge": "3.3.1",
|
|
46
46
|
"tailwind-variants": "1.0.0",
|
|
47
|
-
"tw-animate-css": "^1.3.
|
|
48
|
-
"@kopexa/shared-utils": "1.1.
|
|
47
|
+
"tw-animate-css": "^1.3.6",
|
|
48
|
+
"@kopexa/shared-utils": "1.1.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"tailwindcss": ">=4.0.0"
|
|
File without changes
|