@tecsinapse/cortex-core 1.2.0 → 2.0.0-beta.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.
- package/dist/cjs/components/common/common.js +10 -0
- package/dist/cjs/components/input/input.js +1 -1
- package/dist/cjs/components/modal/modal.js +1 -1
- package/dist/cjs/components/popover/popover.js +4 -0
- package/dist/cjs/index.js +4 -4
- package/dist/default.css +192 -0
- package/dist/esm/components/common/common.js +10 -1
- package/dist/esm/components/input/input.js +1 -1
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/popover/popover.js +4 -1
- package/dist/esm/index.js +2 -3
- package/dist/types/components/common/common.d.ts +16 -0
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/popover/popover.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/package.json +8 -5
- package/dist/cjs/preset/index.js +0 -40
- package/dist/esm/preset/index.js +0 -38
- package/dist/types/preset/index.d.ts +0 -152
|
@@ -11,5 +11,15 @@ const overlay = tailwindVariants.tv({
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
+
const pressableSurface = tailwindVariants.tv({
|
|
15
|
+
base: "rounded-mili flex flex-1 justify-center py-mili font-bold hover:cursor-pointer",
|
|
16
|
+
variants: {
|
|
17
|
+
selected: {
|
|
18
|
+
true: "border text-black border-secondary-light",
|
|
19
|
+
false: "text-secondary-medium hover:bg-secondary-xlight hover:border"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
14
23
|
|
|
15
24
|
exports.overlay = overlay;
|
|
25
|
+
exports.pressableSurface = pressableSurface;
|
|
@@ -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: [
|
|
@@ -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",
|
|
@@ -8,8 +8,12 @@ const popoverContainer = tailwindVariants.tv({
|
|
|
8
8
|
const popoverStyles = tailwindVariants.tv({
|
|
9
9
|
base: "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50"
|
|
10
10
|
});
|
|
11
|
+
const popoverItem = tailwindVariants.tv({
|
|
12
|
+
base: "p-deca flex flex-row space-x-mili items-center hover:bg-primary-light hover:cursor-pointer"
|
|
13
|
+
});
|
|
11
14
|
const popover = (props) => popoverStyles(props);
|
|
12
15
|
|
|
13
16
|
exports.popover = popover;
|
|
14
17
|
exports.popoverContainer = popoverContainer;
|
|
18
|
+
exports.popoverItem = popoverItem;
|
|
15
19
|
exports.popoverStyles = popoverStyles;
|
package/dist/cjs/index.js
CHANGED
|
@@ -19,9 +19,8 @@ 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
21
|
var manager = require('./components/manager/manager.js');
|
|
22
|
-
var index = require('./preset/index.js');
|
|
23
22
|
var definitions = require('./tokens/definitions.js');
|
|
24
|
-
var index
|
|
23
|
+
var index = require('./utils/index.js');
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
|
@@ -32,6 +31,7 @@ exports.buttonStyles = button.buttonStyles;
|
|
|
32
31
|
exports.card = card.card;
|
|
33
32
|
exports.checkbox = checkbox.checkbox;
|
|
34
33
|
exports.overlay = common.overlay;
|
|
34
|
+
exports.pressableSurface = common.pressableSurface;
|
|
35
35
|
exports.divider = divider.divider;
|
|
36
36
|
exports.drawer = drawer.drawer;
|
|
37
37
|
exports.hint = hint.hint;
|
|
@@ -43,6 +43,7 @@ exports.labelStyle = input.labelStyle;
|
|
|
43
43
|
exports.modal = modal.modal;
|
|
44
44
|
exports.popover = popover.popover;
|
|
45
45
|
exports.popoverContainer = popover.popoverContainer;
|
|
46
|
+
exports.popoverItem = popover.popoverItem;
|
|
46
47
|
exports.popoverStyles = popover.popoverStyles;
|
|
47
48
|
exports.radioButtonStyles = radioButton.radioButtonStyles;
|
|
48
49
|
exports.option = select.option;
|
|
@@ -62,7 +63,6 @@ exports.toggle = toggle.toggle;
|
|
|
62
63
|
exports.tooltip = tooltip.tooltip;
|
|
63
64
|
exports.tooltipContainer = tooltip.tooltipContainer;
|
|
64
65
|
exports.manager = manager.manager;
|
|
65
|
-
exports.preset = index;
|
|
66
66
|
exports.borderColor = definitions.borderColor;
|
|
67
67
|
exports.borderRadius = definitions.borderRadius;
|
|
68
68
|
exports.borderWidth = definitions.borderWidth;
|
|
@@ -73,4 +73,4 @@ exports.fontSize = definitions.fontSize;
|
|
|
73
73
|
exports.spacing = definitions.spacing;
|
|
74
74
|
exports.textColor = definitions.textColor;
|
|
75
75
|
exports.zIndex = definitions.zIndex;
|
|
76
|
-
exports.updateThemeColors = index
|
|
76
|
+
exports.updateThemeColors = index.updateThemeColors;
|
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
|
+
}
|
|
@@ -9,5 +9,14 @@ const overlay = tv({
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
const pressableSurface = tv({
|
|
13
|
+
base: "rounded-mili flex flex-1 justify-center py-mili font-bold hover:cursor-pointer",
|
|
14
|
+
variants: {
|
|
15
|
+
selected: {
|
|
16
|
+
true: "border text-black border-secondary-light",
|
|
17
|
+
false: "text-secondary-medium hover:bg-secondary-xlight hover:border"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
12
21
|
|
|
13
|
-
export { overlay };
|
|
22
|
+
export { overlay, pressableSurface };
|
|
@@ -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: [
|
|
@@ -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",
|
|
@@ -6,6 +6,9 @@ const popoverContainer = tv({
|
|
|
6
6
|
const popoverStyles = tv({
|
|
7
7
|
base: "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50"
|
|
8
8
|
});
|
|
9
|
+
const popoverItem = tv({
|
|
10
|
+
base: "p-deca flex flex-row space-x-mili items-center hover:bg-primary-light hover:cursor-pointer"
|
|
11
|
+
});
|
|
9
12
|
const popover = (props) => popoverStyles(props);
|
|
10
13
|
|
|
11
|
-
export { popover, popoverContainer, popoverStyles };
|
|
14
|
+
export { popover, popoverContainer, popoverItem, popoverStyles };
|
package/dist/esm/index.js
CHANGED
|
@@ -2,13 +2,13 @@ export { badge, containerBadge } from './components/badge/badge.js';
|
|
|
2
2
|
export { button, buttonStyles } from './components/button/button.js';
|
|
3
3
|
export { card } from './components/card/card.js';
|
|
4
4
|
export { checkbox } from './components/checkbox/checkbox.js';
|
|
5
|
-
export { overlay } from './components/common/common.js';
|
|
5
|
+
export { overlay, pressableSurface } from './components/common/common.js';
|
|
6
6
|
export { divider } from './components/divider/divider.js';
|
|
7
7
|
export { drawer } from './components/drawer/drawer.js';
|
|
8
8
|
export { hint } from './components/hint/hint.js';
|
|
9
9
|
export { input, inputBaseStyles, inputBox, label, labelStyle } from './components/input/input.js';
|
|
10
10
|
export { modal } from './components/modal/modal.js';
|
|
11
|
-
export { popover, popoverContainer, popoverStyles } from './components/popover/popover.js';
|
|
11
|
+
export { popover, popoverContainer, popoverItem, popoverStyles } from './components/popover/popover.js';
|
|
12
12
|
export { radioButtonStyles } from './components/radio-button/radio-button.js';
|
|
13
13
|
export { option, selectVariants } from './components/select/select.js';
|
|
14
14
|
export { snackbar } from './components/snackbar/snackbar.js';
|
|
@@ -17,6 +17,5 @@ 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
19
|
export { manager } from './components/manager/manager.js';
|
|
20
|
-
export { default as preset } from './preset/index.js';
|
|
21
20
|
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor, zIndex } from './tokens/definitions.js';
|
|
22
21
|
export { updateThemeColors } from './utils/index.js';
|
|
@@ -14,3 +14,19 @@ export declare const overlay: import("tailwind-variants").TVReturnType<{
|
|
|
14
14
|
false: string;
|
|
15
15
|
};
|
|
16
16
|
}, undefined, "fixed", unknown, unknown, undefined>>;
|
|
17
|
+
export declare const pressableSurface: import("tailwind-variants").TVReturnType<{
|
|
18
|
+
selected: {
|
|
19
|
+
true: string;
|
|
20
|
+
false: string;
|
|
21
|
+
};
|
|
22
|
+
}, undefined, "rounded-mili flex flex-1 justify-center py-mili font-bold hover:cursor-pointer", {
|
|
23
|
+
selected: {
|
|
24
|
+
true: string;
|
|
25
|
+
false: string;
|
|
26
|
+
};
|
|
27
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
28
|
+
selected: {
|
|
29
|
+
true: string;
|
|
30
|
+
false: string;
|
|
31
|
+
};
|
|
32
|
+
}, undefined, "rounded-mili flex flex-1 justify-center py-mili font-bold hover:cursor-pointer", unknown, unknown, undefined>>;
|
|
@@ -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[];
|
|
@@ -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>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClassProp, VariantProps } from 'tailwind-variants';
|
|
2
2
|
export declare const popoverContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "group relative inline-block", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "group relative inline-block", unknown, unknown, undefined>>;
|
|
3
3
|
export declare const popoverStyles: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50", unknown, unknown, undefined>>;
|
|
4
|
+
export declare const popoverItem: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "p-deca flex flex-row space-x-mili items-center hover:bg-primary-light hover:cursor-pointer", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "p-deca flex flex-row space-x-mili items-center hover:bg-primary-light hover:cursor-pointer", unknown, unknown, undefined>>;
|
|
4
5
|
export type popoverVariants = VariantProps<typeof popoverStyles> & ClassProp;
|
|
5
6
|
export declare const popover: (props: popoverVariants) => string;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core library for tailwindcss based design",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"clsx": "2.1.1",
|
|
20
|
-
"tailwind-variants": "1.
|
|
20
|
+
"tailwind-variants": "3.1.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"rollup-plugin-copy": "^3.4.0"
|
|
21
24
|
},
|
|
22
25
|
"repository": {
|
|
23
26
|
"type": "git",
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
},
|
|
30
33
|
"homepage": "https://tecsinapse.github.io/design-system/",
|
|
31
34
|
"peerDependencies": {
|
|
32
|
-
"tailwindcss": "
|
|
35
|
+
"tailwindcss": "^4.1.16"
|
|
33
36
|
},
|
|
34
|
-
"gitHead": "
|
|
35
|
-
}
|
|
37
|
+
"gitHead": "f97de0031d6675338f34599957eca61d3adc9d68"
|
|
38
|
+
}
|
package/dist/cjs/preset/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var definitions = require('../tokens/definitions.js');
|
|
4
|
-
|
|
5
|
-
const preset = {
|
|
6
|
-
theme: {
|
|
7
|
-
fontFamily: definitions.fontFamily,
|
|
8
|
-
extend: {
|
|
9
|
-
colors: definitions.colors,
|
|
10
|
-
textColor: definitions.textColor,
|
|
11
|
-
spacing: definitions.spacing,
|
|
12
|
-
borderRadius: definitions.borderRadius,
|
|
13
|
-
borderWidth: definitions.borderWidth,
|
|
14
|
-
fontSize: definitions.fontSize,
|
|
15
|
-
boxShadow: definitions.boxShadow,
|
|
16
|
-
borderColor: definitions.borderColor,
|
|
17
|
-
zIndex: definitions.zIndex,
|
|
18
|
-
keyframes: {
|
|
19
|
-
opacity: {
|
|
20
|
-
"0%": { opacity: 0 },
|
|
21
|
-
"100%": { opacity: 1 }
|
|
22
|
-
},
|
|
23
|
-
progress: {
|
|
24
|
-
"0%": { transform: "translateX(0) scaleX(0)" },
|
|
25
|
-
"40%": { transform: "translateX(0) scaleX(0.4)" },
|
|
26
|
-
"100%": { transform: "translateX(100%) scaleX(0.5)" }
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
animation: {
|
|
30
|
-
opacity: "opacity 1s ease-in-out",
|
|
31
|
-
progress: "progress 1s infinite linear"
|
|
32
|
-
},
|
|
33
|
-
transformOrigin: {
|
|
34
|
-
"left-right": "0% 50%"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
module.exports = preset;
|
package/dist/esm/preset/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { fontFamily, colors, textColor, spacing, borderRadius, borderWidth, fontSize, boxShadow, borderColor, zIndex } from '../tokens/definitions.js';
|
|
2
|
-
|
|
3
|
-
const preset = {
|
|
4
|
-
theme: {
|
|
5
|
-
fontFamily,
|
|
6
|
-
extend: {
|
|
7
|
-
colors,
|
|
8
|
-
textColor,
|
|
9
|
-
spacing,
|
|
10
|
-
borderRadius,
|
|
11
|
-
borderWidth,
|
|
12
|
-
fontSize,
|
|
13
|
-
boxShadow,
|
|
14
|
-
borderColor,
|
|
15
|
-
zIndex,
|
|
16
|
-
keyframes: {
|
|
17
|
-
opacity: {
|
|
18
|
-
"0%": { opacity: 0 },
|
|
19
|
-
"100%": { opacity: 1 }
|
|
20
|
-
},
|
|
21
|
-
progress: {
|
|
22
|
-
"0%": { transform: "translateX(0) scaleX(0)" },
|
|
23
|
-
"40%": { transform: "translateX(0) scaleX(0.4)" },
|
|
24
|
-
"100%": { transform: "translateX(100%) scaleX(0.5)" }
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
animation: {
|
|
28
|
-
opacity: "opacity 1s ease-in-out",
|
|
29
|
-
progress: "progress 1s infinite linear"
|
|
30
|
-
},
|
|
31
|
-
transformOrigin: {
|
|
32
|
-
"left-right": "0% 50%"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export { preset as default };
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
declare const preset: {
|
|
2
|
-
theme: {
|
|
3
|
-
fontFamily: {
|
|
4
|
-
sans: string[];
|
|
5
|
-
mono: string;
|
|
6
|
-
};
|
|
7
|
-
extend: {
|
|
8
|
-
colors: {
|
|
9
|
-
primary: {
|
|
10
|
-
xlight: string;
|
|
11
|
-
light: string;
|
|
12
|
-
medium: string;
|
|
13
|
-
dark: string;
|
|
14
|
-
xdark: string;
|
|
15
|
-
};
|
|
16
|
-
secondary: {
|
|
17
|
-
xlight: string;
|
|
18
|
-
light: string;
|
|
19
|
-
medium: string;
|
|
20
|
-
dark: string;
|
|
21
|
-
xdark: string;
|
|
22
|
-
};
|
|
23
|
-
info: {
|
|
24
|
-
xlight: string;
|
|
25
|
-
light: string;
|
|
26
|
-
medium: string;
|
|
27
|
-
dark: string;
|
|
28
|
-
xdark: string;
|
|
29
|
-
};
|
|
30
|
-
success: {
|
|
31
|
-
xlight: string;
|
|
32
|
-
light: string;
|
|
33
|
-
medium: string;
|
|
34
|
-
dark: string;
|
|
35
|
-
xdark: string;
|
|
36
|
-
};
|
|
37
|
-
warning: {
|
|
38
|
-
xlight: string;
|
|
39
|
-
light: string;
|
|
40
|
-
medium: string;
|
|
41
|
-
dark: string;
|
|
42
|
-
xdark: string;
|
|
43
|
-
};
|
|
44
|
-
error: {
|
|
45
|
-
xlight: string;
|
|
46
|
-
light: string;
|
|
47
|
-
medium: string;
|
|
48
|
-
dark: string;
|
|
49
|
-
xdark: string;
|
|
50
|
-
};
|
|
51
|
-
miscellaneous: {
|
|
52
|
-
body: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
textColor: {
|
|
56
|
-
light: string;
|
|
57
|
-
medium: string;
|
|
58
|
-
dark: string;
|
|
59
|
-
orange: string;
|
|
60
|
-
};
|
|
61
|
-
spacing: {
|
|
62
|
-
nano: string;
|
|
63
|
-
micro: string;
|
|
64
|
-
mili: string;
|
|
65
|
-
centi: string;
|
|
66
|
-
deca: string;
|
|
67
|
-
kilo: string;
|
|
68
|
-
mega: string;
|
|
69
|
-
giga: string;
|
|
70
|
-
tera: string;
|
|
71
|
-
peta: string;
|
|
72
|
-
hexa: string;
|
|
73
|
-
};
|
|
74
|
-
borderRadius: {
|
|
75
|
-
nano: string;
|
|
76
|
-
micro: string;
|
|
77
|
-
mili: string;
|
|
78
|
-
centi: string;
|
|
79
|
-
deca: string;
|
|
80
|
-
pill: string;
|
|
81
|
-
};
|
|
82
|
-
borderWidth: {
|
|
83
|
-
pico: string;
|
|
84
|
-
nano: string;
|
|
85
|
-
};
|
|
86
|
-
fontSize: {
|
|
87
|
-
h5: string[];
|
|
88
|
-
h4: string[];
|
|
89
|
-
h3: string[];
|
|
90
|
-
h2: string[];
|
|
91
|
-
h1: string[];
|
|
92
|
-
base: string[];
|
|
93
|
-
sub: string[];
|
|
94
|
-
label: string[];
|
|
95
|
-
micro: string;
|
|
96
|
-
mili: string;
|
|
97
|
-
centi: string;
|
|
98
|
-
deca: string;
|
|
99
|
-
kilo: string;
|
|
100
|
-
mega: string;
|
|
101
|
-
};
|
|
102
|
-
boxShadow: {
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
borderColor: {
|
|
106
|
-
'success-light': string;
|
|
107
|
-
};
|
|
108
|
-
zIndex: {
|
|
109
|
-
default: number;
|
|
110
|
-
absolute: number;
|
|
111
|
-
select: number;
|
|
112
|
-
input: number;
|
|
113
|
-
popover: number;
|
|
114
|
-
tooltip: number;
|
|
115
|
-
header: number;
|
|
116
|
-
backdrop: number;
|
|
117
|
-
drawer: number;
|
|
118
|
-
sidebar: number;
|
|
119
|
-
modal: number;
|
|
120
|
-
};
|
|
121
|
-
keyframes: {
|
|
122
|
-
opacity: {
|
|
123
|
-
'0%': {
|
|
124
|
-
opacity: number;
|
|
125
|
-
};
|
|
126
|
-
'100%': {
|
|
127
|
-
opacity: number;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
progress: {
|
|
131
|
-
'0%': {
|
|
132
|
-
transform: string;
|
|
133
|
-
};
|
|
134
|
-
'40%': {
|
|
135
|
-
transform: string;
|
|
136
|
-
};
|
|
137
|
-
'100%': {
|
|
138
|
-
transform: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
animation: {
|
|
143
|
-
opacity: string;
|
|
144
|
-
progress: string;
|
|
145
|
-
};
|
|
146
|
-
transformOrigin: {
|
|
147
|
-
'left-right': string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
export default preset;
|