@tecsinapse/cortex-core 0.3.0-beta.10 → 0.3.0-beta.12
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 +1 -1
- package/dist/cjs/components/radio-button/radio-button.js +14 -7
- package/dist/cjs/index.js +11 -12
- package/dist/esm/components/common/common.js +1 -1
- package/dist/esm/components/drawer/drawer.js +1 -1
- package/dist/esm/components/radio-button/radio-button.js +14 -6
- package/dist/esm/index.js +2 -2
- package/dist/types/components/radio-button/radio-button.d.ts +55 -2
- package/dist/types/index.d.ts +1 -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-[700] bg-black h-full w-full left-0 top-0 transition cursor-pointer",
|
|
10
10
|
false: "invisible"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -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;
|
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,12 @@ 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;
|
|
@@ -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-[700] bg-black h-full w-full left-0 top-0 transition cursor-pointer",
|
|
8
8
|
false: "invisible"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -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 };
|
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 } from './tokens/definitions.js';
|
|
@@ -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>>;
|
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": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.12",
|
|
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": "c6722ce5d39bf6f0152ce2041106b511947edee9"
|
|
35
35
|
}
|