@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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const code: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
default: string;
|
|
7
|
+
primary: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
success: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
destructive: string;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
sm: string;
|
|
15
|
+
md: string;
|
|
16
|
+
lg: string;
|
|
17
|
+
};
|
|
18
|
+
radius: {
|
|
19
|
+
none: string;
|
|
20
|
+
sm: string;
|
|
21
|
+
md: string;
|
|
22
|
+
lg: string;
|
|
23
|
+
full: string;
|
|
24
|
+
};
|
|
25
|
+
}, undefined, string[], {
|
|
26
|
+
color: {
|
|
27
|
+
default: string;
|
|
28
|
+
primary: string;
|
|
29
|
+
secondary: string;
|
|
30
|
+
success: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
destructive: string;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
sm: string;
|
|
36
|
+
md: string;
|
|
37
|
+
lg: string;
|
|
38
|
+
};
|
|
39
|
+
radius: {
|
|
40
|
+
none: string;
|
|
41
|
+
sm: string;
|
|
42
|
+
md: string;
|
|
43
|
+
lg: string;
|
|
44
|
+
full: string;
|
|
45
|
+
};
|
|
46
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
47
|
+
color: {
|
|
48
|
+
default: string;
|
|
49
|
+
primary: string;
|
|
50
|
+
secondary: string;
|
|
51
|
+
success: string;
|
|
52
|
+
warning: string;
|
|
53
|
+
destructive: string;
|
|
54
|
+
};
|
|
55
|
+
size: {
|
|
56
|
+
sm: string;
|
|
57
|
+
md: string;
|
|
58
|
+
lg: string;
|
|
59
|
+
};
|
|
60
|
+
radius: {
|
|
61
|
+
none: string;
|
|
62
|
+
sm: string;
|
|
63
|
+
md: string;
|
|
64
|
+
lg: string;
|
|
65
|
+
full: string;
|
|
66
|
+
};
|
|
67
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
68
|
+
type CodeVariantProps = VariantProps<typeof code>;
|
|
69
|
+
|
|
70
|
+
export { type CodeVariantProps, code };
|
|
@@ -0,0 +1,120 @@
|
|
|
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/code.ts
|
|
21
|
+
var code_exports = {};
|
|
22
|
+
__export(code_exports, {
|
|
23
|
+
code: () => code
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(code_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/utils/variants.ts
|
|
29
|
+
var solid = {
|
|
30
|
+
default: "bg-accent text-accent-foreground",
|
|
31
|
+
primary: "bg-primary text-primary-foreground",
|
|
32
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
33
|
+
destructive: "bg-destructive text-destructive-foreground",
|
|
34
|
+
warning: "bg-warning text-warning-foreground",
|
|
35
|
+
success: "bg-success text-success-foreground"
|
|
36
|
+
};
|
|
37
|
+
var outline = {
|
|
38
|
+
default: "bg-transparent border border-accent text-accent-foreground",
|
|
39
|
+
primary: "bg-transparent border-primary text-primary",
|
|
40
|
+
secondary: "bg-transparent border-secondary text-secondary-foreground",
|
|
41
|
+
destructive: "bg-transparent border-destructive text-destructive",
|
|
42
|
+
warning: "bg-transparent border-warning text-warning",
|
|
43
|
+
success: "bg-transparent border-success text-success"
|
|
44
|
+
};
|
|
45
|
+
var flat = {
|
|
46
|
+
default: "bg-accent/40 text-accent-700",
|
|
47
|
+
primary: "bg-primary/20 text-primary-600",
|
|
48
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
49
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
50
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
51
|
+
destructive: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
52
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
53
|
+
};
|
|
54
|
+
var faded = {
|
|
55
|
+
default: "border-default bg-accent/30 text-default-foreground",
|
|
56
|
+
primary: "border-default bg-accent/30 text-primary",
|
|
57
|
+
secondary: "border-default bg-accent/30 text-secondary-foreground",
|
|
58
|
+
success: "border-default bg-accent/30 text-success",
|
|
59
|
+
warning: "border-default bg-accent/30 text-warning",
|
|
60
|
+
destructive: "border-default bg-accent/30 text-danger",
|
|
61
|
+
foreground: "border-default bg-accent/30 text-foreground"
|
|
62
|
+
};
|
|
63
|
+
var ghost = {
|
|
64
|
+
primary: "bg-transparent text-primary",
|
|
65
|
+
secondary: "bg-transparent text-secondary",
|
|
66
|
+
destructive: "bg-transparent text-destructive",
|
|
67
|
+
warning: "bg-transparent text-warning",
|
|
68
|
+
success: "bg-transparent text-success"
|
|
69
|
+
};
|
|
70
|
+
var colorVariants = {
|
|
71
|
+
solid,
|
|
72
|
+
ghost,
|
|
73
|
+
outline,
|
|
74
|
+
flat,
|
|
75
|
+
faded
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// src/components/code.ts
|
|
79
|
+
var code = (0, import_tailwind_variants.tv)({
|
|
80
|
+
base: [
|
|
81
|
+
"px-2",
|
|
82
|
+
"py-1",
|
|
83
|
+
"h-fit",
|
|
84
|
+
"font-mono",
|
|
85
|
+
"font-normal",
|
|
86
|
+
"inline-block",
|
|
87
|
+
"whitespace-nowrap"
|
|
88
|
+
],
|
|
89
|
+
variants: {
|
|
90
|
+
color: {
|
|
91
|
+
default: colorVariants.flat.default,
|
|
92
|
+
primary: colorVariants.flat.primary,
|
|
93
|
+
secondary: colorVariants.flat.secondary,
|
|
94
|
+
success: colorVariants.flat.success,
|
|
95
|
+
warning: colorVariants.flat.warning,
|
|
96
|
+
destructive: colorVariants.flat.destructive
|
|
97
|
+
},
|
|
98
|
+
size: {
|
|
99
|
+
sm: "text-xs",
|
|
100
|
+
md: "text-sm",
|
|
101
|
+
lg: "text-base"
|
|
102
|
+
},
|
|
103
|
+
radius: {
|
|
104
|
+
none: "rounded-none",
|
|
105
|
+
sm: "rounded-sm",
|
|
106
|
+
md: "rounded-md",
|
|
107
|
+
lg: "rounded-lg",
|
|
108
|
+
full: "rounded-full"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
defaultVariants: {
|
|
112
|
+
color: "default",
|
|
113
|
+
size: "sm",
|
|
114
|
+
radius: "sm"
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
+
0 && (module.exports = {
|
|
119
|
+
code
|
|
120
|
+
});
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const dataTable: tailwind_variants.TVReturnType<{
|
|
5
|
+
isFirstColumn: {
|
|
6
|
+
true: {
|
|
7
|
+
th: string;
|
|
8
|
+
td: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
showStickyBorder: {
|
|
12
|
+
true: {
|
|
13
|
+
th: string;
|
|
14
|
+
td: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
isSelect: {
|
|
18
|
+
true: {
|
|
19
|
+
th: string;
|
|
20
|
+
td: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
isAction: {
|
|
24
|
+
true: {
|
|
25
|
+
th: string;
|
|
26
|
+
td: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
isSticky: {
|
|
30
|
+
true: {
|
|
31
|
+
th: string;
|
|
32
|
+
td: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
base: string;
|
|
37
|
+
toolbarWrapper: string;
|
|
38
|
+
toolbar: string;
|
|
39
|
+
wrapper: string;
|
|
40
|
+
th: string;
|
|
41
|
+
td: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
isFirstColumn: {
|
|
44
|
+
true: {
|
|
45
|
+
th: string;
|
|
46
|
+
td: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
showStickyBorder: {
|
|
50
|
+
true: {
|
|
51
|
+
th: string;
|
|
52
|
+
td: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
isSelect: {
|
|
56
|
+
true: {
|
|
57
|
+
th: string;
|
|
58
|
+
td: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
isAction: {
|
|
62
|
+
true: {
|
|
63
|
+
th: string;
|
|
64
|
+
td: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
isSticky: {
|
|
68
|
+
true: {
|
|
69
|
+
th: string;
|
|
70
|
+
td: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
base: string;
|
|
75
|
+
toolbarWrapper: string;
|
|
76
|
+
toolbar: string;
|
|
77
|
+
wrapper: string;
|
|
78
|
+
th: string;
|
|
79
|
+
td: string;
|
|
80
|
+
}, tailwind_variants.TVReturnType<{
|
|
81
|
+
isFirstColumn: {
|
|
82
|
+
true: {
|
|
83
|
+
th: string;
|
|
84
|
+
td: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
showStickyBorder: {
|
|
88
|
+
true: {
|
|
89
|
+
th: string;
|
|
90
|
+
td: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
isSelect: {
|
|
94
|
+
true: {
|
|
95
|
+
th: string;
|
|
96
|
+
td: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
isAction: {
|
|
100
|
+
true: {
|
|
101
|
+
th: string;
|
|
102
|
+
td: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
isSticky: {
|
|
106
|
+
true: {
|
|
107
|
+
th: string;
|
|
108
|
+
td: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
base: string;
|
|
113
|
+
toolbarWrapper: string;
|
|
114
|
+
toolbar: string;
|
|
115
|
+
wrapper: string;
|
|
116
|
+
th: string;
|
|
117
|
+
td: string;
|
|
118
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
119
|
+
type DataTableVariants = VariantProps<typeof dataTable>;
|
|
120
|
+
|
|
121
|
+
export { type DataTableVariants, dataTable };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const dataTable: tailwind_variants.TVReturnType<{
|
|
5
|
+
isFirstColumn: {
|
|
6
|
+
true: {
|
|
7
|
+
th: string;
|
|
8
|
+
td: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
showStickyBorder: {
|
|
12
|
+
true: {
|
|
13
|
+
th: string;
|
|
14
|
+
td: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
isSelect: {
|
|
18
|
+
true: {
|
|
19
|
+
th: string;
|
|
20
|
+
td: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
isAction: {
|
|
24
|
+
true: {
|
|
25
|
+
th: string;
|
|
26
|
+
td: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
isSticky: {
|
|
30
|
+
true: {
|
|
31
|
+
th: string;
|
|
32
|
+
td: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
base: string;
|
|
37
|
+
toolbarWrapper: string;
|
|
38
|
+
toolbar: string;
|
|
39
|
+
wrapper: string;
|
|
40
|
+
th: string;
|
|
41
|
+
td: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
isFirstColumn: {
|
|
44
|
+
true: {
|
|
45
|
+
th: string;
|
|
46
|
+
td: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
showStickyBorder: {
|
|
50
|
+
true: {
|
|
51
|
+
th: string;
|
|
52
|
+
td: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
isSelect: {
|
|
56
|
+
true: {
|
|
57
|
+
th: string;
|
|
58
|
+
td: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
isAction: {
|
|
62
|
+
true: {
|
|
63
|
+
th: string;
|
|
64
|
+
td: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
isSticky: {
|
|
68
|
+
true: {
|
|
69
|
+
th: string;
|
|
70
|
+
td: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
base: string;
|
|
75
|
+
toolbarWrapper: string;
|
|
76
|
+
toolbar: string;
|
|
77
|
+
wrapper: string;
|
|
78
|
+
th: string;
|
|
79
|
+
td: string;
|
|
80
|
+
}, tailwind_variants.TVReturnType<{
|
|
81
|
+
isFirstColumn: {
|
|
82
|
+
true: {
|
|
83
|
+
th: string;
|
|
84
|
+
td: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
showStickyBorder: {
|
|
88
|
+
true: {
|
|
89
|
+
th: string;
|
|
90
|
+
td: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
isSelect: {
|
|
94
|
+
true: {
|
|
95
|
+
th: string;
|
|
96
|
+
td: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
isAction: {
|
|
100
|
+
true: {
|
|
101
|
+
th: string;
|
|
102
|
+
td: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
isSticky: {
|
|
106
|
+
true: {
|
|
107
|
+
th: string;
|
|
108
|
+
td: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
base: string;
|
|
113
|
+
toolbarWrapper: string;
|
|
114
|
+
toolbar: string;
|
|
115
|
+
wrapper: string;
|
|
116
|
+
th: string;
|
|
117
|
+
td: string;
|
|
118
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
119
|
+
type DataTableVariants = VariantProps<typeof dataTable>;
|
|
120
|
+
|
|
121
|
+
export { type DataTableVariants, dataTable };
|
|
@@ -0,0 +1,72 @@
|
|
|
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-table.ts
|
|
21
|
+
var data_table_exports = {};
|
|
22
|
+
__export(data_table_exports, {
|
|
23
|
+
dataTable: () => dataTable
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(data_table_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var dataTable = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: "relative flex min-h-0 flex-1 flex-col",
|
|
30
|
+
toolbarWrapper: "flex flex-col gap-2 divide-y pb-2",
|
|
31
|
+
toolbar: "flex items-center py-4",
|
|
32
|
+
wrapper: "min-h-0 w-full flex-1 overflow-auto overscroll-none",
|
|
33
|
+
th: "",
|
|
34
|
+
td: ""
|
|
35
|
+
},
|
|
36
|
+
variants: {
|
|
37
|
+
isFirstColumn: {
|
|
38
|
+
true: {
|
|
39
|
+
th: "after:absolute after:inset-y-0 after:right-0 after:h-full after:w-px after:bg-transparent after:content-['']",
|
|
40
|
+
td: "after:absolute after:inset-y-0 after:right-0 after:h-full after:w-px after:bg-transparent after:content-['']"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
showStickyBorder: {
|
|
44
|
+
true: {
|
|
45
|
+
th: "after:bg-border",
|
|
46
|
+
td: "after:bg-border"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
isSelect: {
|
|
50
|
+
true: {
|
|
51
|
+
th: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]",
|
|
52
|
+
td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
isAction: {
|
|
56
|
+
true: {
|
|
57
|
+
th: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]",
|
|
58
|
+
td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
isSticky: {
|
|
62
|
+
true: {
|
|
63
|
+
th: "bg-background sticky",
|
|
64
|
+
td: "bg-background sticky z-[2]"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
+
0 && (module.exports = {
|
|
71
|
+
dataTable
|
|
72
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const heading: tailwind_variants.TVReturnType<{
|
|
5
|
+
level: {
|
|
6
|
+
h1: string;
|
|
7
|
+
h2: string;
|
|
8
|
+
h3: string;
|
|
9
|
+
h4: string;
|
|
10
|
+
h5: string;
|
|
11
|
+
h6: string;
|
|
12
|
+
};
|
|
13
|
+
}, undefined, undefined, {
|
|
14
|
+
level: {
|
|
15
|
+
h1: string;
|
|
16
|
+
h2: string;
|
|
17
|
+
h3: string;
|
|
18
|
+
h4: string;
|
|
19
|
+
h5: string;
|
|
20
|
+
h6: string;
|
|
21
|
+
};
|
|
22
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
23
|
+
level: {
|
|
24
|
+
h1: string;
|
|
25
|
+
h2: string;
|
|
26
|
+
h3: string;
|
|
27
|
+
h4: string;
|
|
28
|
+
h5: string;
|
|
29
|
+
h6: string;
|
|
30
|
+
};
|
|
31
|
+
}, undefined, undefined, unknown, unknown, undefined>>;
|
|
32
|
+
type HeadingVariantProps = VariantProps<typeof heading>;
|
|
33
|
+
|
|
34
|
+
export { type HeadingVariantProps, heading };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const heading: tailwind_variants.TVReturnType<{
|
|
5
|
+
level: {
|
|
6
|
+
h1: string;
|
|
7
|
+
h2: string;
|
|
8
|
+
h3: string;
|
|
9
|
+
h4: string;
|
|
10
|
+
h5: string;
|
|
11
|
+
h6: string;
|
|
12
|
+
};
|
|
13
|
+
}, undefined, undefined, {
|
|
14
|
+
level: {
|
|
15
|
+
h1: string;
|
|
16
|
+
h2: string;
|
|
17
|
+
h3: string;
|
|
18
|
+
h4: string;
|
|
19
|
+
h5: string;
|
|
20
|
+
h6: string;
|
|
21
|
+
};
|
|
22
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
23
|
+
level: {
|
|
24
|
+
h1: string;
|
|
25
|
+
h2: string;
|
|
26
|
+
h3: string;
|
|
27
|
+
h4: string;
|
|
28
|
+
h5: string;
|
|
29
|
+
h6: string;
|
|
30
|
+
};
|
|
31
|
+
}, undefined, undefined, unknown, unknown, undefined>>;
|
|
32
|
+
type HeadingVariantProps = VariantProps<typeof heading>;
|
|
33
|
+
|
|
34
|
+
export { type HeadingVariantProps, heading };
|
|
@@ -0,0 +1,45 @@
|
|
|
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/heading.ts
|
|
21
|
+
var heading_exports = {};
|
|
22
|
+
__export(heading_exports, {
|
|
23
|
+
heading: () => heading
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(heading_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var heading = (0, import_tailwind_variants.tv)({
|
|
28
|
+
variants: {
|
|
29
|
+
level: {
|
|
30
|
+
h1: "text-h1-core",
|
|
31
|
+
h2: "text-h2-core",
|
|
32
|
+
h3: "text-h3-core",
|
|
33
|
+
h4: "text-h4-core",
|
|
34
|
+
h5: "text-h5-core",
|
|
35
|
+
h6: "text-h6-core"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
level: "h1"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
heading
|
|
45
|
+
});
|
|
@@ -4,14 +4,21 @@ export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './avatar
|
|
|
4
4
|
export { ButtonVariantProps, button } from './button.mjs';
|
|
5
5
|
export { CalendarVariantProps, calendar } from './calendar.mjs';
|
|
6
6
|
export { CardSlots, CardVariantProps, card } from './card.mjs';
|
|
7
|
+
export { CheckboxVariantProps, checkbox } from './checkbox.mjs';
|
|
7
8
|
export { ChipSlots, ChipVariantProps, chip } from './chip.mjs';
|
|
9
|
+
export { CodeVariantProps, code } from './code.mjs';
|
|
8
10
|
export { CommandVariants, command } from './command.mjs';
|
|
11
|
+
export { DataTableVariants, dataTable } from './data-table.mjs';
|
|
9
12
|
export { DialogSlots, DialogVariantProps, dialog } from './dialog.mjs';
|
|
10
13
|
export { DrawerVariantProps, drawer } from './drawer.mjs';
|
|
11
14
|
export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
|
|
15
|
+
export { HeadingVariantProps, heading } from './heading.mjs';
|
|
12
16
|
export { InputVariantProps, input, passwordInput } from './input.mjs';
|
|
17
|
+
export { PageHeaderVariantProps, pageHeader } from './page-header.mjs';
|
|
13
18
|
export { PageLayoutVariantProps, pageLayout } from './page-layout.mjs';
|
|
14
19
|
export { PopoverVariants, popover } from './popover.mjs';
|
|
20
|
+
export { skeleton } from './skeleton.mjs';
|
|
15
21
|
export { SpinnerVariants, spinner } from './spinner.mjs';
|
|
22
|
+
export { TableSlots, TableVariantProps, table } from './table.mjs';
|
|
16
23
|
export { TooltipVariants, tooltip } from './tooltip.mjs';
|
|
17
24
|
import 'tailwind-variants';
|
|
@@ -4,14 +4,21 @@ export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './avatar
|
|
|
4
4
|
export { ButtonVariantProps, button } from './button.js';
|
|
5
5
|
export { CalendarVariantProps, calendar } from './calendar.js';
|
|
6
6
|
export { CardSlots, CardVariantProps, card } from './card.js';
|
|
7
|
+
export { CheckboxVariantProps, checkbox } from './checkbox.js';
|
|
7
8
|
export { ChipSlots, ChipVariantProps, chip } from './chip.js';
|
|
9
|
+
export { CodeVariantProps, code } from './code.js';
|
|
8
10
|
export { CommandVariants, command } from './command.js';
|
|
11
|
+
export { DataTableVariants, dataTable } from './data-table.js';
|
|
9
12
|
export { DialogSlots, DialogVariantProps, dialog } from './dialog.js';
|
|
10
13
|
export { DrawerVariantProps, drawer } from './drawer.js';
|
|
11
14
|
export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
|
|
15
|
+
export { HeadingVariantProps, heading } from './heading.js';
|
|
12
16
|
export { InputVariantProps, input, passwordInput } from './input.js';
|
|
17
|
+
export { PageHeaderVariantProps, pageHeader } from './page-header.js';
|
|
13
18
|
export { PageLayoutVariantProps, pageLayout } from './page-layout.js';
|
|
14
19
|
export { PopoverVariants, popover } from './popover.js';
|
|
20
|
+
export { skeleton } from './skeleton.js';
|
|
15
21
|
export { SpinnerVariants, spinner } from './spinner.js';
|
|
22
|
+
export { TableSlots, TableVariantProps, table } from './table.js';
|
|
16
23
|
export { TooltipVariants, tooltip } from './tooltip.js';
|
|
17
24
|
import 'tailwind-variants';
|