@tecsinapse/cortex-core 0.3.0-beta.13 → 0.3.0-beta.14
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/modal/modal.js +1 -1
- package/dist/cjs/index.js +1 -0
- 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/modal/modal.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/preset/index.js +2 -1
- package/dist/esm/tokens/definitions.js +14 -1
- package/dist/types/components/modal/modal.d.ts +2 -2
- 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,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",
|
package/dist/cjs/index.js
CHANGED
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,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",
|
package/dist/esm/index.js
CHANGED
|
@@ -17,4 +17,4 @@ 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 { default as preset } from './preset/index.js';
|
|
20
|
-
export { borderColor, borderRadius, borderWidth, boxShadow, colors, fontFamily, fontSize, spacing, textColor } from './tokens/definitions.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 };
|
|
@@ -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;
|
|
@@ -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-beta.
|
|
3
|
+
"version": "0.3.0-beta.14",
|
|
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": "51b45071d2ed294e4730031f44470b1f1a0a3f63"
|
|
35
35
|
}
|