@tecsinapse/cortex-core 1.2.0-beta.10 → 1.2.0-beta.12

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 modal = tailwindVariants.tv({
6
- base: "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal",
6
+ base: "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 m-auto max-w-fit z-modal",
7
7
  variants: {
8
8
  open: {
9
9
  true: "scale-100 visible",
package/dist/default.css CHANGED
@@ -1,24 +1,28 @@
1
1
  @import "tailwindcss";
2
2
 
3
3
  @theme {
4
+ /* Colors - primary */
4
5
  --color-primary-xlight: #fef9f0;
5
6
  --color-primary-light: #fccb83;
6
7
  --color-primary-medium: #f89907;
7
8
  --color-primary-dark: #ae6b05;
8
9
  --color-primary-xdark: #633d03;
9
10
 
11
+ /* Colors - secondary */
10
12
  --color-secondary-xlight: #f8f7f7;
11
13
  --color-secondary-light: #c2bfbc;
12
14
  --color-secondary-medium: #85807a;
13
15
  --color-secondary-dark: #5d5955;
14
16
  --color-secondary-xdark: #353231;
15
17
 
18
+ /* Colors - info */
16
19
  --color-info-xlight: #f0f8fe;
17
20
  --color-info-light: #85c7fa;
18
21
  --color-info-medium: #239bf6;
19
22
  --color-info-dark: #0873c4;
20
23
  --color-info-xdark: #043962;
21
24
 
25
+ /* Colors - success / warning / error */
22
26
  --color-success-xlight: #f3fcf8;
23
27
  --color-success-light: #99e6c9;
24
28
  --color-success-medium: #2db783;
@@ -37,15 +41,10 @@
37
41
  --color-error-dark: #9b2318;
38
42
  --color-error-xdark: #58240e;
39
43
 
40
- --color-miscellaneous-body: #f8f7f7;
41
-
42
- --color-primary: var(--color-primary-medium);
43
- --color-secondary: var(--color-secondary-medium);
44
- --color-dark: var(--color-secondary-xdark);
45
- --color-medium: var(--color-secondary-medium);
46
- --color-light: #fff;
47
- --color-orange: var(--color-primary-medium);
44
+ /* Misc */
45
+ --color-body: #f8f7f7;
48
46
 
47
+ /* Spacing */
49
48
  --spacing-nano: 0.125rem;
50
49
  --spacing-micro: 0.25rem;
51
50
  --spacing-mili: 0.5rem;
@@ -58,62 +57,123 @@
58
57
  --spacing-peta: 3.5rem;
59
58
  --spacing-hexa: 4rem;
60
59
 
61
- --border-radius-nano: 0.125rem;
62
- --border-radius-micro: 0.25rem;
63
- --border-radius-mili: 0.5rem;
64
- --border-radius-centi: 1rem;
65
- --border-radius-deca: 1.5rem;
66
- --border-radius-pill: 999999px;
60
+ /* Radius */
61
+ --radius-nano: 0.125rem;
62
+ --radius-micro: 0.25rem;
63
+ --radius-mili: 0.5rem;
64
+ --radius-centi: 1rem;
65
+ --radius-deca: 1.5rem;
66
+ --radius-pill: 999999px;
67
67
 
68
+ /* Border width */
68
69
  --border-width-pico: 0.063rem;
69
70
  --border-width-nano: 0.125rem;
70
71
 
71
- --box-shadow-default: 0 2px 8px rgba(0, 0, 0, 0.05);
72
-
73
- --font-family-sans: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
74
- --font-family-mono: Consolas, Monaco, monospace;
75
-
76
- --font-size-h5: 1rem;
77
- --line-height-h5: 1.5rem;
78
- --font-size-h4: 1.125rem;
79
- --line-height-h4: 1.688rem;
80
- --font-size-h3: 1.25rem;
81
- --line-height-h3: 2rem;
82
- --font-size-h2: 1.625rem;
83
- --line-height-h2: 2.375rem;
84
- --font-size-h1: 2rem;
85
- --line-height-h1: 2.625rem;
86
-
87
- --font-size-base: 0.875rem;
88
- --line-height-base: 1.313rem;
89
- --font-size-sub: 0.75rem;
90
- --line-height-sub: 1.125rem;
91
- --font-size-label: 0.625rem;
92
- --line-height-label: 0.75rem;
93
-
94
- --font-size-micro: 0.75rem;
95
- --font-size-mili: 0.875rem;
96
- --font-size-centi: 1rem;
97
- --font-size-deca: 1.125rem;
98
- --font-size-kilo: 1.5rem;
99
- --font-size-mega: 2rem;
100
-
101
- --border-color-success-light: #99E6C9;
102
-
103
- --text-color-light: #fff;
104
- --text-color-medium: #85807a;
105
- --text-color-dark: #353231;
106
- --text-color-orange: #f89907;
107
-
108
- --z-index-default: 0;
109
- --z-index-absolute: 1;
110
- --z-index-select: 20;
111
- --z-index-input: 20;
112
- --z-index-popover: 30;
113
- --z-index-tooltip: 40;
114
- --z-index-header: 600;
115
- --z-index-backdrop: 700;
116
- --z-index-drawer: 700;
117
- --z-index-sidebar: 800;
118
- --z-index-modal: 1000;
72
+ /* Font families */
73
+ --font-sans: 'Lato', system-ui, -apple-system, 'BlinkMacSystemFont', 'sans-serif', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
74
+ --font-mono: Consolas, monaco, monospace;
75
+
76
+ /* Font sizes com line-height */
77
+
78
+ /* H5 */
79
+ --text-h5: 1rem;
80
+ --text-h5--line-height: 1.5rem;
81
+ --text-h5-lg: 1.5rem;
82
+
83
+ /* H4 */
84
+ --text-h4: 1.125rem;
85
+ --text-h4--line-height: 1.688rem;
86
+ --text-h4-lg: 1.688rem;
87
+
88
+ /* H3 */
89
+ --text-h3: 1.25rem;
90
+ --text-h3--line-height: 2rem;
91
+ --text-h3-lg: 2rem;
92
+
93
+ /* H2 */
94
+ --text-h2: 1.625rem;
95
+ --text-h2--line-height: 2.375rem;
96
+ --text-h2-lg: 2.375rem;
97
+
98
+ /* H1 */
99
+ --text-h1: 2rem;
100
+ --text-h1--line-height: 2.625rem;
101
+ --text-h1-lg: 2.625rem;
102
+
103
+ /* Base / Sub / Label */
104
+ --text-base: 0.875rem;
105
+ --text-base--line-height: 1.313rem;
106
+ --text-base-lg: 1.313rem;
107
+
108
+ --text-sub: 0.75rem;
109
+ --text-sub--line-height: 1.125rem;
110
+ --text-sub-lg: 1.125rem;
111
+
112
+ --text-label: 0.625rem;
113
+ --text-label--line-height: 0.75rem;
114
+ --text-label-lg: 0.75rem;
115
+
116
+ /* Icon sizes */
117
+ --text-micro: 0.75rem;
118
+ --text-mili: 0.875rem;
119
+ --text-centi: 1rem;
120
+ --text-deca: 1.125rem;
121
+ --text-kilo: 1.5rem;
122
+ --text-mega: 2rem;
123
+
124
+ /* Box shadow */
125
+ --shadow-default: 0 2px 8px rgba(0, 0, 0, 0.05);
126
+
127
+ /* Border colors */
128
+ --color-border-success-light: #99E6C9;
129
+
130
+ /* Text colors */
131
+ --color-text-light: #fff;
132
+ --color-text-medium: #85807a;
133
+ --color-text-dark: #353231;
134
+ --color-text-orange: #f89907;
135
+
136
+ /* Z-index */
137
+ --z-default: 0;
138
+ --z-absolute: 1;
139
+ --z-select: 20;
140
+ --z-input: 20;
141
+ --z-popover: 30;
142
+ --z-tooltip: 40;
143
+ --z-header: 600;
144
+ --z-backdrop: 700;
145
+ --z-drawer: 700;
146
+ --z-sidebar: 800;
147
+ --z-modal: 1000;
148
+
149
+ /* Opacity customizada */
150
+ --opacity-1: 1;
151
+
152
+ /* Duration customizada */
153
+ --duration-250: 250ms;
154
+
155
+ /* Animações customizadas */
156
+ --animate-opacity: opacity 1s ease-in-out;
157
+ --animate-progress: progress 1s infinite linear;
158
+
159
+ /* Transform origin customizado */
160
+ --transform-origin-left-right: 0% 50%;
161
+
162
+ /* Keyframes */
163
+ @keyframes opacity {
164
+ from { opacity: 0; }
165
+ to { opacity: 1; }
166
+ }
167
+
168
+ @keyframes progress {
169
+ 0% { transform: translateX(0) scaleX(0); }
170
+ 40% { transform: translateX(0) scaleX(0.4); }
171
+ 100% { transform: translateX(100%) scaleX(0.5); }
172
+ }
119
173
  }
174
+
175
+ @layer utilities {
176
+ .origin-left-right {
177
+ transform-origin: var(--transform-origin-left-right);
178
+ }
179
+ }
@@ -1,7 +1,7 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
 
3
3
  const modal = tv({
4
- base: "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal",
4
+ base: "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 m-auto max-w-fit z-modal",
5
5
  variants: {
6
6
  open: {
7
7
  true: "scale-100 visible",
@@ -3,7 +3,7 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
3
3
  true: string;
4
4
  false: string;
5
5
  };
6
- }, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal", {
6
+ }, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 m-auto max-w-fit z-modal", {
7
7
  open: {
8
8
  true: string;
9
9
  false: string;
@@ -13,4 +13,4 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
13
13
  true: string;
14
14
  false: string;
15
15
  };
16
- }, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal", unknown, unknown, undefined>>;
16
+ }, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 m-auto max-w-fit z-modal", unknown, unknown, undefined>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-core",
3
- "version": "1.2.0-beta.10",
3
+ "version": "1.2.0-beta.12",
4
4
  "license": "MIT",
5
5
  "description": "Core library for tailwindcss based design",
6
6
  "main": "dist/esm/index.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "clsx": "2.1.1",
20
- "tailwind-variants": "1.0.0"
20
+ "tailwind-variants": "3.1.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "rollup-plugin-copy": "^3.4.0"
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://tecsinapse.github.io/design-system/",
34
34
  "peerDependencies": {
35
- "tailwindcss": ">=3.3.0"
35
+ "tailwindcss": "^4.1.16"
36
36
  },
37
- "gitHead": "877d6660ed42458f5d6b76dd2b09f42fe5c59a6f"
37
+ "gitHead": "c58714213817635c3f432931f4a1dc4b74106d9e"
38
38
  }