@tecsinapse/cortex-core 0.2.2-beta.2 → 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;
@@ -3,15 +3,19 @@
3
3
  var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const option = tailwindVariants.tv({
6
- base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium"
6
+ base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium",
7
+ variants: {
8
+ selected: {
9
+ true: "text-primary-medium"
10
+ }
11
+ }
7
12
  });
8
13
  const selectVariants = tailwindVariants.tv({
9
14
  slots: {
10
- dropdown: "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 px-micro shadow-lg ",
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",
11
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",
12
17
  groupedTitle: "font-bold text-secondary-medium",
13
- containerGrouped: "m-centi",
14
- hintBody: "flex flex-row gap-1 mt-mili"
18
+ containerGrouped: "mx-centi"
15
19
  },
16
20
  variants: {
17
21
  open: {
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 };
@@ -1,15 +1,19 @@
1
1
  import { tv } from 'tailwind-variants';
2
2
 
3
3
  const option = tv({
4
- base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium"
4
+ base: "text-base py-mili px-deca font-bold hover:bg-primary-xlight hover:text-primary-medium cursor-pointer active:text-primary-medium",
5
+ variants: {
6
+ selected: {
7
+ true: "text-primary-medium"
8
+ }
9
+ }
5
10
  });
6
11
  const selectVariants = tv({
7
12
  slots: {
8
- dropdown: "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 px-micro shadow-lg ",
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",
9
14
  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",
10
15
  groupedTitle: "font-bold text-secondary-medium",
11
- containerGrouped: "m-centi",
12
- hintBody: "flex flex-row gap-1 mt-mili"
16
+ containerGrouped: "mx-centi"
13
17
  },
14
18
  variants: {
15
19
  open: {
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;
@@ -1,4 +1,32 @@
1
- export declare const option: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "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<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "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<unknown, {} | {}>, unknown, unknown, undefined>>;
1
+ export declare const option: import("tailwind-variants").TVReturnType<{
2
+ selected: {
3
+ true: string;
4
+ };
5
+ }, undefined, "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
+ selected: {
7
+ true: string;
8
+ };
9
+ }, {
10
+ selected: {
11
+ true: string;
12
+ };
13
+ }>, {
14
+ selected: {
15
+ true: string;
16
+ };
17
+ }, undefined, import("tailwind-variants").TVReturnType<{
18
+ selected: {
19
+ true: string;
20
+ };
21
+ }, undefined, "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
+ selected: {
23
+ true: string;
24
+ };
25
+ }, {
26
+ selected: {
27
+ true: string;
28
+ };
29
+ }>, unknown, unknown, undefined>>;
2
30
  export declare const selectVariants: import("tailwind-variants").TVReturnType<{
3
31
  open: {
4
32
  true: {
@@ -24,7 +52,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
24
52
  button: string;
25
53
  groupedTitle: string;
26
54
  containerGrouped: string;
27
- hintBody: string;
28
55
  }, undefined, import("tailwind-variants/dist/config").TVConfig<{
29
56
  open: {
30
57
  true: {
@@ -90,7 +117,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
90
117
  button: string;
91
118
  groupedTitle: string;
92
119
  containerGrouped: string;
93
- hintBody: string;
94
120
  }, import("tailwind-variants").TVReturnType<{
95
121
  open: {
96
122
  true: {
@@ -116,7 +142,6 @@ export declare const selectVariants: import("tailwind-variants").TVReturnType<{
116
142
  button: string;
117
143
  groupedTitle: string;
118
144
  containerGrouped: string;
119
- hintBody: string;
120
145
  }, undefined, import("tailwind-variants/dist/config").TVConfig<{
121
146
  open: {
122
147
  true: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-core",
3
- "version": "0.2.2-beta.2",
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": "0ecb7949c627cb5d2fe9395f148e48a0bb071599"
34
+ "gitHead": "6cfddfd6db49be4dcf6dc53f192e659566bce3b3"
35
35
  }