@tecsinapse/cortex-core 0.1.0 → 0.1.2
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/badge/badge.js +1 -1
- package/dist/cjs/components/snackbar/snackbar.js +1 -1
- package/dist/cjs/preset/index.js +4 -4
- package/dist/esm/components/badge/badge.js +1 -1
- package/dist/esm/components/snackbar/snackbar.js +1 -1
- package/dist/esm/preset/index.js +4 -4
- package/dist/types/components/badge/badge.d.ts +3 -3
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/snackbar/snackbar.d.ts +3 -3
- package/dist/types/components/tag/tag.d.ts +1 -1
- package/dist/types/preset/index.d.ts +2 -4
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ const badgeStyles = tailwindVariants.tv({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const containerBadge = tailwindVariants.tv({
|
|
22
|
-
base: "relative items-center justify-center self-center"
|
|
22
|
+
base: "relative items-center justify-center self-center w-fit"
|
|
23
23
|
});
|
|
24
24
|
const badge = (props) => badgeStyles(props);
|
|
25
25
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tailwindVariants = require('tailwind-variants');
|
|
4
4
|
|
|
5
5
|
const snackbarStyles = tailwindVariants.tv({
|
|
6
|
-
base: "animate-
|
|
6
|
+
base: "animate-opacity fixed left-1/2 translate-x-[-50%] translate-y-[-50%] bottom-deca my-0 mx-auto max-w-[600px] shadow-default text-base font-bold p-mili rounded-mili",
|
|
7
7
|
variants: {
|
|
8
8
|
intent: {
|
|
9
9
|
primary: "bg-primary-xlight text-primary-medium",
|
package/dist/cjs/preset/index.js
CHANGED
|
@@ -15,13 +15,13 @@ const preset = {
|
|
|
15
15
|
boxShadow: definitions.boxShadow,
|
|
16
16
|
borderColor: definitions.borderColor,
|
|
17
17
|
keyframes: {
|
|
18
|
-
|
|
19
|
-
"0%": { opacity: 0
|
|
20
|
-
"100%": { opacity: 1
|
|
18
|
+
opacity: {
|
|
19
|
+
"0%": { opacity: 0 },
|
|
20
|
+
"100%": { opacity: 1 }
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
animation: {
|
|
24
|
-
|
|
24
|
+
opacity: "opacity 1s ease-in-out"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
|
|
3
3
|
const snackbarStyles = tv({
|
|
4
|
-
base: "animate-
|
|
4
|
+
base: "animate-opacity fixed left-1/2 translate-x-[-50%] translate-y-[-50%] bottom-deca my-0 mx-auto max-w-[600px] shadow-default text-base font-bold p-mili rounded-mili",
|
|
5
5
|
variants: {
|
|
6
6
|
intent: {
|
|
7
7
|
primary: "bg-primary-xlight text-primary-medium",
|
package/dist/esm/preset/index.js
CHANGED
|
@@ -13,13 +13,13 @@ const preset = {
|
|
|
13
13
|
boxShadow,
|
|
14
14
|
borderColor,
|
|
15
15
|
keyframes: {
|
|
16
|
-
|
|
17
|
-
"0%": { opacity: 0
|
|
18
|
-
"100%": { opacity: 1
|
|
16
|
+
opacity: {
|
|
17
|
+
"0%": { opacity: 0 },
|
|
18
|
+
"100%": { opacity: 1 }
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
animation: {
|
|
22
|
-
|
|
22
|
+
opacity: "opacity 1s ease-in-out"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VariantProps } from 'tailwind-variants';
|
|
1
|
+
import { VariantProps, ClassProp } from 'tailwind-variants';
|
|
2
2
|
declare const badgeStyles: import("tailwind-variants").TVReturnType<{
|
|
3
3
|
intent: {
|
|
4
4
|
primary: string;
|
|
@@ -63,7 +63,7 @@ declare const badgeStyles: import("tailwind-variants").TVReturnType<{
|
|
|
63
63
|
info: string;
|
|
64
64
|
};
|
|
65
65
|
}>, unknown, unknown, undefined>>;
|
|
66
|
-
export declare const containerBadge: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative items-center justify-center self-center", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "relative items-center justify-center self-center", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
67
|
-
export type BadgeVariants = VariantProps<typeof badgeStyles
|
|
66
|
+
export declare const containerBadge: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative items-center justify-center self-center w-fit", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "relative items-center justify-center self-center w-fit", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
67
|
+
export type BadgeVariants = VariantProps<typeof badgeStyles> & ClassProp;
|
|
68
68
|
export declare const badge: (props?: BadgeVariants) => string;
|
|
69
69
|
export {};
|
|
@@ -106,7 +106,7 @@ export interface LabelVariants extends VariantProps<typeof labelBaseStyles> {
|
|
|
106
106
|
export declare const labelStyle: ({ intent, placeholder, className }: LabelVariants) => string;
|
|
107
107
|
export declare const inputBox: (placeholder?: string, label?: string, className?: string) => string;
|
|
108
108
|
export type InputBaseVariants = VariantProps<typeof inputBaseStyles> & ClassProp;
|
|
109
|
-
export declare const input: (props
|
|
109
|
+
export declare const input: (props?: InputBaseVariants) => string;
|
|
110
110
|
export type LabelBaseVariants = ClassProp & VariantProps<typeof labelBaseStyles> & {
|
|
111
111
|
placeholder?: string;
|
|
112
112
|
};
|
|
@@ -8,7 +8,7 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
|
|
|
8
8
|
info: string;
|
|
9
9
|
warning: string;
|
|
10
10
|
};
|
|
11
|
-
}, undefined, "animate-
|
|
11
|
+
}, undefined, "animate-opacity fixed left-1/2 translate-x-[-50%] translate-y-[-50%] bottom-deca my-0 mx-auto max-w-[600px] shadow-default text-base font-bold p-mili rounded-mili", import("tailwind-variants/dist/config").TVConfig<{
|
|
12
12
|
intent: {
|
|
13
13
|
primary: string;
|
|
14
14
|
secondary: string;
|
|
@@ -44,7 +44,7 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
info: string;
|
|
45
45
|
warning: string;
|
|
46
46
|
};
|
|
47
|
-
}, undefined, "animate-
|
|
47
|
+
}, undefined, "animate-opacity fixed left-1/2 translate-x-[-50%] translate-y-[-50%] bottom-deca my-0 mx-auto max-w-[600px] shadow-default text-base font-bold p-mili rounded-mili", import("tailwind-variants/dist/config").TVConfig<{
|
|
48
48
|
intent: {
|
|
49
49
|
primary: string;
|
|
50
50
|
secondary: string;
|
|
@@ -63,6 +63,6 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
|
|
|
63
63
|
warning: string;
|
|
64
64
|
};
|
|
65
65
|
}>, unknown, unknown, undefined>>;
|
|
66
|
-
type SnackbarVariants = VariantProps<typeof snackbarStyles> & ClassProp;
|
|
66
|
+
export type SnackbarVariants = VariantProps<typeof snackbarStyles> & ClassProp;
|
|
67
67
|
export declare const snackbar: (props?: SnackbarVariants) => string;
|
|
68
68
|
export {};
|
|
@@ -57,5 +57,5 @@ declare const tagStyles: import("tailwind-variants").TVReturnType<{
|
|
|
57
57
|
};
|
|
58
58
|
}>, unknown, unknown, undefined>>;
|
|
59
59
|
export type TagVariants = VariantProps<typeof tagStyles> & ClassProp;
|
|
60
|
-
export declare const tag: (props
|
|
60
|
+
export declare const tag: (props?: TagVariants) => string;
|
|
61
61
|
export {};
|
|
@@ -106,19 +106,17 @@ declare const preset: {
|
|
|
106
106
|
'success-light': string;
|
|
107
107
|
};
|
|
108
108
|
keyframes: {
|
|
109
|
-
|
|
109
|
+
opacity: {
|
|
110
110
|
'0%': {
|
|
111
111
|
opacity: number;
|
|
112
|
-
transform: string;
|
|
113
112
|
};
|
|
114
113
|
'100%': {
|
|
115
114
|
opacity: number;
|
|
116
|
-
transform: string;
|
|
117
115
|
};
|
|
118
116
|
};
|
|
119
117
|
};
|
|
120
118
|
animation: {
|
|
121
|
-
|
|
119
|
+
opacity: string;
|
|
122
120
|
};
|
|
123
121
|
};
|
|
124
122
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"tailwind-merge": "^2.0.0",
|
|
21
21
|
"tailwind-variants": "^0.1.18"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "dfdf993b5ed292d922dd8f7c1e1bc7e7057e194a"
|
|
24
24
|
}
|