@tecsinapse/cortex-core 0.3.0-beta.0 → 0.3.0-beta.1

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,15 @@
1
+ 'use strict';
2
+
3
+ var tailwindVariants = require('tailwind-variants');
4
+
5
+ const popoverContainer = tailwindVariants.tv({
6
+ base: "group relative inline-block"
7
+ });
8
+ const popoverStyles = tailwindVariants.tv({
9
+ base: "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50"
10
+ });
11
+ const popover = (props) => popoverStyles(props);
12
+
13
+ exports.popover = popover;
14
+ exports.popoverContainer = popoverContainer;
15
+ exports.popoverStyles = popoverStyles;
package/dist/cjs/index.js CHANGED
@@ -17,6 +17,7 @@ var card = require('./components/card/card.js');
17
17
  var modal = require('./components/modal/modal.js');
18
18
  var snackbar = require('./components/snackbar/snackbar.js');
19
19
  var common = require('./components/common/common.js');
20
+ var popover = require('./components/popover/popover.js');
20
21
  var index = require('./preset/index.js');
21
22
 
22
23
 
@@ -63,4 +64,7 @@ exports.card = card.card;
63
64
  exports.modal = modal.modal;
64
65
  exports.snackbar = snackbar.snackbar;
65
66
  exports.overlay = common.overlay;
67
+ exports.popover = popover.popover;
68
+ exports.popoverContainer = popover.popoverContainer;
69
+ exports.popoverStyles = popover.popoverStyles;
66
70
  exports.preset = index;
@@ -0,0 +1,11 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const popoverContainer = tv({
4
+ base: "group relative inline-block"
5
+ });
6
+ const popoverStyles = tv({
7
+ base: "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50"
8
+ });
9
+ const popover = (props) => popoverStyles(props);
10
+
11
+ export { popover, popoverContainer, popoverStyles };
package/dist/esm/index.js CHANGED
@@ -15,4 +15,5 @@ export { card } from './components/card/card.js';
15
15
  export { modal } from './components/modal/modal.js';
16
16
  export { snackbar } from './components/snackbar/snackbar.js';
17
17
  export { overlay } from './components/common/common.js';
18
+ export { popover, popoverContainer, popoverStyles } from './components/popover/popover.js';
18
19
  export { default as preset } from './preset/index.js';
@@ -14,3 +14,4 @@ export * from './card/card';
14
14
  export * from './modal/modal';
15
15
  export * from './snackbar/snackbar';
16
16
  export * from './common/common';
17
+ export * from './popover/popover';
@@ -0,0 +1,5 @@
1
+ import { ClassProp, VariantProps } from 'tailwind-variants';
2
+ export declare const popoverContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "group relative inline-block", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "group relative inline-block", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
3
+ export declare const popoverStyles: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "border border-gray-200 bg-black text-white p-4 rounded-md shadow-lg z-50", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
4
+ export type popoverVariants = VariantProps<typeof popoverStyles> & ClassProp;
5
+ export declare const popover: (props: popoverVariants) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-core",
3
- "version": "0.3.0-beta.0",
3
+ "version": "0.3.0-beta.1",
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": "cc8903eb4c3ec693fa6dbd384bfc407f39e144ae"
34
+ "gitHead": "6cfddfd6db49be4dcf6dc53f192e659566bce3b3"
35
35
  }