@tecsinapse/cortex-core 0.1.0 → 0.1.1

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,7 +3,7 @@
3
3
  var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const snackbarStyles = tailwindVariants.tv({
6
- base: "animate-bottomToTop text-base font-bold p-mili flex justify-between fixed rounded-mili left-[50%] bottom-deca",
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",
@@ -15,13 +15,13 @@ const preset = {
15
15
  boxShadow: definitions.boxShadow,
16
16
  borderColor: definitions.borderColor,
17
17
  keyframes: {
18
- bottomToTop: {
19
- "0%": { opacity: 0, transform: "translateY(100%)" },
20
- "100%": { opacity: 1, transform: "translateY(0)" }
18
+ opacity: {
19
+ "0%": { opacity: 0 },
20
+ "100%": { opacity: 1 }
21
21
  }
22
22
  },
23
23
  animation: {
24
- bottomToTop: "bottomToTop 1s ease-in-out"
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-bottomToTop text-base font-bold p-mili flex justify-between fixed rounded-mili left-[50%] bottom-deca",
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",
@@ -13,13 +13,13 @@ const preset = {
13
13
  boxShadow,
14
14
  borderColor,
15
15
  keyframes: {
16
- bottomToTop: {
17
- "0%": { opacity: 0, transform: "translateY(100%)" },
18
- "100%": { opacity: 1, transform: "translateY(0)" }
16
+ opacity: {
17
+ "0%": { opacity: 0 },
18
+ "100%": { opacity: 1 }
19
19
  }
20
20
  },
21
21
  animation: {
22
- bottomToTop: "bottomToTop 1s ease-in-out"
22
+ opacity: "opacity 1s ease-in-out"
23
23
  }
24
24
  }
25
25
  }
@@ -8,7 +8,7 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
8
8
  info: string;
9
9
  warning: string;
10
10
  };
11
- }, undefined, "animate-bottomToTop text-base font-bold p-mili flex justify-between fixed rounded-mili left-[50%] bottom-deca", import("tailwind-variants/dist/config").TVConfig<{
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-bottomToTop text-base font-bold p-mili flex justify-between fixed rounded-mili left-[50%] bottom-deca", import("tailwind-variants/dist/config").TVConfig<{
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;
@@ -106,19 +106,17 @@ declare const preset: {
106
106
  'success-light': string;
107
107
  };
108
108
  keyframes: {
109
- bottomToTop: {
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
- bottomToTop: string;
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.0",
3
+ "version": "0.1.1",
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": "68c1b2e4efabf493290234c3d97754f39e82b861"
23
+ "gitHead": "c990b8df085b943b02ce3d1aa7fb63c0b8aa6910"
24
24
  }