@tecsinapse/cortex-core 0.3.0-beta.9 → 0.3.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.
- package/dist/cjs/components/common/common.js +1 -1
- package/dist/cjs/components/drawer/drawer.js +2 -2
- package/dist/cjs/components/modal/modal.js +1 -1
- package/dist/cjs/components/radio-button/radio-button.js +14 -7
- package/dist/cjs/components/select/select.js +5 -7
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/preset/index.js +1 -0
- package/dist/cjs/tokens/definitions.js +14 -0
- package/dist/esm/components/common/common.js +1 -1
- package/dist/esm/components/drawer/drawer.js +2 -2
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/radio-button/radio-button.js +14 -6
- package/dist/esm/components/select/select.js +5 -7
- package/dist/esm/index.js +2 -2
- package/dist/esm/preset/index.js +2 -1
- package/dist/esm/tokens/definitions.js +14 -1
- package/dist/types/components/drawer/drawer.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/radio-button/radio-button.d.ts +55 -2
- package/dist/types/components/select/select.d.ts +24 -62
- package/dist/types/index.d.ts +1 -1
- package/dist/types/preset/index.d.ts +13 -0
- package/dist/types/tokens/definitions.d.ts +14 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ const overlay = tailwindVariants.tv({
|
|
|
6
6
|
base: "fixed",
|
|
7
7
|
variants: {
|
|
8
8
|
show: {
|
|
9
|
-
true: "bg-opacity-50 z-
|
|
9
|
+
true: "bg-opacity-50 z-backdrop bg-black h-full w-full left-0 top-0 transition cursor-pointer",
|
|
10
10
|
false: "invisible"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var tailwindVariants = require('tailwind-variants');
|
|
4
4
|
|
|
5
5
|
const drawerStyles = tailwindVariants.tv({
|
|
6
|
-
base: "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform",
|
|
6
|
+
base: "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform overflow-y-scroll",
|
|
7
7
|
variants: {
|
|
8
8
|
position: {
|
|
9
9
|
left: "left-0 -translate-x-full rounded-r-mili",
|
|
10
10
|
right: "right-1 translate-x-full rounded-l-mili"
|
|
11
11
|
},
|
|
12
12
|
open: {
|
|
13
|
-
true: "translate-x-0",
|
|
13
|
+
true: "translate-x-0 z-[700]",
|
|
14
14
|
false: "invisible"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -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",
|
|
6
|
+
base: "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal",
|
|
7
7
|
variants: {
|
|
8
8
|
open: {
|
|
9
9
|
true: "scale-100 visible",
|
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
var tailwindVariants = require('tailwind-variants');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
const radioButtonStyles = tailwindVariants.tv({
|
|
6
|
+
slots: {
|
|
7
|
+
container: "gap-x-mili flex items-center justify-center",
|
|
8
|
+
label: "cursor-pointer peer-checked:font-bold ",
|
|
9
|
+
input: "accent-orange-600 h-5 w-5 cursor-pointer peer"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
reversed: {
|
|
13
|
+
true: {
|
|
14
|
+
container: "flex-row-reverse"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
10
18
|
});
|
|
11
19
|
|
|
12
|
-
exports.
|
|
13
|
-
exports.radioButton = radioButton;
|
|
20
|
+
exports.radioButtonStyles = radioButtonStyles;
|
|
@@ -7,21 +7,19 @@ const option = tailwindVariants.tv({
|
|
|
7
7
|
variants: {
|
|
8
8
|
selected: {
|
|
9
9
|
true: "text-primary-medium"
|
|
10
|
+
},
|
|
11
|
+
grouped: {
|
|
12
|
+
true: "px-mega"
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
});
|
|
13
16
|
const selectVariants = tailwindVariants.tv({
|
|
14
17
|
slots: {
|
|
15
|
-
dropdown: "flex flex-col gap-y-mili text-base max-h-[30vh] w-full bg-white mt-0 rounded-mili overflow-y-scroll py-mili transition-all duration-300 origin-top-left absolute list-none z-30 shadow-lg",
|
|
16
18
|
button: "flex w-full justify-between items-center bg-white relative min-h-[44px] h-auto flex px-centi py-1.5 text-base font-bold items-center bg-transparent border border-secondary-light rounded-mili",
|
|
17
|
-
groupedTitle: "font-bold text-secondary-medium",
|
|
18
|
-
|
|
19
|
+
groupedTitle: "font-bold text-secondary-medium mx-centi",
|
|
20
|
+
list: "list-none p-0"
|
|
19
21
|
},
|
|
20
22
|
variants: {
|
|
21
|
-
open: {
|
|
22
|
-
true: { dropdown: "-scale-y-1 visible" },
|
|
23
|
-
false: { dropdown: "scale-y-0 invisible" }
|
|
24
|
-
},
|
|
25
23
|
disabled: {
|
|
26
24
|
true: {
|
|
27
25
|
button: "pointer-events-none text-secondary-light bg-secondary-xlight"
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var definitions = require('./tokens/definitions.js');
|
|
4
3
|
var badge = require('./components/badge/badge.js');
|
|
5
4
|
var button = require('./components/button/button.js');
|
|
6
5
|
var card = require('./components/card/card.js');
|
|
@@ -20,18 +19,10 @@ var tag = require('./components/tag/tag.js');
|
|
|
20
19
|
var toggle = require('./components/toggle/toggle.js');
|
|
21
20
|
var tooltip = require('./components/tooltip/tooltip.js');
|
|
22
21
|
var index = require('./preset/index.js');
|
|
22
|
+
var definitions = require('./tokens/definitions.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.borderColor = definitions.borderColor;
|
|
27
|
-
exports.borderRadius = definitions.borderRadius;
|
|
28
|
-
exports.borderWidth = definitions.borderWidth;
|
|
29
|
-
exports.boxShadow = definitions.boxShadow;
|
|
30
|
-
exports.colors = definitions.colors;
|
|
31
|
-
exports.fontFamily = definitions.fontFamily;
|
|
32
|
-
exports.fontSize = definitions.fontSize;
|
|
33
|
-
exports.spacing = definitions.spacing;
|
|
34
|
-
exports.textColor = definitions.textColor;
|
|
35
26
|
exports.badge = badge.badge;
|
|
36
27
|
exports.containerBadge = badge.containerBadge;
|
|
37
28
|
exports.button = button.button;
|
|
@@ -51,8 +42,7 @@ exports.modal = modal.modal;
|
|
|
51
42
|
exports.popover = popover.popover;
|
|
52
43
|
exports.popoverContainer = popover.popoverContainer;
|
|
53
44
|
exports.popoverStyles = popover.popoverStyles;
|
|
54
|
-
exports.
|
|
55
|
-
exports.radioButton = radioButton.radioButton;
|
|
45
|
+
exports.radioButtonStyles = radioButton.radioButtonStyles;
|
|
56
46
|
exports.option = select.option;
|
|
57
47
|
exports.selectVariants = select.selectVariants;
|
|
58
48
|
exports.snackbar = snackbar.snackbar;
|
|
@@ -70,3 +60,13 @@ exports.toggle = toggle.toggle;
|
|
|
70
60
|
exports.tooltip = tooltip.tooltip;
|
|
71
61
|
exports.tooltipContainer = tooltip.tooltipContainer;
|
|
72
62
|
exports.preset = index;
|
|
63
|
+
exports.borderColor = definitions.borderColor;
|
|
64
|
+
exports.borderRadius = definitions.borderRadius;
|
|
65
|
+
exports.borderWidth = definitions.borderWidth;
|
|
66
|
+
exports.boxShadow = definitions.boxShadow;
|
|
67
|
+
exports.colors = definitions.colors;
|
|
68
|
+
exports.fontFamily = definitions.fontFamily;
|
|
69
|
+
exports.fontSize = definitions.fontSize;
|
|
70
|
+
exports.spacing = definitions.spacing;
|
|
71
|
+
exports.textColor = definitions.textColor;
|
|
72
|
+
exports.zIndex = definitions.zIndex;
|
package/dist/cjs/preset/index.js
CHANGED
|
@@ -158,6 +158,19 @@ const textColor = {
|
|
|
158
158
|
dark: "#353231",
|
|
159
159
|
orange: "#f89907"
|
|
160
160
|
};
|
|
161
|
+
const zIndex = {
|
|
162
|
+
default: 0,
|
|
163
|
+
absolute: 1,
|
|
164
|
+
select: 20,
|
|
165
|
+
input: 20,
|
|
166
|
+
popover: 30,
|
|
167
|
+
tooltip: 40,
|
|
168
|
+
header: 600,
|
|
169
|
+
backdrop: 700,
|
|
170
|
+
drawer: 700,
|
|
171
|
+
sidebar: 800,
|
|
172
|
+
modal: 1e3
|
|
173
|
+
};
|
|
161
174
|
|
|
162
175
|
exports.borderColor = borderColor;
|
|
163
176
|
exports.borderRadius = borderRadius;
|
|
@@ -168,3 +181,4 @@ exports.fontFamily = fontFamily;
|
|
|
168
181
|
exports.fontSize = fontSize;
|
|
169
182
|
exports.spacing = spacing;
|
|
170
183
|
exports.textColor = textColor;
|
|
184
|
+
exports.zIndex = zIndex;
|
|
@@ -4,7 +4,7 @@ const overlay = tv({
|
|
|
4
4
|
base: "fixed",
|
|
5
5
|
variants: {
|
|
6
6
|
show: {
|
|
7
|
-
true: "bg-opacity-50 z-
|
|
7
|
+
true: "bg-opacity-50 z-backdrop bg-black h-full w-full left-0 top-0 transition cursor-pointer",
|
|
8
8
|
false: "invisible"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
|
|
3
3
|
const drawerStyles = tv({
|
|
4
|
-
base: "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform",
|
|
4
|
+
base: "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform overflow-y-scroll",
|
|
5
5
|
variants: {
|
|
6
6
|
position: {
|
|
7
7
|
left: "left-0 -translate-x-full rounded-r-mili",
|
|
8
8
|
right: "right-1 translate-x-full rounded-l-mili"
|
|
9
9
|
},
|
|
10
10
|
open: {
|
|
11
|
-
true: "translate-x-0",
|
|
11
|
+
true: "translate-x-0 z-[700]",
|
|
12
12
|
false: "invisible"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
@@ -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",
|
|
4
|
+
base: "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal",
|
|
5
5
|
variants: {
|
|
6
6
|
open: {
|
|
7
7
|
true: "scale-100 visible",
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const radioButtonStyles = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
container: "gap-x-mili flex items-center justify-center",
|
|
6
|
+
label: "cursor-pointer peer-checked:font-bold ",
|
|
7
|
+
input: "accent-orange-600 h-5 w-5 cursor-pointer peer"
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
reversed: {
|
|
11
|
+
true: {
|
|
12
|
+
container: "flex-row-reverse"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
8
16
|
});
|
|
9
17
|
|
|
10
|
-
export {
|
|
18
|
+
export { radioButtonStyles };
|
|
@@ -5,21 +5,19 @@ const option = tv({
|
|
|
5
5
|
variants: {
|
|
6
6
|
selected: {
|
|
7
7
|
true: "text-primary-medium"
|
|
8
|
+
},
|
|
9
|
+
grouped: {
|
|
10
|
+
true: "px-mega"
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
13
|
});
|
|
11
14
|
const selectVariants = tv({
|
|
12
15
|
slots: {
|
|
13
|
-
dropdown: "flex flex-col gap-y-mili text-base max-h-[30vh] w-full bg-white mt-0 rounded-mili overflow-y-scroll py-mili transition-all duration-300 origin-top-left absolute list-none z-30 shadow-lg",
|
|
14
16
|
button: "flex w-full justify-between items-center bg-white relative min-h-[44px] h-auto flex px-centi py-1.5 text-base font-bold items-center bg-transparent border border-secondary-light rounded-mili",
|
|
15
|
-
groupedTitle: "font-bold text-secondary-medium",
|
|
16
|
-
|
|
17
|
+
groupedTitle: "font-bold text-secondary-medium mx-centi",
|
|
18
|
+
list: "list-none p-0"
|
|
17
19
|
},
|
|
18
20
|
variants: {
|
|
19
|
-
open: {
|
|
20
|
-
true: { dropdown: "-scale-y-1 visible" },
|
|
21
|
-
false: { dropdown: "scale-y-0 invisible" }
|
|
22
|
-
},
|
|
23
21
|
disabled: {
|
|
24
22
|
true: {
|
|
25
23
|
button: "pointer-events-none text-secondary-light bg-secondary-xlight"
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor } from './tokens/definitions.js';
|
|
2
1
|
export { badge, containerBadge } from './components/badge/badge.js';
|
|
3
2
|
export { button, buttonStyles } from './components/button/button.js';
|
|
4
3
|
export { card } from './components/card/card.js';
|
|
@@ -10,7 +9,7 @@ export { hint } from './components/hint/hint.js';
|
|
|
10
9
|
export { input, inputBaseStyles, inputBox, label, labelStyle } from './components/input/input.js';
|
|
11
10
|
export { modal } from './components/modal/modal.js';
|
|
12
11
|
export { popover, popoverContainer, popoverStyles } from './components/popover/popover.js';
|
|
13
|
-
export {
|
|
12
|
+
export { radioButtonStyles } from './components/radio-button/radio-button.js';
|
|
14
13
|
export { option, selectVariants } from './components/select/select.js';
|
|
15
14
|
export { snackbar } from './components/snackbar/snackbar.js';
|
|
16
15
|
export { hr, tCell, tFoot, tHead, tHeadCell, tRoot, tRow } from './components/table/table.js';
|
|
@@ -18,3 +17,4 @@ export { tag } from './components/tag/tag.js';
|
|
|
18
17
|
export { styleInputElement, styleLabelElement, toggle } from './components/toggle/toggle.js';
|
|
19
18
|
export { tooltip, tooltipContainer } from './components/tooltip/tooltip.js';
|
|
20
19
|
export { default as preset } from './preset/index.js';
|
|
20
|
+
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor, zIndex } from './tokens/definitions.js';
|
package/dist/esm/preset/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fontFamily, colors, textColor, spacing, borderRadius, borderWidth, fontSize, boxShadow, borderColor } from '../tokens/definitions.js';
|
|
1
|
+
import { fontFamily, colors, textColor, spacing, borderRadius, borderWidth, fontSize, boxShadow, borderColor, zIndex } from '../tokens/definitions.js';
|
|
2
2
|
|
|
3
3
|
const preset = {
|
|
4
4
|
theme: {
|
|
@@ -12,6 +12,7 @@ const preset = {
|
|
|
12
12
|
fontSize,
|
|
13
13
|
boxShadow,
|
|
14
14
|
borderColor,
|
|
15
|
+
zIndex,
|
|
15
16
|
keyframes: {
|
|
16
17
|
opacity: {
|
|
17
18
|
"0%": { opacity: 0 },
|
|
@@ -156,5 +156,18 @@ const textColor = {
|
|
|
156
156
|
dark: "#353231",
|
|
157
157
|
orange: "#f89907"
|
|
158
158
|
};
|
|
159
|
+
const zIndex = {
|
|
160
|
+
default: 0,
|
|
161
|
+
absolute: 1,
|
|
162
|
+
select: 20,
|
|
163
|
+
input: 20,
|
|
164
|
+
popover: 30,
|
|
165
|
+
tooltip: 40,
|
|
166
|
+
header: 600,
|
|
167
|
+
backdrop: 700,
|
|
168
|
+
drawer: 700,
|
|
169
|
+
sidebar: 800,
|
|
170
|
+
modal: 1e3
|
|
171
|
+
};
|
|
159
172
|
|
|
160
|
-
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor };
|
|
173
|
+
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor, zIndex };
|
|
@@ -8,7 +8,7 @@ declare const drawerStyles: import("tailwind-variants").TVReturnType<{
|
|
|
8
8
|
true: string;
|
|
9
9
|
false: string;
|
|
10
10
|
};
|
|
11
|
-
}, undefined, "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform", import("tailwind-variants/dist/config").TVConfig<{
|
|
11
|
+
}, undefined, "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform overflow-y-scroll", import("tailwind-variants/dist/config").TVConfig<{
|
|
12
12
|
position: {
|
|
13
13
|
left: string;
|
|
14
14
|
right: string;
|
|
@@ -44,7 +44,7 @@ declare const drawerStyles: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
true: string;
|
|
45
45
|
false: string;
|
|
46
46
|
};
|
|
47
|
-
}, undefined, "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform", import("tailwind-variants/dist/config").TVConfig<{
|
|
47
|
+
}, undefined, "bg-white fixed top-0 h-full p-deca shadow-lg transition-all duration-500 transform overflow-y-scroll", import("tailwind-variants/dist/config").TVConfig<{
|
|
48
48
|
position: {
|
|
49
49
|
left: string;
|
|
50
50
|
right: 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", import("tailwind-variants/dist/config").TVConfig<{
|
|
6
|
+
}, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal", import("tailwind-variants/dist/config").TVConfig<{
|
|
7
7
|
open: {
|
|
8
8
|
true: string;
|
|
9
9
|
false: string;
|
|
@@ -23,7 +23,7 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
23
23
|
true: string;
|
|
24
24
|
false: string;
|
|
25
25
|
};
|
|
26
|
-
}, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0", import("tailwind-variants/dist/config").TVConfig<{
|
|
26
|
+
}, undefined, "fixed rounded-micro p-kilo bg-white shadow-default flex transition inset-0 z-modal", import("tailwind-variants/dist/config").TVConfig<{
|
|
27
27
|
open: {
|
|
28
28
|
true: string;
|
|
29
29
|
false: string;
|
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const radioButtonStyles: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
reversed: {
|
|
3
|
+
true: {
|
|
4
|
+
container: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
container: string;
|
|
9
|
+
label: string;
|
|
10
|
+
input: string;
|
|
11
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
12
|
+
reversed: {
|
|
13
|
+
true: {
|
|
14
|
+
container: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
reversed: {
|
|
19
|
+
true: {
|
|
20
|
+
container: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}>, {
|
|
24
|
+
reversed: {
|
|
25
|
+
true: {
|
|
26
|
+
container: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
container: string;
|
|
31
|
+
label: string;
|
|
32
|
+
input: string;
|
|
33
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
34
|
+
reversed: {
|
|
35
|
+
true: {
|
|
36
|
+
container: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
container: string;
|
|
41
|
+
label: string;
|
|
42
|
+
input: string;
|
|
43
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
44
|
+
reversed: {
|
|
45
|
+
true: {
|
|
46
|
+
container: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
reversed: {
|
|
51
|
+
true: {
|
|
52
|
+
container: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -2,40 +2,53 @@ export declare const option: import("tailwind-variants").TVReturnType<{
|
|
|
2
2
|
selected: {
|
|
3
3
|
true: string;
|
|
4
4
|
};
|
|
5
|
+
grouped: {
|
|
6
|
+
true: string;
|
|
7
|
+
};
|
|
5
8
|
}, undefined, "flex flex-row gap-x-deca items-center text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium", import("tailwind-variants/dist/config").TVConfig<{
|
|
6
9
|
selected: {
|
|
7
10
|
true: string;
|
|
8
11
|
};
|
|
12
|
+
grouped: {
|
|
13
|
+
true: string;
|
|
14
|
+
};
|
|
9
15
|
}, {
|
|
10
16
|
selected: {
|
|
11
17
|
true: string;
|
|
12
18
|
};
|
|
19
|
+
grouped: {
|
|
20
|
+
true: string;
|
|
21
|
+
};
|
|
13
22
|
}>, {
|
|
14
23
|
selected: {
|
|
15
24
|
true: string;
|
|
16
25
|
};
|
|
26
|
+
grouped: {
|
|
27
|
+
true: string;
|
|
28
|
+
};
|
|
17
29
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
18
30
|
selected: {
|
|
19
31
|
true: string;
|
|
20
32
|
};
|
|
33
|
+
grouped: {
|
|
34
|
+
true: string;
|
|
35
|
+
};
|
|
21
36
|
}, undefined, "flex flex-row gap-x-deca items-center text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium", import("tailwind-variants/dist/config").TVConfig<{
|
|
22
37
|
selected: {
|
|
23
38
|
true: string;
|
|
24
39
|
};
|
|
40
|
+
grouped: {
|
|
41
|
+
true: string;
|
|
42
|
+
};
|
|
25
43
|
}, {
|
|
26
44
|
selected: {
|
|
27
45
|
true: string;
|
|
28
46
|
};
|
|
47
|
+
grouped: {
|
|
48
|
+
true: string;
|
|
49
|
+
};
|
|
29
50
|
}>, unknown, unknown, undefined>>;
|
|
30
51
|
export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
31
|
-
open: {
|
|
32
|
-
true: {
|
|
33
|
-
dropdown: string;
|
|
34
|
-
};
|
|
35
|
-
false: {
|
|
36
|
-
dropdown: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
52
|
disabled: {
|
|
40
53
|
true: {
|
|
41
54
|
button: string;
|
|
@@ -48,19 +61,10 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
48
61
|
default: string;
|
|
49
62
|
};
|
|
50
63
|
}, {
|
|
51
|
-
dropdown: string;
|
|
52
64
|
button: string;
|
|
53
65
|
groupedTitle: string;
|
|
54
|
-
|
|
66
|
+
list: string;
|
|
55
67
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
56
|
-
open: {
|
|
57
|
-
true: {
|
|
58
|
-
dropdown: string;
|
|
59
|
-
};
|
|
60
|
-
false: {
|
|
61
|
-
dropdown: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
68
|
disabled: {
|
|
65
69
|
true: {
|
|
66
70
|
button: string;
|
|
@@ -73,14 +77,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
73
77
|
default: string;
|
|
74
78
|
};
|
|
75
79
|
}, {
|
|
76
|
-
open: {
|
|
77
|
-
true: {
|
|
78
|
-
dropdown: string;
|
|
79
|
-
};
|
|
80
|
-
false: {
|
|
81
|
-
dropdown: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
80
|
disabled: {
|
|
85
81
|
true: {
|
|
86
82
|
button: string;
|
|
@@ -93,14 +89,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
93
89
|
default: string;
|
|
94
90
|
};
|
|
95
91
|
}>, {
|
|
96
|
-
open: {
|
|
97
|
-
true: {
|
|
98
|
-
dropdown: string;
|
|
99
|
-
};
|
|
100
|
-
false: {
|
|
101
|
-
dropdown: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
92
|
disabled: {
|
|
105
93
|
true: {
|
|
106
94
|
button: string;
|
|
@@ -113,19 +101,10 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
113
101
|
default: string;
|
|
114
102
|
};
|
|
115
103
|
}, {
|
|
116
|
-
dropdown: string;
|
|
117
104
|
button: string;
|
|
118
105
|
groupedTitle: string;
|
|
119
|
-
|
|
106
|
+
list: string;
|
|
120
107
|
}, import("tailwind-variants").TVReturnType<{
|
|
121
|
-
open: {
|
|
122
|
-
true: {
|
|
123
|
-
dropdown: string;
|
|
124
|
-
};
|
|
125
|
-
false: {
|
|
126
|
-
dropdown: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
108
|
disabled: {
|
|
130
109
|
true: {
|
|
131
110
|
button: string;
|
|
@@ -138,19 +117,10 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
138
117
|
default: string;
|
|
139
118
|
};
|
|
140
119
|
}, {
|
|
141
|
-
dropdown: string;
|
|
142
120
|
button: string;
|
|
143
121
|
groupedTitle: string;
|
|
144
|
-
|
|
122
|
+
list: string;
|
|
145
123
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
146
|
-
open: {
|
|
147
|
-
true: {
|
|
148
|
-
dropdown: string;
|
|
149
|
-
};
|
|
150
|
-
false: {
|
|
151
|
-
dropdown: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
124
|
disabled: {
|
|
155
125
|
true: {
|
|
156
126
|
button: string;
|
|
@@ -163,14 +133,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
163
133
|
default: string;
|
|
164
134
|
};
|
|
165
135
|
}, {
|
|
166
|
-
open: {
|
|
167
|
-
true: {
|
|
168
|
-
dropdown: string;
|
|
169
|
-
};
|
|
170
|
-
false: {
|
|
171
|
-
dropdown: string;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
136
|
disabled: {
|
|
175
137
|
true: {
|
|
176
138
|
button: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -105,6 +105,19 @@ declare const preset: {
|
|
|
105
105
|
borderColor: {
|
|
106
106
|
'success-light': string;
|
|
107
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
|
+
};
|
|
108
121
|
keyframes: {
|
|
109
122
|
opacity: {
|
|
110
123
|
'0%': {
|
|
@@ -102,4 +102,17 @@ declare const textColor: {
|
|
|
102
102
|
dark: string;
|
|
103
103
|
orange: string;
|
|
104
104
|
};
|
|
105
|
-
|
|
105
|
+
declare const zIndex: {
|
|
106
|
+
default: number;
|
|
107
|
+
absolute: number;
|
|
108
|
+
select: number;
|
|
109
|
+
input: number;
|
|
110
|
+
popover: number;
|
|
111
|
+
tooltip: number;
|
|
112
|
+
header: number;
|
|
113
|
+
backdrop: number;
|
|
114
|
+
drawer: number;
|
|
115
|
+
sidebar: number;
|
|
116
|
+
modal: number;
|
|
117
|
+
};
|
|
118
|
+
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor, zIndex, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core library for tailwindcss based design",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"tailwindcss": ">=3.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "98039ae373aa9b70d0c7ae005bec89b4ddae0ad5"
|
|
35
35
|
}
|