@tecsinapse/cortex-core 0.4.6 → 0.4.8-beta.0

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.
@@ -14,7 +14,7 @@ const badgeStyles = tailwindVariants.tv({
14
14
  info: "bg-info-medium"
15
15
  },
16
16
  isAnchor: {
17
- true: "absolute items-center flex justify-center w-[1rem] h-[1rem] -top-1 -right-1 px-[5px] py-[2px]",
17
+ true: "absolute flex justify-center h-[1.125rem] -top-1 -right-1 px-[5px]",
18
18
  false: "px-[5px]"
19
19
  }
20
20
  },
@@ -74,7 +74,7 @@ const label = (props) => {
74
74
  const { placeholder, intent } = props;
75
75
  return labelBaseStyles({
76
76
  intent,
77
- className: clsx.clsx(String(props.className) ?? props.class, {
77
+ className: clsx.clsx(props.className ? String(props.className) : props.class, {
78
78
  "peer-placeholder-shown:hidden": !!placeholder
79
79
  })
80
80
  });
@@ -12,7 +12,7 @@ const badgeStyles = tv({
12
12
  info: "bg-info-medium"
13
13
  },
14
14
  isAnchor: {
15
- true: "absolute items-center flex justify-center w-[1rem] h-[1rem] -top-1 -right-1 px-[5px] py-[2px]",
15
+ true: "absolute flex justify-center h-[1.125rem] -top-1 -right-1 px-[5px]",
16
16
  false: "px-[5px]"
17
17
  }
18
18
  },
@@ -72,7 +72,7 @@ const label = (props) => {
72
72
  const { placeholder, intent } = props;
73
73
  return labelBaseStyles({
74
74
  intent,
75
- className: clsx(String(props.className) ?? props.class, {
75
+ className: clsx(props.className ? String(props.className) : props.class, {
76
76
  "peer-placeholder-shown:hidden": !!placeholder
77
77
  })
78
78
  });
@@ -1,4 +1,4 @@
1
- import { VariantProps, ClassProp } from 'tailwind-variants';
1
+ import { ClassProp, VariantProps } from 'tailwind-variants';
2
2
  declare const badgeStyles: import("tailwind-variants").TVReturnType<{
3
3
  intent: {
4
4
  primary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-core",
3
- "version": "0.4.6",
3
+ "version": "0.4.8-beta.0",
4
4
  "license": "MIT",
5
5
  "description": "Core library for tailwindcss based design",
6
6
  "main": "dist/esm/index.js",
@@ -32,5 +32,5 @@
32
32
  "peerDependencies": {
33
33
  "tailwindcss": ">=3.3.0"
34
34
  },
35
- "gitHead": "b09eb691310bb40ea8e7481d2bdfece3c3b239ff"
35
+ "gitHead": "6351ddb5b10a5ef01aa4a92bdc909e6aded110e5"
36
36
  }