@tecsinapse/cortex-core 0.0.11-beta.0 → 0.0.11
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tailwindVariants = require('tailwind-variants');
|
|
4
|
+
|
|
5
|
+
const snackbarStyles = tailwindVariants.tv({
|
|
6
|
+
base: "animate-bottomToTop text-base font-bold p-mili flex justify-between fixed rounded-mili left-[50%] bottom-deca",
|
|
7
|
+
variants: {
|
|
8
|
+
intent: {
|
|
9
|
+
primary: "bg-primary-xlight text-primary-medium",
|
|
10
|
+
secondary: "bg-secondary-xlight text-secondary-medium",
|
|
11
|
+
success: "bg-success-xlight text-success-medium",
|
|
12
|
+
error: "bg-error-xlight text-error-medium",
|
|
13
|
+
info: "bg-info-xlight text-info-medium",
|
|
14
|
+
warning: "bg-warning-xlight text-warning-medium"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
intent: "primary"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const snackbar = (props) => snackbarStyles(props);
|
|
22
|
+
|
|
23
|
+
exports.snackbar = snackbar;
|
package/dist/cjs/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var table = require('./components/table/table.js');
|
|
|
15
15
|
var tooltip = require('./components/tooltip/tooltip.js');
|
|
16
16
|
var card = require('./components/card/card.js');
|
|
17
17
|
var modal = require('./components/modal/modal.js');
|
|
18
|
+
var snackbar = require('./components/snackbar/snackbar.js');
|
|
18
19
|
require('./preset/index.js');
|
|
19
20
|
|
|
20
21
|
|
|
@@ -61,3 +62,4 @@ exports.tooltip = tooltip.tooltip;
|
|
|
61
62
|
exports.tooltipContainer = tooltip.tooltipContainer;
|
|
62
63
|
exports.card = card.card;
|
|
63
64
|
exports.modal = modal.modal;
|
|
65
|
+
exports.snackbar = snackbar.snackbar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const snackbarStyles = tv({
|
|
4
|
+
base: "animate-bottomToTop text-base font-bold p-mili flex justify-between fixed rounded-mili left-[50%] bottom-deca",
|
|
5
|
+
variants: {
|
|
6
|
+
intent: {
|
|
7
|
+
primary: "bg-primary-xlight text-primary-medium",
|
|
8
|
+
secondary: "bg-secondary-xlight text-secondary-medium",
|
|
9
|
+
success: "bg-success-xlight text-success-medium",
|
|
10
|
+
error: "bg-error-xlight text-error-medium",
|
|
11
|
+
info: "bg-info-xlight text-info-medium",
|
|
12
|
+
warning: "bg-warning-xlight text-warning-medium"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
intent: "primary"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const snackbar = (props) => snackbarStyles(props);
|
|
20
|
+
|
|
21
|
+
export { snackbar };
|
package/dist/esm/index.js
CHANGED
|
@@ -13,4 +13,5 @@ export { hr, tCell, tFoot, tHead, tHeadCell, tRoot, tRow } from './components/ta
|
|
|
13
13
|
export { tooltip, tooltipContainer } from './components/tooltip/tooltip.js';
|
|
14
14
|
export { card } from './components/card/card.js';
|
|
15
15
|
export { modal } from './components/modal/modal.js';
|
|
16
|
+
export { snackbar } from './components/snackbar/snackbar.js';
|
|
16
17
|
import './preset/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "0.0.11
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"tailwind-merge": "^2.0.0",
|
|
22
22
|
"tailwind-variants": "^0.1.18"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "0f89f7320ecbcee514b03329d97f224171d51933"
|
|
25
25
|
}
|