@tecsinapse/cortex-core 1.2.0-beta.0 → 1.2.0-beta.10
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/index.js +2 -6
- package/dist/default.css +119 -0
- package/dist/esm/index.js +0 -2
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +5 -2
- package/dist/cjs/components/manager/manager.js +0 -15
- package/dist/cjs/preset/index.js +0 -40
- package/dist/esm/components/manager/manager.js +0 -13
- package/dist/esm/preset/index.js +0 -38
- package/dist/types/components/manager/manager.d.ts +0 -16
- package/dist/types/preset/index.d.ts +0 -152
package/dist/cjs/index.js
CHANGED
|
@@ -18,10 +18,8 @@ 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');
|
|
22
|
-
var index = require('./preset/index.js');
|
|
23
21
|
var definitions = require('./tokens/definitions.js');
|
|
24
|
-
var index
|
|
22
|
+
var index = require('./utils/index.js');
|
|
25
23
|
|
|
26
24
|
|
|
27
25
|
|
|
@@ -61,8 +59,6 @@ exports.styleLabelElement = toggle.styleLabelElement;
|
|
|
61
59
|
exports.toggle = toggle.toggle;
|
|
62
60
|
exports.tooltip = tooltip.tooltip;
|
|
63
61
|
exports.tooltipContainer = tooltip.tooltipContainer;
|
|
64
|
-
exports.manager = manager.manager;
|
|
65
|
-
exports.preset = index;
|
|
66
62
|
exports.borderColor = definitions.borderColor;
|
|
67
63
|
exports.borderRadius = definitions.borderRadius;
|
|
68
64
|
exports.borderWidth = definitions.borderWidth;
|
|
@@ -73,4 +69,4 @@ exports.fontSize = definitions.fontSize;
|
|
|
73
69
|
exports.spacing = definitions.spacing;
|
|
74
70
|
exports.textColor = definitions.textColor;
|
|
75
71
|
exports.zIndex = definitions.zIndex;
|
|
76
|
-
exports.updateThemeColors = index
|
|
72
|
+
exports.updateThemeColors = index.updateThemeColors;
|
package/dist/default.css
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@theme {
|
|
4
|
+
--color-primary-xlight: #fef9f0;
|
|
5
|
+
--color-primary-light: #fccb83;
|
|
6
|
+
--color-primary-medium: #f89907;
|
|
7
|
+
--color-primary-dark: #ae6b05;
|
|
8
|
+
--color-primary-xdark: #633d03;
|
|
9
|
+
|
|
10
|
+
--color-secondary-xlight: #f8f7f7;
|
|
11
|
+
--color-secondary-light: #c2bfbc;
|
|
12
|
+
--color-secondary-medium: #85807a;
|
|
13
|
+
--color-secondary-dark: #5d5955;
|
|
14
|
+
--color-secondary-xdark: #353231;
|
|
15
|
+
|
|
16
|
+
--color-info-xlight: #f0f8fe;
|
|
17
|
+
--color-info-light: #85c7fa;
|
|
18
|
+
--color-info-medium: #239bf6;
|
|
19
|
+
--color-info-dark: #0873c4;
|
|
20
|
+
--color-info-xdark: #043962;
|
|
21
|
+
|
|
22
|
+
--color-success-xlight: #f3fcf8;
|
|
23
|
+
--color-success-light: #99e6c9;
|
|
24
|
+
--color-success-medium: #2db783;
|
|
25
|
+
--color-success-dark: #238f67;
|
|
26
|
+
--color-success-xdark: #14523b;
|
|
27
|
+
|
|
28
|
+
--color-warning-xlight: #fffcf0;
|
|
29
|
+
--color-warning-light: #ffe380;
|
|
30
|
+
--color-warning-medium: #ffc700;
|
|
31
|
+
--color-warning-dark: #cc9f00;
|
|
32
|
+
--color-warning-xdark: #665000;
|
|
33
|
+
|
|
34
|
+
--color-error-xlight: #fdf3f2;
|
|
35
|
+
--color-error-light: #ee9891;
|
|
36
|
+
--color-error-medium: #e04638;
|
|
37
|
+
--color-error-dark: #9b2318;
|
|
38
|
+
--color-error-xdark: #58240e;
|
|
39
|
+
|
|
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);
|
|
48
|
+
|
|
49
|
+
--spacing-nano: 0.125rem;
|
|
50
|
+
--spacing-micro: 0.25rem;
|
|
51
|
+
--spacing-mili: 0.5rem;
|
|
52
|
+
--spacing-centi: 0.75rem;
|
|
53
|
+
--spacing-deca: 1rem;
|
|
54
|
+
--spacing-kilo: 1.5rem;
|
|
55
|
+
--spacing-mega: 2rem;
|
|
56
|
+
--spacing-giga: 2.5rem;
|
|
57
|
+
--spacing-tera: 3rem;
|
|
58
|
+
--spacing-peta: 3.5rem;
|
|
59
|
+
--spacing-hexa: 4rem;
|
|
60
|
+
|
|
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;
|
|
67
|
+
|
|
68
|
+
--border-width-pico: 0.063rem;
|
|
69
|
+
--border-width-nano: 0.125rem;
|
|
70
|
+
|
|
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;
|
|
119
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -16,7 +16,5 @@ 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';
|
|
20
|
-
export { default as preset } from './preset/index.js';
|
|
21
19
|
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor, zIndex } from './tokens/definitions.js';
|
|
22
20
|
export { updateThemeColors } from './utils/index.js';
|
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": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core library for tailwindcss based design",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"clsx": "2.1.1",
|
|
20
20
|
"tailwind-variants": "1.0.0"
|
|
21
21
|
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"rollup-plugin-copy": "^3.4.0"
|
|
24
|
+
},
|
|
22
25
|
"repository": {
|
|
23
26
|
"type": "git",
|
|
24
27
|
"directory": "packages/cortex-core",
|
|
@@ -31,5 +34,5 @@
|
|
|
31
34
|
"peerDependencies": {
|
|
32
35
|
"tailwindcss": ">=3.3.0"
|
|
33
36
|
},
|
|
34
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "877d6660ed42458f5d6b76dd2b09f42fe5c59a6f"
|
|
35
38
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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/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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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/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,16 +0,0 @@
|
|
|
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>>;
|
|
@@ -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;
|