@kopexa/theme 1.5.2 → 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-Q5DCJR2X.mjs → chunk-I2NMD23O.mjs} +16 -3
- package/dist/chunk-KPOZFVP6.mjs +13 -0
- package/dist/chunk-NWKBPO37.mjs +21 -0
- package/dist/chunk-VNQEJU4P.mjs +9 -0
- package/dist/chunk-XCLEKBCJ.mjs +17 -0
- package/dist/components/avatar-group.d.mts +29 -0
- package/dist/components/avatar-group.d.ts +29 -0
- package/dist/components/avatar-group.js +41 -0
- package/dist/components/avatar-group.mjs +6 -0
- package/dist/components/avatar.d.mts +30 -0
- package/dist/components/avatar.d.ts +30 -0
- package/dist/components/avatar.js +16 -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 +8 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +352 -36
- package/dist/components/index.mjs +51 -19
- 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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +352 -36
- package/dist/index.mjs +51 -19
- package/package.json +3 -3
- /package/dist/{chunk-PWBTAIYS.mjs → chunk-FWB233VZ.mjs} +0 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const table: tailwind_variants.TVReturnType<{
|
|
5
|
+
overscroll: {
|
|
6
|
+
horizontal: {
|
|
7
|
+
th: string;
|
|
8
|
+
td: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
default: {
|
|
13
|
+
td: string[];
|
|
14
|
+
};
|
|
15
|
+
primary: {
|
|
16
|
+
td: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
layout: {
|
|
20
|
+
auto: {
|
|
21
|
+
table: string;
|
|
22
|
+
};
|
|
23
|
+
fixed: {
|
|
24
|
+
table: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
isSelectable: {
|
|
28
|
+
true: {
|
|
29
|
+
tr: string;
|
|
30
|
+
td: string[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
hasSelect: {
|
|
34
|
+
true: {
|
|
35
|
+
tr: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
hasActions: {
|
|
39
|
+
true: {
|
|
40
|
+
tr: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
isStickyCell: {
|
|
44
|
+
true: {
|
|
45
|
+
th: string;
|
|
46
|
+
td: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
isSelectCell: {
|
|
50
|
+
true: {
|
|
51
|
+
td: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
isActionCell: {
|
|
55
|
+
true: {
|
|
56
|
+
td: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
fullWidth: {
|
|
60
|
+
true: {
|
|
61
|
+
base: string;
|
|
62
|
+
wrapper: string;
|
|
63
|
+
table: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
table: string;
|
|
68
|
+
thead: string;
|
|
69
|
+
tbody: string;
|
|
70
|
+
tr: string[];
|
|
71
|
+
th: string[];
|
|
72
|
+
td: string[];
|
|
73
|
+
}, undefined, {
|
|
74
|
+
overscroll: {
|
|
75
|
+
horizontal: {
|
|
76
|
+
th: string;
|
|
77
|
+
td: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
color: {
|
|
81
|
+
default: {
|
|
82
|
+
td: string[];
|
|
83
|
+
};
|
|
84
|
+
primary: {
|
|
85
|
+
td: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
layout: {
|
|
89
|
+
auto: {
|
|
90
|
+
table: string;
|
|
91
|
+
};
|
|
92
|
+
fixed: {
|
|
93
|
+
table: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
isSelectable: {
|
|
97
|
+
true: {
|
|
98
|
+
tr: string;
|
|
99
|
+
td: string[];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
hasSelect: {
|
|
103
|
+
true: {
|
|
104
|
+
tr: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
hasActions: {
|
|
108
|
+
true: {
|
|
109
|
+
tr: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
isStickyCell: {
|
|
113
|
+
true: {
|
|
114
|
+
th: string;
|
|
115
|
+
td: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
isSelectCell: {
|
|
119
|
+
true: {
|
|
120
|
+
td: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
isActionCell: {
|
|
124
|
+
true: {
|
|
125
|
+
td: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
fullWidth: {
|
|
129
|
+
true: {
|
|
130
|
+
base: string;
|
|
131
|
+
wrapper: string;
|
|
132
|
+
table: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
table: string;
|
|
137
|
+
thead: string;
|
|
138
|
+
tbody: string;
|
|
139
|
+
tr: string[];
|
|
140
|
+
th: string[];
|
|
141
|
+
td: string[];
|
|
142
|
+
}, tailwind_variants.TVReturnType<{
|
|
143
|
+
overscroll: {
|
|
144
|
+
horizontal: {
|
|
145
|
+
th: string;
|
|
146
|
+
td: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
color: {
|
|
150
|
+
default: {
|
|
151
|
+
td: string[];
|
|
152
|
+
};
|
|
153
|
+
primary: {
|
|
154
|
+
td: string[];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
layout: {
|
|
158
|
+
auto: {
|
|
159
|
+
table: string;
|
|
160
|
+
};
|
|
161
|
+
fixed: {
|
|
162
|
+
table: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
isSelectable: {
|
|
166
|
+
true: {
|
|
167
|
+
tr: string;
|
|
168
|
+
td: string[];
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
hasSelect: {
|
|
172
|
+
true: {
|
|
173
|
+
tr: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
hasActions: {
|
|
177
|
+
true: {
|
|
178
|
+
tr: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
isStickyCell: {
|
|
182
|
+
true: {
|
|
183
|
+
th: string;
|
|
184
|
+
td: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
isSelectCell: {
|
|
188
|
+
true: {
|
|
189
|
+
td: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
isActionCell: {
|
|
193
|
+
true: {
|
|
194
|
+
td: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
fullWidth: {
|
|
198
|
+
true: {
|
|
199
|
+
base: string;
|
|
200
|
+
wrapper: string;
|
|
201
|
+
table: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
table: string;
|
|
206
|
+
thead: string;
|
|
207
|
+
tbody: string;
|
|
208
|
+
tr: string[];
|
|
209
|
+
th: string[];
|
|
210
|
+
td: string[];
|
|
211
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
212
|
+
type TableVariantProps = VariantProps<typeof table>;
|
|
213
|
+
type TableSlots = keyof ReturnType<typeof table>;
|
|
214
|
+
|
|
215
|
+
export { type TableSlots, type TableVariantProps, table };
|
|
@@ -0,0 +1,144 @@
|
|
|
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/table.ts
|
|
21
|
+
var table_exports = {};
|
|
22
|
+
__export(table_exports, {
|
|
23
|
+
table: () => table
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(table_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var table = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
table: "min-w-full h-auto",
|
|
30
|
+
thead: "",
|
|
31
|
+
tbody: "after:block divide-y",
|
|
32
|
+
tr: [
|
|
33
|
+
"group/tr outline-hidden",
|
|
34
|
+
"[&_td:last-child]:pr-4 [&_th:last-child]:pr-4",
|
|
35
|
+
"[&_td:first-child]:pl-4 [&_th:first-child]:pl-4"
|
|
36
|
+
],
|
|
37
|
+
th: [
|
|
38
|
+
"group/th px-3 py-3.5 text-start text-xs font-semibold whitespace-normal",
|
|
39
|
+
"text-foreground border-b"
|
|
40
|
+
],
|
|
41
|
+
td: [
|
|
42
|
+
"py-2 px-3 text-xs font-normal whitespace-normal relative",
|
|
43
|
+
"[&>*]:z-[1]",
|
|
44
|
+
"[&>*]:relative",
|
|
45
|
+
// after content for selection
|
|
46
|
+
"after:pointer-events-none",
|
|
47
|
+
"after:content-['']",
|
|
48
|
+
"after:absolute",
|
|
49
|
+
"after:-z-[1]",
|
|
50
|
+
"after:inset-0",
|
|
51
|
+
"after:opacity-0",
|
|
52
|
+
"group-aria-[selected=true]/tr:after:opacity-100",
|
|
53
|
+
// before content for selection
|
|
54
|
+
"before:pointer-events-none",
|
|
55
|
+
"before:content-['']",
|
|
56
|
+
"before:absolute",
|
|
57
|
+
"before:-z-[1]",
|
|
58
|
+
"before:inset-y-0",
|
|
59
|
+
"before:start-0",
|
|
60
|
+
"before:w-0.5",
|
|
61
|
+
"before:opacity-0",
|
|
62
|
+
"group-aria-[selected=true]/tr:first:before:opacity-100"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
variants: {
|
|
66
|
+
overscroll: {
|
|
67
|
+
horizontal: {
|
|
68
|
+
th: "whitespace-nowrap",
|
|
69
|
+
td: "whitespace-nowrap"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
color: {
|
|
73
|
+
default: {
|
|
74
|
+
td: [
|
|
75
|
+
"first:before:bg-primary group-aria-[selected=true]/tr:text-accent-foreground"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
primary: {
|
|
79
|
+
td: [
|
|
80
|
+
"before:bg-primary group-aria-[selected=true]/tr:text-primary dark:group-aria-[selected=true]/tr:text-primary-foreground",
|
|
81
|
+
"after:bg-primary/10 dark:after:bg-primary/20"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
layout: {
|
|
86
|
+
auto: {
|
|
87
|
+
table: "table-auto"
|
|
88
|
+
},
|
|
89
|
+
fixed: {
|
|
90
|
+
table: "table-fixed"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
isSelectable: {
|
|
94
|
+
true: {
|
|
95
|
+
tr: "cursor-default",
|
|
96
|
+
td: [
|
|
97
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:bg-muted/30"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
hasSelect: {
|
|
102
|
+
true: {
|
|
103
|
+
tr: "[&_th:first-of-type]:w-[1%] [&_th:first-of-type]:whitespace-nowrap"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
hasActions: {
|
|
107
|
+
true: {
|
|
108
|
+
tr: "[&_th:last-of-type]:w-[1%] [&_th:last-of-type]:whitespace-nowrap"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
isStickyCell: {
|
|
112
|
+
true: {
|
|
113
|
+
th: "sticky bg-background z-[2]",
|
|
114
|
+
td: "sticky h-full bg-background z-[2]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
isSelectCell: {
|
|
118
|
+
true: {
|
|
119
|
+
td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
isActionCell: {
|
|
123
|
+
true: {
|
|
124
|
+
td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
fullWidth: {
|
|
128
|
+
true: {
|
|
129
|
+
base: "w-full",
|
|
130
|
+
wrapper: "w-full",
|
|
131
|
+
table: "w-full"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
defaultVariants: {
|
|
136
|
+
layout: "auto",
|
|
137
|
+
color: "default",
|
|
138
|
+
fullWidth: true
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
+
0 && (module.exports = {
|
|
143
|
+
table
|
|
144
|
+
});
|
package/dist/index.css
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
--card-foreground: oklch(0.145 0 0);
|
|
11
11
|
--popover: oklch(1 0 0);
|
|
12
12
|
--popover-foreground: oklch(0.145 0 0);
|
|
13
|
-
--primary: var(--color-primary-
|
|
13
|
+
--primary: var(--color-primary-800);
|
|
14
14
|
--primary-foreground: var(--color-white);
|
|
15
15
|
--secondary: var(--color-default-200);
|
|
16
16
|
--secondary-foreground: oklch(0.205 0 0);
|
|
17
|
-
--muted:
|
|
17
|
+
--muted: var(--color-default-100);
|
|
18
18
|
--muted-foreground: oklch(0.556 0 0);
|
|
19
19
|
--accent: var(--color-default-100);
|
|
20
20
|
--accent-foreground: oklch(0.205 0 0);
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
--warning-foreground: var(--color-white);
|
|
27
27
|
--info: var(--color-info-500);
|
|
28
28
|
--info-foreground: oklch(--color-black);
|
|
29
|
-
--border:
|
|
30
|
-
--input:
|
|
29
|
+
--border: var(--color-default-200);
|
|
30
|
+
--input:var(--color-default-200);
|
|
31
31
|
--ring: oklch(0.708 0 0);
|
|
32
32
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
33
33
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
40
40
|
--sidebar-primary: oklch(0.205 0 0);
|
|
41
41
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
42
|
-
--sidebar-accent:
|
|
42
|
+
--sidebar-accent:var(--color-default-200);
|
|
43
43
|
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
44
|
-
--sidebar-border:
|
|
44
|
+
--sidebar-border: var(--color-default-200);
|
|
45
45
|
--sidebar-ring: oklch(0.708 0 0);
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
--card-foreground: oklch(0.985 0 0);
|
|
53
53
|
--popover: oklch(0.145 0 0);
|
|
54
54
|
--popover-foreground: oklch(0.985 0 0);
|
|
55
|
-
--primary:
|
|
56
|
-
--primary-foreground:
|
|
55
|
+
--primary: var(--color-primary-700);
|
|
56
|
+
--primary-foreground: var(--color-white);
|
|
57
57
|
--secondary: oklch(0.269 0 0);
|
|
58
58
|
--secondary-foreground: oklch(0.985 0 0);
|
|
59
59
|
--muted: oklch(0.269 0 0);
|
|
60
60
|
--muted-foreground: oklch(0.708 0 0);
|
|
61
|
-
--accent: var(--color-
|
|
61
|
+
--accent: var(--color-primary-800);
|
|
62
62
|
--accent-foreground: oklch(0.985 0 0);
|
|
63
63
|
--destructive: var(--color-destructive-600);
|
|
64
64
|
--destructive-foreground: var(--color-white);
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
--warning-foreground: var(--color-white);
|
|
69
69
|
--info: var(--color-info-500);
|
|
70
70
|
--info-foreground: oklch(--color-black);
|
|
71
|
-
--border:
|
|
72
|
-
--input:
|
|
71
|
+
--border: var(--color-primary-800);
|
|
72
|
+
--input: var(--color-primary-800);
|
|
73
73
|
--ring: oklch(0.439 0 0);
|
|
74
74
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
75
75
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
81
81
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
82
82
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
83
|
-
--sidebar-accent:
|
|
83
|
+
--sidebar-accent: var(--color-primary-800);
|
|
84
84
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
85
|
-
--sidebar-border:
|
|
85
|
+
--sidebar-border: var(--color-primary-800);
|
|
86
86
|
--sidebar-ring: oklch(0.439 0 0);
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -111,17 +111,17 @@
|
|
|
111
111
|
--color-success-900: oklch(22.65% 0.049 162.45);
|
|
112
112
|
--color-success-950: oklch(18.48% 0.04 162.16);
|
|
113
113
|
|
|
114
|
-
--color-default-50:
|
|
115
|
-
--color-default-100: oklch(
|
|
116
|
-
--color-default-200: oklch(
|
|
117
|
-
--color-default-300: oklch(
|
|
118
|
-
--color-default-400: oklch(
|
|
119
|
-
--color-default-500: oklch(
|
|
120
|
-
--color-default-600: oklch(
|
|
121
|
-
--color-default-700: oklch(
|
|
122
|
-
--color-default-800: oklch(
|
|
123
|
-
--color-default-900: oklch(21
|
|
124
|
-
--color-default-950: oklch(
|
|
114
|
+
--color-default-50: oklch(0.98 0.00 248);
|
|
115
|
+
--color-default-100: oklch(0.97 0.00 265);
|
|
116
|
+
--color-default-200: oklch(0.93 0.01 265);
|
|
117
|
+
--color-default-300: oklch(0.87 0.01 258);
|
|
118
|
+
--color-default-400: oklch(0.71 0.02 261);
|
|
119
|
+
--color-default-500: oklch(0.55 0.02 264);
|
|
120
|
+
--color-default-600: oklch(0.45 0.03 257);
|
|
121
|
+
--color-default-700: oklch(0.37 0.03 260);
|
|
122
|
+
--color-default-800: oklch(0.28 0.03 257);
|
|
123
|
+
--color-default-900: oklch(0.21 0.03 265);
|
|
124
|
+
--color-default-950: oklch(0.13 0.03 262);
|
|
125
125
|
|
|
126
126
|
--color-warning-50: oklch(97.44% 0.014 46.3);
|
|
127
127
|
--color-warning-100: oklch(95.09% 0.027 49.62);
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
--color-card-foreground: var(--card-foreground);
|
|
167
167
|
--color-popover: var(--popover);
|
|
168
168
|
--color-popover-foreground: var(--popover-foreground);
|
|
169
|
-
--color-primary: var(--
|
|
170
|
-
--color-primary-foreground: var(--
|
|
169
|
+
--color-primary: var(--primary);
|
|
170
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
171
171
|
--color-secondary: var(--secondary);
|
|
172
172
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
173
173
|
--color-muted: var(--muted);
|
|
@@ -202,6 +202,36 @@
|
|
|
202
202
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
203
203
|
--color-sidebar-border: var(--sidebar-border);
|
|
204
204
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
205
|
+
|
|
206
|
+
--text-h1-core: 1.5rem;
|
|
207
|
+
--text-h1-core--line-height: 2rem;
|
|
208
|
+
--text-h1-core--font-weight: 600;
|
|
209
|
+
--text-h1-core--letter-spacing: -0.01em;
|
|
210
|
+
|
|
211
|
+
--text-h2-core: 1.25rem;
|
|
212
|
+
--text-h2-core--line-height: 1.6;
|
|
213
|
+
--text-h2-core--font-weight: 600;
|
|
214
|
+
--text-h2-core--letter-spacing: -0.01em;
|
|
215
|
+
|
|
216
|
+
--text-h3-core: 1.125rem;
|
|
217
|
+
--text-h3-core--line-height: 1.625rem;
|
|
218
|
+
--text-h3-core--font-weight: 500;
|
|
219
|
+
--text-h3-core--letter-spacing: -0.005em;
|
|
220
|
+
|
|
221
|
+
--text-h4-core: 1rem;
|
|
222
|
+
--text-h4-core--line-height: 1.5rem;
|
|
223
|
+
--text-h4-core--font-weight: 500;
|
|
224
|
+
--text-h4-core--letter-spacing: 0em;
|
|
225
|
+
|
|
226
|
+
--text-h5-core: 0.875rem;
|
|
227
|
+
--text-h5-core--line-height: 1.25rem;
|
|
228
|
+
--text-h5-core--font-weight: 500;
|
|
229
|
+
--text-h5-core--letter-spacing: 0.005em;
|
|
230
|
+
|
|
231
|
+
--text-h6-core: 0.75rem;
|
|
232
|
+
--text-h6-core--line-height: 1rem;
|
|
233
|
+
--text-h6-core--font-weight: 500;
|
|
234
|
+
--text-h6-core--letter-spacing: 0.01em;
|
|
205
235
|
}
|
|
206
236
|
|
|
207
237
|
@layer base {
|
|
@@ -259,4 +289,79 @@
|
|
|
259
289
|
transform: translate(0px, 0px);
|
|
260
290
|
}
|
|
261
291
|
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@layer components {
|
|
295
|
+
.page-header {
|
|
296
|
+
/* Grid Row Order */
|
|
297
|
+
--grid-row-order-context-area: 1;
|
|
298
|
+
--grid-row-order-leading-action: 2;
|
|
299
|
+
--grid-row-order-breadcrumbs: 2;
|
|
300
|
+
--grid-row-order-title-area: 2;
|
|
301
|
+
--grid-row-order-trailing-action: 2;
|
|
302
|
+
--grid-row-order-actions: 2;
|
|
303
|
+
--grid-row-order-description: 3;
|
|
304
|
+
--grid-row-order-navigation: 4;
|
|
305
|
+
|
|
306
|
+
/* Title Area Region Order */
|
|
307
|
+
--title-area-region-order-leading-visual: 0;
|
|
308
|
+
--title-area-region-order-title: 1;
|
|
309
|
+
--title-area-region-order-trailing-visual: 2;
|
|
310
|
+
|
|
311
|
+
/* Context Area Region Order */
|
|
312
|
+
--context-area-region-order-parent-link: 0;
|
|
313
|
+
--context-area-region-order-context-bar: 1;
|
|
314
|
+
--context-area-region-order-context-area-actions: 2;
|
|
315
|
+
|
|
316
|
+
display: grid;
|
|
317
|
+
grid-template-columns: auto auto auto auto 1fr;
|
|
318
|
+
grid-template-areas:
|
|
319
|
+
'context-area context-area context-area context-area context-area'
|
|
320
|
+
'leading-action breadcrumbs title-area trailing-action actions'
|
|
321
|
+
'description description description description description'
|
|
322
|
+
'navigation navigation navigation navigation navigation';
|
|
323
|
+
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.page-header__context-area {
|
|
327
|
+
grid-area: context-area;
|
|
328
|
+
grid-row: var(--grid-row-order-context-area);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.page-header__title-area {
|
|
332
|
+
grid-area: title-area;
|
|
333
|
+
grid-row: var(--grid-row-order-title-area);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.page-header__title {
|
|
337
|
+
order: var(--title-area-region-order-title);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.page-header__leading-action {
|
|
341
|
+
grid-area: leading-action;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.page-header__leading_visual {
|
|
345
|
+
order: var(--title-area-region-order-leading-visual);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.page-header__breadcrumbs {
|
|
349
|
+
grid-row: var(--grid-row-order-breadcrumbs);
|
|
350
|
+
grid-area: breadcrumbs;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.page-header__actions {
|
|
354
|
+
grid-area: actions;
|
|
355
|
+
grid-row: var(--grid-row-order-actions);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.page-header__description {
|
|
359
|
+
grid-row: var(--grid-row-order-description);
|
|
360
|
+
grid-area: description;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.page-header__navigation {
|
|
364
|
+
grid-row: var(--grid-row-order-navigation);
|
|
365
|
+
grid-area: navigation;
|
|
366
|
+
}
|
|
262
367
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
export { TV, VariantProps } from 'tailwind-variants';
|
|
2
2
|
export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.mjs';
|
|
3
3
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.mjs';
|
|
4
|
+
export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.mjs';
|
|
4
5
|
export { ButtonVariantProps, button } from './components/button.mjs';
|
|
5
6
|
export { CalendarVariantProps, calendar } from './components/calendar.mjs';
|
|
6
7
|
export { CardSlots, CardVariantProps, card } from './components/card.mjs';
|
|
8
|
+
export { CheckboxVariantProps, checkbox } from './components/checkbox.mjs';
|
|
7
9
|
export { ChipSlots, ChipVariantProps, chip } from './components/chip.mjs';
|
|
10
|
+
export { CodeVariantProps, code } from './components/code.mjs';
|
|
8
11
|
export { CommandVariants, command } from './components/command.mjs';
|
|
12
|
+
export { DataTableVariants, dataTable } from './components/data-table.mjs';
|
|
9
13
|
export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs';
|
|
10
14
|
export { DrawerVariantProps, drawer } from './components/drawer.mjs';
|
|
11
15
|
export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.mjs';
|
|
16
|
+
export { HeadingVariantProps, heading } from './components/heading.mjs';
|
|
12
17
|
export { InputVariantProps, input, passwordInput } from './components/input.mjs';
|
|
18
|
+
export { PageHeaderVariantProps, pageHeader } from './components/page-header.mjs';
|
|
13
19
|
export { PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
|
|
14
20
|
export { PopoverVariants, popover } from './components/popover.mjs';
|
|
21
|
+
export { skeleton } from './components/skeleton.mjs';
|
|
15
22
|
export { SpinnerVariants, spinner } from './components/spinner.mjs';
|
|
23
|
+
export { TableSlots, TableVariantProps, table } from './components/table.mjs';
|
|
16
24
|
export { TooltipVariants, tooltip } from './components/tooltip.mjs';
|
|
17
25
|
export { SlotsToClasses } from './utils/types.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
export { TV, VariantProps } from 'tailwind-variants';
|
|
2
2
|
export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.js';
|
|
3
3
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js';
|
|
4
|
+
export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.js';
|
|
4
5
|
export { ButtonVariantProps, button } from './components/button.js';
|
|
5
6
|
export { CalendarVariantProps, calendar } from './components/calendar.js';
|
|
6
7
|
export { CardSlots, CardVariantProps, card } from './components/card.js';
|
|
8
|
+
export { CheckboxVariantProps, checkbox } from './components/checkbox.js';
|
|
7
9
|
export { ChipSlots, ChipVariantProps, chip } from './components/chip.js';
|
|
10
|
+
export { CodeVariantProps, code } from './components/code.js';
|
|
8
11
|
export { CommandVariants, command } from './components/command.js';
|
|
12
|
+
export { DataTableVariants, dataTable } from './components/data-table.js';
|
|
9
13
|
export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js';
|
|
10
14
|
export { DrawerVariantProps, drawer } from './components/drawer.js';
|
|
11
15
|
export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.js';
|
|
16
|
+
export { HeadingVariantProps, heading } from './components/heading.js';
|
|
12
17
|
export { InputVariantProps, input, passwordInput } from './components/input.js';
|
|
18
|
+
export { PageHeaderVariantProps, pageHeader } from './components/page-header.js';
|
|
13
19
|
export { PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
|
|
14
20
|
export { PopoverVariants, popover } from './components/popover.js';
|
|
21
|
+
export { skeleton } from './components/skeleton.js';
|
|
15
22
|
export { SpinnerVariants, spinner } from './components/spinner.js';
|
|
23
|
+
export { TableSlots, TableVariantProps, table } from './components/table.js';
|
|
16
24
|
export { TooltipVariants, tooltip } from './components/tooltip.js';
|
|
17
25
|
export { SlotsToClasses } from './utils/types.js';
|