@tecsinapse/cortex-core 1.2.0-beta.9 → 2.0.0-beta.0

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 clsx = require('clsx');
4
4
  var tailwindVariants = require('tailwind-variants');
5
5
 
6
6
  const inputBaseStyles = tailwindVariants.tv({
7
- base: "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent",
7
+ base: "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent has-[:disabled]:border-secondary-light has-[:disabled]:text-secondary-light",
8
8
  variants: {
9
9
  intent: {
10
10
  default: [
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var tailwindVariants = require('tailwind-variants');
4
+
5
+ const manager = tailwindVariants.tv({
6
+ base: "fixed rounded-micro p-deca bg-white shadow-xl flex transition bottom-deca right-deca z-modal",
7
+ variants: {
8
+ open: {
9
+ true: "scale-100 visible",
10
+ false: "invisible"
11
+ }
12
+ }
13
+ });
14
+
15
+ exports.manager = manager;
@@ -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/cjs/index.js CHANGED
@@ -18,6 +18,7 @@ var table = require('./components/table/table.js');
18
18
  var tag = require('./components/tag/tag.js');
19
19
  var toggle = require('./components/toggle/toggle.js');
20
20
  var tooltip = require('./components/tooltip/tooltip.js');
21
+ var manager = require('./components/manager/manager.js');
21
22
  var definitions = require('./tokens/definitions.js');
22
23
  var index = require('./utils/index.js');
23
24
 
@@ -59,6 +60,7 @@ exports.styleLabelElement = toggle.styleLabelElement;
59
60
  exports.toggle = toggle.toggle;
60
61
  exports.tooltip = tooltip.tooltip;
61
62
  exports.tooltipContainer = tooltip.tooltipContainer;
63
+ exports.manager = manager.manager;
62
64
  exports.borderColor = definitions.borderColor;
63
65
  exports.borderRadius = definitions.borderRadius;
64
66
  exports.borderWidth = definitions.borderWidth;
package/dist/default.css CHANGED
@@ -1,93 +1,192 @@
1
+ @import "tailwindcss";
2
+
1
3
  @theme {
2
- --color-primary-xlight: #fef9f0;
3
- --color-primary-light: #fccb83;
4
- --color-primary-medium: #f89907;
5
- --color-primary-dark: #ae6b05;
6
- --color-primary-xdark: #633d03;
7
- --color-secondary-xlight: #f8f7f7;
8
- --color-secondary-light: #c2bfbc;
9
- --color-secondary-medium: #85807a;
10
- --color-secondary-dark: #5d5955;
11
- --color-secondary-xdark: #353231;
12
- --color-info-xlight: #f0f8fe;
13
- --color-info-light: #85c7fa;
14
- --color-info-medium: #239bf6;
15
- --color-info-dark: #0873c4;
16
- --color-info-xdark: #043962;
17
- --color-success-xlight: #f3fcf8;
18
- --color-success-light: #99e6c9;
19
- --color-success-medium: #2db783;
20
- --color-success-dark: #238f67;
21
- --color-success-xdark: #14523b;
22
- --color-warning-xlight: #fffcf0;
23
- --color-warning-light: #ffe380;
24
- --color-warning-medium: #ffc700;
25
- --color-warning-dark: #cc9f00;
26
- --color-warning-xdark: #665000;
27
- --color-error-xlight: #fdf3f2;
28
- --color-error-light: #ee9891;
29
- --color-error-medium: #e04638;
30
- --color-error-dark: #9b2318;
31
- --color-error-xdark: #58240e;
32
- --color-miscellaneous-body: #f8f7f7;
33
- --spacing-nano: 0.125rem;
34
- --spacing-micro: 0.25rem;
35
- --spacing-mili: 0.5rem;
36
- --spacing-centi: 0.75rem;
37
- --spacing-deca: 1rem;
38
- --spacing-kilo: 1.5rem;
39
- --spacing-mega: 2rem;
40
- --spacing-giga: 2.5rem;
41
- --spacing-tera: 3rem;
42
- --spacing-peta: 3.5rem;
43
- --spacing-hexa: 4rem;
44
- --border-radius-nano: 0.125rem;
45
- --border-radius-micro: 0.25rem;
46
- --border-radius-mili: 0.5rem;
47
- --border-radius-centi: 1rem;
48
- --border-radius-deca: 1.5rem;
49
- --border-radius-pill: 999999px;
50
- --border-width-pico: 0.063rem;
51
- --border-width-nano: 0.125rem;
52
- --font-size-h5: 1rem;
53
- --line-height-h5: 1.5rem;
54
- --font-size-h4: 1.125rem;
55
- --line-height-h4: 1.688rem;
56
- --font-size-h3: 1.25rem;
57
- --line-height-h3: 2rem;
58
- --font-size-h2: 1.625rem;
59
- --line-height-h2: 2.375rem;
60
- --font-size-h1: 2rem;
61
- --line-height-h1: 2.625rem;
62
- --font-size-base: 0.875rem;
63
- --line-height-base: 1.313rem;
64
- --font-size-sub: 0.75rem;
65
- --line-height-sub: 1.125rem;
66
- --font-size-label: 0.625rem;
67
- --line-height-label: 0.75rem;
68
- --font-size-micro: 0.75rem;
69
- --font-size-mili: 0.875rem;
70
- --font-size-centi: 1rem;
71
- --font-size-deca: 1.125rem;
72
- --font-size-kilo: 1.5rem;
73
- --font-size-mega: 2rem;
74
- --box-shadow-default: 0 2px 8px rgba(0, 0, 0, 0.05);
75
- --border-color-success-light: #99E6C9;
76
- --font-family-sans: Lato, system-ui, -apple-system, BlinkMacSystemFont, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
77
- --font-family-mono: Consolas, monaco, monospace;
78
- --text-color-light: #fff;
79
- --text-color-medium: #85807a;
80
- --text-color-dark: #353231;
81
- --text-color-orange: #f89907;
82
- --z-index-default: 0;
83
- --z-index-absolute: 1;
84
- --z-index-select: 20;
85
- --z-index-input: 20;
86
- --z-index-popover: 30;
87
- --z-index-tooltip: 40;
88
- --z-index-header: 600;
89
- --z-index-backdrop: 700;
90
- --z-index-drawer: 700;
91
- --z-index-sidebar: 800;
92
- --z-index-modal: 1000;
4
+ /* Colors - primary */
5
+ --color-primary-xlight: #fef9f0;
6
+ --color-primary-light: #fccb83;
7
+ --color-primary-medium: #f89907;
8
+ --color-primary-dark: #ae6b05;
9
+ --color-primary-xdark: #633d03;
10
+
11
+ /* Colors - secondary */
12
+ --color-secondary-xlight: #f8f7f7;
13
+ --color-secondary-light: #c2bfbc;
14
+ --color-secondary-medium: #85807a;
15
+ --color-secondary-dark: #5d5955;
16
+ --color-secondary-xdark: #353231;
17
+
18
+ /* Colors - info */
19
+ --color-info-xlight: #f0f8fe;
20
+ --color-info-light: #85c7fa;
21
+ --color-info-medium: #239bf6;
22
+ --color-info-dark: #0873c4;
23
+ --color-info-xdark: #043962;
24
+
25
+ /* Colors - success / warning / error */
26
+ --color-success-xlight: #f3fcf8;
27
+ --color-success-light: #99e6c9;
28
+ --color-success-medium: #2db783;
29
+ --color-success-dark: #238f67;
30
+ --color-success-xdark: #14523b;
31
+
32
+ --color-warning-xlight: #fffcf0;
33
+ --color-warning-light: #ffe380;
34
+ --color-warning-medium: #ffc700;
35
+ --color-warning-dark: #cc9f00;
36
+ --color-warning-xdark: #665000;
37
+
38
+ --color-error-xlight: #fdf3f2;
39
+ --color-error-light: #ee9891;
40
+ --color-error-medium: #e04638;
41
+ --color-error-dark: #9b2318;
42
+ --color-error-xdark: #58240e;
43
+
44
+ /* Misc */
45
+ --color-body: #f8f7f7;
46
+
47
+ /* Spacing */
48
+ --spacing-nano: 0.125rem;
49
+ --spacing-micro: 0.25rem;
50
+ --spacing-mili: 0.5rem;
51
+ --spacing-centi: 0.75rem;
52
+ --spacing-deca: 1rem;
53
+ --spacing-kilo: 1.5rem;
54
+ --spacing-mega: 2rem;
55
+ --spacing-giga: 2.5rem;
56
+ --spacing-tera: 3rem;
57
+ --spacing-peta: 3.5rem;
58
+ --spacing-hexa: 4rem;
59
+
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
+
68
+ /* Border width */
69
+ --border-width-pico: 0.063rem;
70
+ --border-width-nano: 0.125rem;
71
+
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-index-default: 0;
138
+ --z-index-absolute: 1;
139
+ --z-index-select: 20;
140
+ --z-index-input: 20;
141
+ --z-index-popover: 30;
142
+ --z-index-tooltip: 40;
143
+ --z-index-header: 600;
144
+ --z-index-backdrop: 700;
145
+ --z-index-drawer: 700;
146
+ --z-index-sidebar: 800;
147
+ --z-index-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 {
165
+ opacity: 0;
166
+ }
167
+
168
+ to {
169
+ opacity: 1;
170
+ }
171
+ }
172
+
173
+ @keyframes progress {
174
+ 0% {
175
+ transform: translateX(0) scaleX(0);
176
+ }
177
+
178
+ 40% {
179
+ transform: translateX(0) scaleX(0.4);
180
+ }
181
+
182
+ 100% {
183
+ transform: translateX(100%) scaleX(0.5);
184
+ }
185
+ }
93
186
  }
187
+
188
+ @layer utilities {
189
+ .origin-left-right {
190
+ transform-origin: var(--transform-origin-left-right);
191
+ }
192
+ }
@@ -2,7 +2,7 @@ import { clsx } from 'clsx';
2
2
  import { tv } from 'tailwind-variants';
3
3
 
4
4
  const inputBaseStyles = tv({
5
- base: "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent",
5
+ base: "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent has-[:disabled]:border-secondary-light has-[:disabled]:text-secondary-light",
6
6
  variants: {
7
7
  intent: {
8
8
  default: [
@@ -0,0 +1,13 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const manager = tv({
4
+ base: "fixed rounded-micro p-deca bg-white shadow-xl flex transition bottom-deca right-deca z-modal",
5
+ variants: {
6
+ open: {
7
+ true: "scale-100 visible",
8
+ false: "invisible"
9
+ }
10
+ }
11
+ });
12
+
13
+ export { manager };
@@ -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",
package/dist/esm/index.js CHANGED
@@ -16,5 +16,6 @@ export { hr, tCell, tFoot, tHead, tHeadCell, tRoot, tRow } from './components/ta
16
16
  export { tag } from './components/tag/tag.js';
17
17
  export { styleInputElement, styleLabelElement, toggle } from './components/toggle/toggle.js';
18
18
  export { tooltip, tooltipContainer } from './components/tooltip/tooltip.js';
19
+ export { manager } from './components/manager/manager.js';
19
20
  export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor, zIndex } from './tokens/definitions.js';
20
21
  export { updateThemeColors } from './utils/index.js';
@@ -16,3 +16,4 @@ export * from './table/table';
16
16
  export * from './tag/tag';
17
17
  export * from './toggle/toggle';
18
18
  export * from './tooltip/tooltip';
19
+ export * from './manager/manager';
@@ -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 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent", {
9
+ }, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent has-[:disabled]:border-secondary-light has-[:disabled]:text-secondary-light", {
10
10
  intent: {
11
11
  default: string[];
12
12
  success: string[];
@@ -20,7 +20,7 @@ export declare const inputBaseStyles: import("tailwind-variants").TVReturnType<{
20
20
  warning: string[];
21
21
  error: string[];
22
22
  };
23
- }, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent", unknown, unknown, undefined>>;
23
+ }, undefined, "relative min-h-[44px] h-auto flex px-centi py-1.5 bg-white focus-within:outline focus-within:outline-1 text-base font-bold items-center border rounded-mili has-[:disabled]:bg-transparent has-[:disabled]:border-secondary-light has-[:disabled]:text-secondary-light", unknown, unknown, undefined>>;
24
24
  declare const labelBaseStyles: import("tailwind-variants").TVReturnType<{
25
25
  intent: {
26
26
  default: string[];
@@ -0,0 +1,16 @@
1
+ export declare const manager: import("tailwind-variants").TVReturnType<{
2
+ open: {
3
+ true: string;
4
+ false: string;
5
+ };
6
+ }, undefined, "fixed rounded-micro p-deca bg-white shadow-xl flex transition bottom-deca right-deca z-modal", {
7
+ open: {
8
+ true: string;
9
+ false: string;
10
+ };
11
+ }, undefined, import("tailwind-variants").TVReturnType<{
12
+ open: {
13
+ true: string;
14
+ false: string;
15
+ };
16
+ }, undefined, "fixed rounded-micro p-deca bg-white shadow-xl flex transition bottom-deca right-deca z-modal", unknown, unknown, undefined>>;
@@ -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.9",
3
+ "version": "2.0.0-beta.0",
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": "b7e6698f18e533fa52aa672c4cad4ec9b140751b"
38
- }
37
+ "gitHead": "093769fc2a963c315d0062216ca73f692ee3d385"
38
+ }