@tecsinapse/cortex-core 0.2.2-beta.0 → 0.2.2-beta.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.
@@ -15,8 +15,8 @@ const selectVariants = tailwindVariants.tv({
15
15
  },
16
16
  variants: {
17
17
  open: {
18
- true: { dropdown: "-scale-y-1 opacity-1" },
19
- false: { dropdown: "scale-y-0 opacity-0" }
18
+ true: { dropdown: "-scale-y-1 visible" },
19
+ false: { dropdown: "scale-y-0 invisible" }
20
20
  },
21
21
  disabled: {
22
22
  true: {
@@ -3,10 +3,10 @@
3
3
  var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const snackbarStyles = tailwindVariants.tv({
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",
6
+ base: "animate-opacity flex flex-1 shadow-default text-base font-bold p-mili rounded-mili",
7
7
  variants: {
8
8
  intent: {
9
- primary: "bg-primary-xlight text-primary-medium",
9
+ default: "bg-primary-xlight text-primary-medium",
10
10
  secondary: "bg-secondary-xlight text-secondary-medium",
11
11
  success: "bg-success-xlight text-success-medium",
12
12
  error: "bg-error-xlight text-error-medium",
@@ -15,7 +15,7 @@ const snackbarStyles = tailwindVariants.tv({
15
15
  }
16
16
  },
17
17
  defaultVariants: {
18
- intent: "primary"
18
+ intent: "default"
19
19
  }
20
20
  });
21
21
  const snackbar = (props) => snackbarStyles(props);
@@ -13,8 +13,8 @@ const selectVariants = tv({
13
13
  },
14
14
  variants: {
15
15
  open: {
16
- true: { dropdown: "-scale-y-1 opacity-1" },
17
- false: { dropdown: "scale-y-0 opacity-0" }
16
+ true: { dropdown: "-scale-y-1 visible" },
17
+ false: { dropdown: "scale-y-0 invisible" }
18
18
  },
19
19
  disabled: {
20
20
  true: {
@@ -1,10 +1,10 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
 
3
3
  const snackbarStyles = tv({
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",
4
+ base: "animate-opacity flex flex-1 shadow-default text-base font-bold p-mili rounded-mili",
5
5
  variants: {
6
6
  intent: {
7
- primary: "bg-primary-xlight text-primary-medium",
7
+ default: "bg-primary-xlight text-primary-medium",
8
8
  secondary: "bg-secondary-xlight text-secondary-medium",
9
9
  success: "bg-success-xlight text-success-medium",
10
10
  error: "bg-error-xlight text-error-medium",
@@ -13,7 +13,7 @@ const snackbarStyles = tv({
13
13
  }
14
14
  },
15
15
  defaultVariants: {
16
- intent: "primary"
16
+ intent: "default"
17
17
  }
18
18
  });
19
19
  const snackbar = (props) => snackbarStyles(props);
@@ -1,16 +1,16 @@
1
1
  import { ClassProp, VariantProps } from 'tailwind-variants';
2
2
  declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
3
3
  intent: {
4
- primary: string;
4
+ default: string;
5
5
  secondary: string;
6
6
  success: string;
7
7
  error: string;
8
8
  info: string;
9
9
  warning: string;
10
10
  };
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<{
11
+ }, undefined, "animate-opacity flex flex-1 shadow-default text-base font-bold p-mili rounded-mili", import("tailwind-variants/dist/config").TVConfig<{
12
12
  intent: {
13
- primary: string;
13
+ default: string;
14
14
  secondary: string;
15
15
  success: string;
16
16
  error: string;
@@ -19,7 +19,7 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
19
19
  };
20
20
  }, {
21
21
  intent: {
22
- primary: string;
22
+ default: string;
23
23
  secondary: string;
24
24
  success: string;
25
25
  error: string;
@@ -28,7 +28,7 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
28
28
  };
29
29
  }>, {
30
30
  intent: {
31
- primary: string;
31
+ default: string;
32
32
  secondary: string;
33
33
  success: string;
34
34
  error: string;
@@ -37,16 +37,16 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
37
37
  };
38
38
  }, undefined, import("tailwind-variants").TVReturnType<{
39
39
  intent: {
40
- primary: string;
40
+ default: string;
41
41
  secondary: string;
42
42
  success: string;
43
43
  error: string;
44
44
  info: string;
45
45
  warning: string;
46
46
  };
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<{
47
+ }, undefined, "animate-opacity flex flex-1 shadow-default text-base font-bold p-mili rounded-mili", import("tailwind-variants/dist/config").TVConfig<{
48
48
  intent: {
49
- primary: string;
49
+ default: string;
50
50
  secondary: string;
51
51
  success: string;
52
52
  error: string;
@@ -55,7 +55,7 @@ declare const snackbarStyles: import("tailwind-variants").TVReturnType<{
55
55
  };
56
56
  }, {
57
57
  intent: {
58
- primary: string;
58
+ default: string;
59
59
  secondary: string;
60
60
  success: string;
61
61
  error: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-core",
3
- "version": "0.2.2-beta.0",
3
+ "version": "0.2.2-beta.2",
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": "c0748464b3ede06c6c907f81970fcc9eacf43bc0"
34
+ "gitHead": "0ecb7949c627cb5d2fe9395f148e48a0bb071599"
35
35
  }