@tecsinapse/cortex-core 1.2.0-beta.14 → 1.2.0-beta.15
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/manager/manager.js +15 -0
- package/dist/cjs/index.js +2 -0
- package/dist/default.css +192 -0
- package/dist/esm/components/manager/manager.js +13 -0
- package/dist/esm/index.js +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/manager/manager.d.ts +16 -0
- package/package.json +3 -3
|
@@ -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;
|
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
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@theme {
|
|
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
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@layer utilities {
|
|
189
|
+
.origin-left-right {
|
|
190
|
+
transform-origin: var(--transform-origin-left-right);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -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 };
|
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';
|
|
@@ -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>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core library for tailwindcss based design",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"tailwindcss": "^4.1.16"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
38
|
-
}
|
|
37
|
+
"gitHead": "ca3d4658b6b1481f91f52838f667c41cc1da0579"
|
|
38
|
+
}
|