@tecsinapse/cortex-core 0.3.0-beta.5 → 0.3.0-beta.7
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.
|
@@ -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
|
|
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 bg-transparent border rounded-mili",
|
|
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-xdark"
|
|
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-xdark placeholder-shown:top-0 disabled:bg-opacity-0 disabled:placeholder:text-secondary-light bg-transparent",
|
|
67
67
|
{
|
|
68
68
|
"focus:top-1.5": !placeholder && !!label2,
|
|
69
69
|
"top-1.5": !!label2
|
|
@@ -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
|
|
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 bg-transparent border rounded-mili",
|
|
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-xdark"
|
|
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-xdark placeholder-shown:top-0 disabled:bg-opacity-0 disabled:placeholder:text-secondary-light bg-transparent",
|
|
65
65
|
{
|
|
66
66
|
"focus:top-1.5": !placeholder && !!label2,
|
|
67
67
|
"top-1.5": !!label2
|
|
@@ -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
|
|
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 bg-transparent border rounded-mili", 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
|
|
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 bg-transparent border rounded-mili", import("tailwind-variants/dist/config").TVConfig<{
|
|
38
38
|
intent: {
|
|
39
39
|
default: string[];
|
|
40
40
|
success: string[];
|
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.7",
|
|
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": "61d923bfc8f23ec1d0347cdf889f3841c468ff5c"
|
|
35
35
|
}
|