@kopexa/theme 1.5.8 → 1.6.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/dist/{chunk-FLD2CUFZ.mjs → chunk-3IIJVON7.mjs} +11 -8
- package/dist/chunk-CZMZHA7U.mjs +37 -0
- package/dist/{chunk-UI2M2MFB.mjs → chunk-DH3KNPAO.mjs} +3 -1
- package/dist/{chunk-4VKJFW6Y.mjs → chunk-EACX3NZF.mjs} +11 -2
- package/dist/chunk-GA6UOB2D.mjs +166 -0
- package/dist/{chunk-32L6KXLV.mjs → chunk-HOQ2LD24.mjs} +1 -1
- package/dist/chunk-I6M4S2KZ.mjs +41 -0
- package/dist/chunk-IRKCLWJD.mjs +15 -0
- package/dist/{chunk-3M5JSM7Y.mjs → chunk-MGYGD5BF.mjs} +1 -1
- package/dist/{chunk-I2NMD23O.mjs → chunk-OMS3433R.mjs} +1 -1
- package/dist/{chunk-CDTKWCOH.mjs → chunk-SU53TZN7.mjs} +34 -2
- package/dist/chunk-UPTG533L.mjs +87 -0
- package/dist/{chunk-67PPUTSS.mjs → chunk-UVT775TU.mjs} +1 -1
- package/dist/{chunk-5BIGFSZK.mjs → chunk-WSX3HKVE.mjs} +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.d.mts +24 -0
- package/dist/components/card.d.ts +24 -0
- package/dist/components/card.js +11 -2
- package/dist/components/card.mjs +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.js +1 -1
- package/dist/components/code.mjs +2 -2
- package/dist/components/drawer.d.mts +9 -3
- package/dist/components/drawer.d.ts +9 -3
- package/dist/components/drawer.js +3 -1
- package/dist/components/drawer.mjs +1 -1
- package/dist/components/index.d.mts +5 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +411 -22
- package/dist/components/index.mjs +39 -15
- package/dist/components/page-layout.d.mts +9 -0
- package/dist/components/page-layout.d.ts +9 -0
- package/dist/components/page-layout.js +11 -8
- package/dist/components/page-layout.mjs +1 -1
- package/dist/components/risk-indicator.d.mts +76 -0
- package/dist/components/risk-indicator.d.ts +76 -0
- package/dist/components/risk-indicator.js +61 -0
- package/dist/components/risk-indicator.mjs +6 -0
- package/dist/components/separator.d.mts +22 -0
- package/dist/components/separator.d.ts +22 -0
- package/dist/components/separator.js +39 -0
- package/dist/components/separator.mjs +6 -0
- package/dist/components/sidebar.d.mts +206 -0
- package/dist/components/sidebar.d.ts +206 -0
- package/dist/components/sidebar.js +192 -0
- package/dist/components/sidebar.mjs +10 -0
- package/dist/components/tab-nav.d.mts +101 -0
- package/dist/components/tab-nav.d.ts +101 -0
- package/dist/components/tab-nav.js +111 -0
- package/dist/components/tab-nav.mjs +6 -0
- package/dist/components/table.d.mts +54 -0
- package/dist/components/table.d.ts +54 -0
- package/dist/components/table.js +34 -2
- package/dist/components/table.mjs +1 -1
- package/dist/components/tabs.d.mts +43 -0
- package/dist/components/tabs.d.ts +43 -0
- package/dist/components/tabs.js +65 -0
- package/dist/components/tabs.mjs +6 -0
- package/dist/index.css +23 -11
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +411 -22
- package/dist/index.mjs +39 -15
- package/dist/utils/variants.js +1 -1
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-FWB233VZ.mjs → chunk-EOJ6MEGH.mjs} +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const tabNav: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
primary: {
|
|
7
|
+
link: string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: {
|
|
12
|
+
link: string[];
|
|
13
|
+
linkInner: string;
|
|
14
|
+
linkInnerHidden: string;
|
|
15
|
+
};
|
|
16
|
+
md: {
|
|
17
|
+
link: string[];
|
|
18
|
+
linkInner: string;
|
|
19
|
+
linkInnerHidden: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
border: {
|
|
23
|
+
true: {
|
|
24
|
+
list: string;
|
|
25
|
+
link: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
base: string;
|
|
30
|
+
list: string[];
|
|
31
|
+
item: string;
|
|
32
|
+
link: string[];
|
|
33
|
+
linkInner: string[];
|
|
34
|
+
linkInnerHidden: string[];
|
|
35
|
+
}, undefined, {
|
|
36
|
+
color: {
|
|
37
|
+
primary: {
|
|
38
|
+
link: string[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
size: {
|
|
42
|
+
sm: {
|
|
43
|
+
link: string[];
|
|
44
|
+
linkInner: string;
|
|
45
|
+
linkInnerHidden: string;
|
|
46
|
+
};
|
|
47
|
+
md: {
|
|
48
|
+
link: string[];
|
|
49
|
+
linkInner: string;
|
|
50
|
+
linkInnerHidden: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
border: {
|
|
54
|
+
true: {
|
|
55
|
+
list: string;
|
|
56
|
+
link: string[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
base: string;
|
|
61
|
+
list: string[];
|
|
62
|
+
item: string;
|
|
63
|
+
link: string[];
|
|
64
|
+
linkInner: string[];
|
|
65
|
+
linkInnerHidden: string[];
|
|
66
|
+
}, tailwind_variants.TVReturnType<{
|
|
67
|
+
color: {
|
|
68
|
+
primary: {
|
|
69
|
+
link: string[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
sm: {
|
|
74
|
+
link: string[];
|
|
75
|
+
linkInner: string;
|
|
76
|
+
linkInnerHidden: string;
|
|
77
|
+
};
|
|
78
|
+
md: {
|
|
79
|
+
link: string[];
|
|
80
|
+
linkInner: string;
|
|
81
|
+
linkInnerHidden: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
border: {
|
|
85
|
+
true: {
|
|
86
|
+
list: string;
|
|
87
|
+
link: string[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
base: string;
|
|
92
|
+
list: string[];
|
|
93
|
+
item: string;
|
|
94
|
+
link: string[];
|
|
95
|
+
linkInner: string[];
|
|
96
|
+
linkInnerHidden: string[];
|
|
97
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
98
|
+
type TabNavVariantProps = VariantProps<typeof tabNav>;
|
|
99
|
+
type TabNavSlots = keyof ReturnType<typeof tabNav>;
|
|
100
|
+
|
|
101
|
+
export { type TabNavSlots, type TabNavVariantProps, tabNav };
|
|
@@ -0,0 +1,111 @@
|
|
|
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/tab-nav.ts
|
|
21
|
+
var tab_nav_exports = {};
|
|
22
|
+
__export(tab_nav_exports, {
|
|
23
|
+
tabNav: () => tabNav
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tab_nav_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var tabNav = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: "",
|
|
30
|
+
list: [
|
|
31
|
+
"flex",
|
|
32
|
+
"justify-start",
|
|
33
|
+
"overflow-x-auto",
|
|
34
|
+
"whitespace-nowrap",
|
|
35
|
+
"font-sans"
|
|
36
|
+
],
|
|
37
|
+
item: "flex",
|
|
38
|
+
link: [
|
|
39
|
+
"relative",
|
|
40
|
+
"flex",
|
|
41
|
+
"items-center",
|
|
42
|
+
"justify-center",
|
|
43
|
+
"shrink-0",
|
|
44
|
+
"select-none",
|
|
45
|
+
"px-2",
|
|
46
|
+
"[&_svg]:shrink-0",
|
|
47
|
+
"transition-colors",
|
|
48
|
+
"font-normal",
|
|
49
|
+
"data-active:[&>_span]:font-medium",
|
|
50
|
+
"hover:[&>_span]:bg-accent hover:[&>_span]:text-accent-foreground"
|
|
51
|
+
],
|
|
52
|
+
linkInner: [
|
|
53
|
+
"flex",
|
|
54
|
+
"items-center",
|
|
55
|
+
"justify-center",
|
|
56
|
+
"absolute",
|
|
57
|
+
"overflow-hidden",
|
|
58
|
+
"transition-all"
|
|
59
|
+
],
|
|
60
|
+
linkInnerHidden: [
|
|
61
|
+
"flex",
|
|
62
|
+
"items-center",
|
|
63
|
+
"justify-center",
|
|
64
|
+
"invisible",
|
|
65
|
+
"transition-all"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
variants: {
|
|
69
|
+
color: {
|
|
70
|
+
primary: {
|
|
71
|
+
link: ["before:bg-primary"]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
size: {
|
|
75
|
+
sm: {
|
|
76
|
+
link: ["h-10", "text-xs [&_svg]:size-3.5"],
|
|
77
|
+
linkInner: "px-3 h-8 gap-2 rounded-sm min-w-16",
|
|
78
|
+
linkInnerHidden: "px-3 h-8 gap-2 rounded-sm min-w-16"
|
|
79
|
+
},
|
|
80
|
+
md: {
|
|
81
|
+
link: ["h-12", "text-sm", "rounded-md [&_svg]:size-4"],
|
|
82
|
+
linkInner: "px-4 h-10 gap-2 rounded-md min-w-20",
|
|
83
|
+
linkInnerHidden: "px-4 h-10 gap-2 rounded-md min-w-20"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
border: {
|
|
87
|
+
true: {
|
|
88
|
+
list: "border-b -mb-px",
|
|
89
|
+
link: [
|
|
90
|
+
"before:h-[2px]",
|
|
91
|
+
"before:absolute",
|
|
92
|
+
"before:bottom-0",
|
|
93
|
+
"before:left-0",
|
|
94
|
+
"before:right-0",
|
|
95
|
+
"before:opacity-0",
|
|
96
|
+
"before:transition-opacity",
|
|
97
|
+
"data-active:before:opacity-100"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
defaultVariants: {
|
|
103
|
+
color: "primary",
|
|
104
|
+
border: true,
|
|
105
|
+
size: "sm"
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
109
|
+
0 && (module.exports = {
|
|
110
|
+
tabNav
|
|
111
|
+
});
|
|
@@ -2,12 +2,28 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
|
|
4
4
|
declare const table: tailwind_variants.TVReturnType<{
|
|
5
|
+
bleed: {
|
|
6
|
+
true: {};
|
|
7
|
+
false: {
|
|
8
|
+
container: string[];
|
|
9
|
+
th: string[];
|
|
10
|
+
td: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
5
13
|
overscroll: {
|
|
6
14
|
horizontal: {
|
|
7
15
|
th: string;
|
|
8
16
|
td: string;
|
|
9
17
|
};
|
|
10
18
|
};
|
|
19
|
+
variant: {
|
|
20
|
+
default: {};
|
|
21
|
+
grid: {
|
|
22
|
+
table: string;
|
|
23
|
+
th: string[];
|
|
24
|
+
td: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
11
27
|
color: {
|
|
12
28
|
default: {
|
|
13
29
|
td: string[];
|
|
@@ -64,6 +80,8 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
64
80
|
};
|
|
65
81
|
};
|
|
66
82
|
}, {
|
|
83
|
+
container: string[];
|
|
84
|
+
wrapper: string[];
|
|
67
85
|
table: string;
|
|
68
86
|
thead: string;
|
|
69
87
|
tbody: string;
|
|
@@ -71,12 +89,28 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
71
89
|
th: string[];
|
|
72
90
|
td: string[];
|
|
73
91
|
}, undefined, {
|
|
92
|
+
bleed: {
|
|
93
|
+
true: {};
|
|
94
|
+
false: {
|
|
95
|
+
container: string[];
|
|
96
|
+
th: string[];
|
|
97
|
+
td: string[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
74
100
|
overscroll: {
|
|
75
101
|
horizontal: {
|
|
76
102
|
th: string;
|
|
77
103
|
td: string;
|
|
78
104
|
};
|
|
79
105
|
};
|
|
106
|
+
variant: {
|
|
107
|
+
default: {};
|
|
108
|
+
grid: {
|
|
109
|
+
table: string;
|
|
110
|
+
th: string[];
|
|
111
|
+
td: string[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
80
114
|
color: {
|
|
81
115
|
default: {
|
|
82
116
|
td: string[];
|
|
@@ -133,6 +167,8 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
133
167
|
};
|
|
134
168
|
};
|
|
135
169
|
}, {
|
|
170
|
+
container: string[];
|
|
171
|
+
wrapper: string[];
|
|
136
172
|
table: string;
|
|
137
173
|
thead: string;
|
|
138
174
|
tbody: string;
|
|
@@ -140,12 +176,28 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
140
176
|
th: string[];
|
|
141
177
|
td: string[];
|
|
142
178
|
}, tailwind_variants.TVReturnType<{
|
|
179
|
+
bleed: {
|
|
180
|
+
true: {};
|
|
181
|
+
false: {
|
|
182
|
+
container: string[];
|
|
183
|
+
th: string[];
|
|
184
|
+
td: string[];
|
|
185
|
+
};
|
|
186
|
+
};
|
|
143
187
|
overscroll: {
|
|
144
188
|
horizontal: {
|
|
145
189
|
th: string;
|
|
146
190
|
td: string;
|
|
147
191
|
};
|
|
148
192
|
};
|
|
193
|
+
variant: {
|
|
194
|
+
default: {};
|
|
195
|
+
grid: {
|
|
196
|
+
table: string;
|
|
197
|
+
th: string[];
|
|
198
|
+
td: string[];
|
|
199
|
+
};
|
|
200
|
+
};
|
|
149
201
|
color: {
|
|
150
202
|
default: {
|
|
151
203
|
td: string[];
|
|
@@ -202,6 +254,8 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
202
254
|
};
|
|
203
255
|
};
|
|
204
256
|
}, {
|
|
257
|
+
container: string[];
|
|
258
|
+
wrapper: string[];
|
|
205
259
|
table: string;
|
|
206
260
|
thead: string;
|
|
207
261
|
tbody: string;
|
|
@@ -2,12 +2,28 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
|
|
4
4
|
declare const table: tailwind_variants.TVReturnType<{
|
|
5
|
+
bleed: {
|
|
6
|
+
true: {};
|
|
7
|
+
false: {
|
|
8
|
+
container: string[];
|
|
9
|
+
th: string[];
|
|
10
|
+
td: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
5
13
|
overscroll: {
|
|
6
14
|
horizontal: {
|
|
7
15
|
th: string;
|
|
8
16
|
td: string;
|
|
9
17
|
};
|
|
10
18
|
};
|
|
19
|
+
variant: {
|
|
20
|
+
default: {};
|
|
21
|
+
grid: {
|
|
22
|
+
table: string;
|
|
23
|
+
th: string[];
|
|
24
|
+
td: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
11
27
|
color: {
|
|
12
28
|
default: {
|
|
13
29
|
td: string[];
|
|
@@ -64,6 +80,8 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
64
80
|
};
|
|
65
81
|
};
|
|
66
82
|
}, {
|
|
83
|
+
container: string[];
|
|
84
|
+
wrapper: string[];
|
|
67
85
|
table: string;
|
|
68
86
|
thead: string;
|
|
69
87
|
tbody: string;
|
|
@@ -71,12 +89,28 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
71
89
|
th: string[];
|
|
72
90
|
td: string[];
|
|
73
91
|
}, undefined, {
|
|
92
|
+
bleed: {
|
|
93
|
+
true: {};
|
|
94
|
+
false: {
|
|
95
|
+
container: string[];
|
|
96
|
+
th: string[];
|
|
97
|
+
td: string[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
74
100
|
overscroll: {
|
|
75
101
|
horizontal: {
|
|
76
102
|
th: string;
|
|
77
103
|
td: string;
|
|
78
104
|
};
|
|
79
105
|
};
|
|
106
|
+
variant: {
|
|
107
|
+
default: {};
|
|
108
|
+
grid: {
|
|
109
|
+
table: string;
|
|
110
|
+
th: string[];
|
|
111
|
+
td: string[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
80
114
|
color: {
|
|
81
115
|
default: {
|
|
82
116
|
td: string[];
|
|
@@ -133,6 +167,8 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
133
167
|
};
|
|
134
168
|
};
|
|
135
169
|
}, {
|
|
170
|
+
container: string[];
|
|
171
|
+
wrapper: string[];
|
|
136
172
|
table: string;
|
|
137
173
|
thead: string;
|
|
138
174
|
tbody: string;
|
|
@@ -140,12 +176,28 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
140
176
|
th: string[];
|
|
141
177
|
td: string[];
|
|
142
178
|
}, tailwind_variants.TVReturnType<{
|
|
179
|
+
bleed: {
|
|
180
|
+
true: {};
|
|
181
|
+
false: {
|
|
182
|
+
container: string[];
|
|
183
|
+
th: string[];
|
|
184
|
+
td: string[];
|
|
185
|
+
};
|
|
186
|
+
};
|
|
143
187
|
overscroll: {
|
|
144
188
|
horizontal: {
|
|
145
189
|
th: string;
|
|
146
190
|
td: string;
|
|
147
191
|
};
|
|
148
192
|
};
|
|
193
|
+
variant: {
|
|
194
|
+
default: {};
|
|
195
|
+
grid: {
|
|
196
|
+
table: string;
|
|
197
|
+
th: string[];
|
|
198
|
+
td: string[];
|
|
199
|
+
};
|
|
200
|
+
};
|
|
149
201
|
color: {
|
|
150
202
|
default: {
|
|
151
203
|
td: string[];
|
|
@@ -202,6 +254,8 @@ declare const table: tailwind_variants.TVReturnType<{
|
|
|
202
254
|
};
|
|
203
255
|
};
|
|
204
256
|
}, {
|
|
257
|
+
container: string[];
|
|
258
|
+
wrapper: string[];
|
|
205
259
|
table: string;
|
|
206
260
|
thead: string;
|
|
207
261
|
tbody: string;
|
package/dist/components/table.js
CHANGED
|
@@ -26,19 +26,23 @@ module.exports = __toCommonJS(table_exports);
|
|
|
26
26
|
var import_tailwind_variants = require("tailwind-variants");
|
|
27
27
|
var table = (0, import_tailwind_variants.tv)({
|
|
28
28
|
slots: {
|
|
29
|
+
container: ["overflow-x-auto whitespace-nowrap", "-mx-3 md:-mx-6"],
|
|
30
|
+
wrapper: ["inline-block min-w-full align-middle"],
|
|
29
31
|
table: "min-w-full h-auto",
|
|
30
32
|
thead: "",
|
|
31
33
|
tbody: "after:block divide-y",
|
|
32
34
|
tr: [
|
|
33
35
|
"group/tr outline-hidden",
|
|
34
|
-
"[&
|
|
35
|
-
"[&
|
|
36
|
+
"[&_th:last-child]:pr-4",
|
|
37
|
+
"[&_th:first-child]:pl-4"
|
|
36
38
|
],
|
|
37
39
|
th: [
|
|
38
40
|
"group/th px-3 py-3.5 text-start text-xs font-semibold whitespace-normal",
|
|
39
41
|
"text-foreground border-b"
|
|
40
42
|
],
|
|
41
43
|
td: [
|
|
44
|
+
"first:pl-3 last:pr-3",
|
|
45
|
+
"md:first:pl-6 md:last:pr-6",
|
|
42
46
|
"py-2 px-3 text-xs font-normal whitespace-normal relative",
|
|
43
47
|
"[&>*]:z-[1]",
|
|
44
48
|
"[&>*]:relative",
|
|
@@ -63,12 +67,38 @@ var table = (0, import_tailwind_variants.tv)({
|
|
|
63
67
|
]
|
|
64
68
|
},
|
|
65
69
|
variants: {
|
|
70
|
+
bleed: {
|
|
71
|
+
true: {},
|
|
72
|
+
false: {
|
|
73
|
+
container: ["px-3 md:px-6"],
|
|
74
|
+
th: ["first:pl-1 last:pr-1"],
|
|
75
|
+
td: ["first:pl-1 last:pr-1"]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
66
78
|
overscroll: {
|
|
67
79
|
horizontal: {
|
|
68
80
|
th: "whitespace-nowrap",
|
|
69
81
|
td: "whitespace-nowrap"
|
|
70
82
|
}
|
|
71
83
|
},
|
|
84
|
+
variant: {
|
|
85
|
+
default: {},
|
|
86
|
+
// a border between cells and above the table
|
|
87
|
+
// this is used for the grid variant
|
|
88
|
+
grid: {
|
|
89
|
+
table: "border-separate border-spacing-0",
|
|
90
|
+
th: [
|
|
91
|
+
"border-l first:border-l-0 border-b",
|
|
92
|
+
"first:pl-3 md:first:pl-6 last:pr-3 md:last:pr-6"
|
|
93
|
+
],
|
|
94
|
+
td: [
|
|
95
|
+
"border-l first:border-l-0",
|
|
96
|
+
"border-b",
|
|
97
|
+
// first cell has no border
|
|
98
|
+
"[&_td:first-child]:border-l-0 [&_th:first-child]:border-l-0"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
72
102
|
color: {
|
|
73
103
|
default: {
|
|
74
104
|
td: [
|
|
@@ -133,8 +163,10 @@ var table = (0, import_tailwind_variants.tv)({
|
|
|
133
163
|
}
|
|
134
164
|
},
|
|
135
165
|
defaultVariants: {
|
|
166
|
+
variant: "default",
|
|
136
167
|
layout: "auto",
|
|
137
168
|
color: "default",
|
|
169
|
+
bleed: false,
|
|
138
170
|
fullWidth: true
|
|
139
171
|
}
|
|
140
172
|
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const tabs: tailwind_variants.TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
md: {
|
|
7
|
+
list: string;
|
|
8
|
+
trigger: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
root: string;
|
|
13
|
+
list: string[];
|
|
14
|
+
trigger: string[];
|
|
15
|
+
content: string[];
|
|
16
|
+
}, undefined, {
|
|
17
|
+
size: {
|
|
18
|
+
md: {
|
|
19
|
+
list: string;
|
|
20
|
+
trigger: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
root: string;
|
|
25
|
+
list: string[];
|
|
26
|
+
trigger: string[];
|
|
27
|
+
content: string[];
|
|
28
|
+
}, tailwind_variants.TVReturnType<{
|
|
29
|
+
size: {
|
|
30
|
+
md: {
|
|
31
|
+
list: string;
|
|
32
|
+
trigger: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
root: string;
|
|
37
|
+
list: string[];
|
|
38
|
+
trigger: string[];
|
|
39
|
+
content: string[];
|
|
40
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
41
|
+
type TabsVariantProps = VariantProps<typeof tabs>;
|
|
42
|
+
|
|
43
|
+
export { type TabsVariantProps, tabs };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const tabs: tailwind_variants.TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
md: {
|
|
7
|
+
list: string;
|
|
8
|
+
trigger: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
root: string;
|
|
13
|
+
list: string[];
|
|
14
|
+
trigger: string[];
|
|
15
|
+
content: string[];
|
|
16
|
+
}, undefined, {
|
|
17
|
+
size: {
|
|
18
|
+
md: {
|
|
19
|
+
list: string;
|
|
20
|
+
trigger: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
root: string;
|
|
25
|
+
list: string[];
|
|
26
|
+
trigger: string[];
|
|
27
|
+
content: string[];
|
|
28
|
+
}, tailwind_variants.TVReturnType<{
|
|
29
|
+
size: {
|
|
30
|
+
md: {
|
|
31
|
+
list: string;
|
|
32
|
+
trigger: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
root: string;
|
|
37
|
+
list: string[];
|
|
38
|
+
trigger: string[];
|
|
39
|
+
content: string[];
|
|
40
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
41
|
+
type TabsVariantProps = VariantProps<typeof tabs>;
|
|
42
|
+
|
|
43
|
+
export { type TabsVariantProps, tabs };
|
|
@@ -0,0 +1,65 @@
|
|
|
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/tabs.ts
|
|
21
|
+
var tabs_exports = {};
|
|
22
|
+
__export(tabs_exports, {
|
|
23
|
+
tabs: () => tabs
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tabs_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var tabs = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: "flex flex-col gap-2",
|
|
30
|
+
list: [
|
|
31
|
+
"bg-muted text-muted-foreground",
|
|
32
|
+
"inline-flex flex-col md:flex-row",
|
|
33
|
+
"w-full md:w-fit items-center justify-center rounded-lg p-[3px]"
|
|
34
|
+
],
|
|
35
|
+
trigger: [
|
|
36
|
+
"inline-flex flex-1 items-center justify-center gap-1.5 rounded-md",
|
|
37
|
+
" border border-transparent",
|
|
38
|
+
"data-[state=active]:bg-background",
|
|
39
|
+
"dark:data-[state=active]:text-foreground",
|
|
40
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring",
|
|
41
|
+
"dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30",
|
|
42
|
+
"text-foreground dark:text-muted-foreground",
|
|
43
|
+
"h-[calc(100%-1px)] whitespace-nowrap transition-[color,box-shadow]",
|
|
44
|
+
"focus-visible:ring-[3px] focus-visible:outline-1",
|
|
45
|
+
"disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",
|
|
46
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
|
47
|
+
],
|
|
48
|
+
content: ["flex-1 outline-none"]
|
|
49
|
+
},
|
|
50
|
+
variants: {
|
|
51
|
+
size: {
|
|
52
|
+
md: {
|
|
53
|
+
list: "md:h-9",
|
|
54
|
+
trigger: "px-2 py-1 text-sm font-medium max-md:w-full"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
size: "md"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
tabs
|
|
65
|
+
});
|