@tecsinapse/cortex-core 0.3.0-beta.7 → 0.3.0-beta.9
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/cjs/components/common/common.js +1 -1
- package/dist/cjs/components/input/input.js +3 -3
- package/dist/cjs/components/select/select.js +1 -1
- package/dist/esm/components/common/common.js +1 -1
- package/dist/esm/components/input/input.js +3 -3
- package/dist/esm/components/select/select.js +1 -1
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/select/select.d.ts +2 -2
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ const overlay = tailwindVariants.tv({
|
|
|
6
6
|
base: "fixed",
|
|
7
7
|
variants: {
|
|
8
8
|
show: {
|
|
9
|
-
true: "bg-opacity-50
|
|
9
|
+
true: "bg-opacity-50 z-[0] bg-black h-full w-full left-0 top-0 transition cursor-pointer",
|
|
10
10
|
false: "invisible"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -4,7 +4,7 @@ var tailwindVariants = require('tailwind-variants');
|
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
|
|
6
6
|
const inputBaseStyles = tailwindVariants.tv({
|
|
7
|
-
base: "relative min-h-[44px] h-auto flex px-centi py-1.5 focus-within:outline focus-within:outline-1 text-base font-bold items-center
|
|
7
|
+
base: "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent",
|
|
8
8
|
variants: {
|
|
9
9
|
intent: {
|
|
10
10
|
default: [
|
|
@@ -44,7 +44,7 @@ const labelBaseStyles = tailwindVariants.tv({
|
|
|
44
44
|
default: [
|
|
45
45
|
"text-secondary-medium",
|
|
46
46
|
"peer-focus:text-secondary-medium",
|
|
47
|
-
"peer-placeholder-shown:text-secondary-
|
|
47
|
+
"peer-placeholder-shown:text-secondary-medium"
|
|
48
48
|
],
|
|
49
49
|
success: ["text-success-medium"],
|
|
50
50
|
warning: ["text-warning-medium"],
|
|
@@ -63,7 +63,7 @@ const labelStyle = ({ intent, placeholder, className }) => labelBaseStyles({
|
|
|
63
63
|
});
|
|
64
64
|
const inputBox = (placeholder, label2, className) => clsx.clsx(
|
|
65
65
|
className,
|
|
66
|
-
"peer relative outline-none placeholder:text-base placeholder:text-secondary-
|
|
66
|
+
"peer relative outline-none placeholder:text-base placeholder:text-secondary-medium placeholder-shown:top-0 disabled:placeholder:text-secondary-light disabled:text-secondary-light bg-transparent",
|
|
67
67
|
{
|
|
68
68
|
"focus:top-1.5": !placeholder && !!label2,
|
|
69
69
|
"top-1.5": !!label2
|
|
@@ -3,7 +3,7 @@
|
|
|
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: "flex flex-row gap-x-deca items-center text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium",
|
|
7
7
|
variants: {
|
|
8
8
|
selected: {
|
|
9
9
|
true: "text-primary-medium"
|
|
@@ -4,7 +4,7 @@ const overlay = tv({
|
|
|
4
4
|
base: "fixed",
|
|
5
5
|
variants: {
|
|
6
6
|
show: {
|
|
7
|
-
true: "bg-opacity-50
|
|
7
|
+
true: "bg-opacity-50 z-[0] bg-black h-full w-full left-0 top-0 transition cursor-pointer",
|
|
8
8
|
false: "invisible"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
|
|
4
4
|
const inputBaseStyles = tv({
|
|
5
|
-
base: "relative min-h-[44px] h-auto flex px-centi py-1.5 focus-within:outline focus-within:outline-1 text-base font-bold items-center
|
|
5
|
+
base: "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent",
|
|
6
6
|
variants: {
|
|
7
7
|
intent: {
|
|
8
8
|
default: [
|
|
@@ -42,7 +42,7 @@ const labelBaseStyles = tv({
|
|
|
42
42
|
default: [
|
|
43
43
|
"text-secondary-medium",
|
|
44
44
|
"peer-focus:text-secondary-medium",
|
|
45
|
-
"peer-placeholder-shown:text-secondary-
|
|
45
|
+
"peer-placeholder-shown:text-secondary-medium"
|
|
46
46
|
],
|
|
47
47
|
success: ["text-success-medium"],
|
|
48
48
|
warning: ["text-warning-medium"],
|
|
@@ -61,7 +61,7 @@ const labelStyle = ({ intent, placeholder, className }) => labelBaseStyles({
|
|
|
61
61
|
});
|
|
62
62
|
const inputBox = (placeholder, label2, className) => clsx(
|
|
63
63
|
className,
|
|
64
|
-
"peer relative outline-none placeholder:text-base placeholder:text-secondary-
|
|
64
|
+
"peer relative outline-none placeholder:text-base placeholder:text-secondary-medium placeholder-shown:top-0 disabled:placeholder:text-secondary-light disabled:text-secondary-light bg-transparent",
|
|
65
65
|
{
|
|
66
66
|
"focus:top-1.5": !placeholder && !!label2,
|
|
67
67
|
"top-1.5": !!label2
|
|
@@ -1,7 +1,7 @@
|
|
|
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: "flex flex-row gap-x-deca items-center text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium",
|
|
5
5
|
variants: {
|
|
6
6
|
selected: {
|
|
7
7
|
true: "text-primary-medium"
|
|
@@ -6,7 +6,7 @@ export declare const inputBaseStyles: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
warning: string[];
|
|
7
7
|
error: string[];
|
|
8
8
|
};
|
|
9
|
-
}, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 focus-within:outline focus-within:outline-1 text-base font-bold items-center
|
|
9
|
+
}, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent", import("tailwind-variants/dist/config").TVConfig<{
|
|
10
10
|
intent: {
|
|
11
11
|
default: string[];
|
|
12
12
|
success: string[];
|
|
@@ -34,7 +34,7 @@ export declare const inputBaseStyles: import("tailwind-variants").TVReturnType<{
|
|
|
34
34
|
warning: string[];
|
|
35
35
|
error: string[];
|
|
36
36
|
};
|
|
37
|
-
}, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 focus-within:outline focus-within:outline-1 text-base font-bold items-center
|
|
37
|
+
}, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent", import("tailwind-variants/dist/config").TVConfig<{
|
|
38
38
|
intent: {
|
|
39
39
|
default: string[];
|
|
40
40
|
success: string[];
|
|
@@ -2,7 +2,7 @@ export declare const option: import("tailwind-variants").TVReturnType<{
|
|
|
2
2
|
selected: {
|
|
3
3
|
true: string;
|
|
4
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<{
|
|
5
|
+
}, undefined, "flex flex-row gap-x-deca items-center 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
6
|
selected: {
|
|
7
7
|
true: string;
|
|
8
8
|
};
|
|
@@ -18,7 +18,7 @@ export declare const option: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
selected: {
|
|
19
19
|
true: string;
|
|
20
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<{
|
|
21
|
+
}, undefined, "flex flex-row gap-x-deca items-center 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
22
|
selected: {
|
|
23
23
|
true: string;
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.9",
|
|
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": "efc6657898e476d4e0f05e76569ff231b4155db8"
|
|
35
35
|
}
|