@tecsinapse/cortex-core 0.2.2-beta.1 → 0.3.0-beta.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.
|
@@ -3,20 +3,24 @@
|
|
|
3
3
|
var tailwindVariants = require('tailwind-variants');
|
|
4
4
|
|
|
5
5
|
const option = tailwindVariants.tv({
|
|
6
|
-
base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium"
|
|
6
|
+
base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium",
|
|
7
|
+
variants: {
|
|
8
|
+
selected: {
|
|
9
|
+
true: "text-primary-medium"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
7
12
|
});
|
|
8
13
|
const selectVariants = tailwindVariants.tv({
|
|
9
14
|
slots: {
|
|
10
|
-
dropdown: "text-base max-h-[30vh] w-full bg-white mt-0 rounded-mili overflow-y-scroll py-mili transition-all duration-300 origin-top-left absolute list-none z-30
|
|
15
|
+
dropdown: "flex flex-col gap-y-mili text-base max-h-[30vh] w-full bg-white mt-0 rounded-mili overflow-y-scroll py-mili transition-all duration-300 origin-top-left absolute list-none z-30 shadow-lg",
|
|
11
16
|
button: "flex w-full justify-between items-center bg-white relative min-h-[44px] h-auto flex px-centi py-1.5 text-base font-bold items-center bg-transparent border border-secondary-light rounded-mili",
|
|
12
17
|
groupedTitle: "font-bold text-secondary-medium",
|
|
13
|
-
containerGrouped: "
|
|
14
|
-
hintBody: "flex flex-row gap-1 mt-mili"
|
|
18
|
+
containerGrouped: "mx-centi"
|
|
15
19
|
},
|
|
16
20
|
variants: {
|
|
17
21
|
open: {
|
|
18
|
-
true: { dropdown: "-scale-y-1
|
|
19
|
-
false: { dropdown: "scale-y-0
|
|
22
|
+
true: { dropdown: "-scale-y-1 visible" },
|
|
23
|
+
false: { dropdown: "scale-y-0 invisible" }
|
|
20
24
|
},
|
|
21
25
|
disabled: {
|
|
22
26
|
true: {
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
|
|
3
3
|
const option = tv({
|
|
4
|
-
base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium"
|
|
4
|
+
base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium",
|
|
5
|
+
variants: {
|
|
6
|
+
selected: {
|
|
7
|
+
true: "text-primary-medium"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
});
|
|
6
11
|
const selectVariants = tv({
|
|
7
12
|
slots: {
|
|
8
|
-
dropdown: "text-base max-h-[30vh] w-full bg-white mt-0 rounded-mili overflow-y-scroll py-mili transition-all duration-300 origin-top-left absolute list-none z-30
|
|
13
|
+
dropdown: "flex flex-col gap-y-mili text-base max-h-[30vh] w-full bg-white mt-0 rounded-mili overflow-y-scroll py-mili transition-all duration-300 origin-top-left absolute list-none z-30 shadow-lg",
|
|
9
14
|
button: "flex w-full justify-between items-center bg-white relative min-h-[44px] h-auto flex px-centi py-1.5 text-base font-bold items-center bg-transparent border border-secondary-light rounded-mili",
|
|
10
15
|
groupedTitle: "font-bold text-secondary-medium",
|
|
11
|
-
containerGrouped: "
|
|
12
|
-
hintBody: "flex flex-row gap-1 mt-mili"
|
|
16
|
+
containerGrouped: "mx-centi"
|
|
13
17
|
},
|
|
14
18
|
variants: {
|
|
15
19
|
open: {
|
|
16
|
-
true: { dropdown: "-scale-y-1
|
|
17
|
-
false: { dropdown: "scale-y-0
|
|
20
|
+
true: { dropdown: "-scale-y-1 visible" },
|
|
21
|
+
false: { dropdown: "scale-y-0 invisible" }
|
|
18
22
|
},
|
|
19
23
|
disabled: {
|
|
20
24
|
true: {
|
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
export declare const option: import("tailwind-variants").TVReturnType<{
|
|
1
|
+
export declare const option: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
selected: {
|
|
3
|
+
true: string;
|
|
4
|
+
};
|
|
5
|
+
}, undefined, "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium", import("tailwind-variants/dist/config").TVConfig<{
|
|
6
|
+
selected: {
|
|
7
|
+
true: string;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
selected: {
|
|
11
|
+
true: string;
|
|
12
|
+
};
|
|
13
|
+
}>, {
|
|
14
|
+
selected: {
|
|
15
|
+
true: string;
|
|
16
|
+
};
|
|
17
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
18
|
+
selected: {
|
|
19
|
+
true: string;
|
|
20
|
+
};
|
|
21
|
+
}, undefined, "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium", import("tailwind-variants/dist/config").TVConfig<{
|
|
22
|
+
selected: {
|
|
23
|
+
true: string;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
selected: {
|
|
27
|
+
true: string;
|
|
28
|
+
};
|
|
29
|
+
}>, unknown, unknown, undefined>>;
|
|
2
30
|
export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
3
31
|
open: {
|
|
4
32
|
true: {
|
|
@@ -24,7 +52,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
24
52
|
button: string;
|
|
25
53
|
groupedTitle: string;
|
|
26
54
|
containerGrouped: string;
|
|
27
|
-
hintBody: string;
|
|
28
55
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
29
56
|
open: {
|
|
30
57
|
true: {
|
|
@@ -90,7 +117,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
90
117
|
button: string;
|
|
91
118
|
groupedTitle: string;
|
|
92
119
|
containerGrouped: string;
|
|
93
|
-
hintBody: string;
|
|
94
120
|
}, import("tailwind-variants").TVReturnType<{
|
|
95
121
|
open: {
|
|
96
122
|
true: {
|
|
@@ -116,7 +142,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
116
142
|
button: string;
|
|
117
143
|
groupedTitle: string;
|
|
118
144
|
containerGrouped: string;
|
|
119
|
-
hintBody: string;
|
|
120
145
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
121
146
|
open: {
|
|
122
147
|
true: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core library for tailwindcss based design",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"tailwindcss": ">=3.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "cc8903eb4c3ec693fa6dbd384bfc407f39e144ae"
|
|
35
35
|
}
|