@megha-ui/react 1.3.131 → 1.3.132

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,6 @@ export const Tabs = ({ children, defaultActive, className, type = "horizontal",
14
14
  flexDirection: type === "vertical" ? "row" : "column",
15
15
  width: "100%",
16
16
  height: "100%",
17
- gap: "1rem",
18
17
  borderRadius: "0.5rem",
19
18
  overflow: "hidden",
20
19
  }, children: children }) }));
@@ -46,7 +45,7 @@ export const Tab = ({ label, description, tabNumber }) => {
46
45
  cursor: "pointer",
47
46
  border: "none",
48
47
  textAlign: "left",
49
- width: "100%",
48
+ width: type === "vertical" ? "100%" : "max-content",
50
49
  marginBottom: "0.25rem",
51
50
  borderRadius: "0.25rem",
52
51
  display: "flex",
@@ -61,10 +60,7 @@ export const Tab = ({ label, description, tabNumber }) => {
61
60
  borderRadius: "0.35rem",
62
61
  minWidth: "1.75rem",
63
62
  textAlign: "center",
64
- }, className: "shadow-md", children: tabNumber })), _jsxs("div", { style: {
65
- display: "flex",
66
- flexDirection: "column",
67
- }, children: [_jsx("span", { style: { fontWeight: 500, fontSize: "1rem" }, children: label }), showTabDescription && description && (_jsx("span", { style: {
63
+ }, className: "shadow-md", children: tabNumber })), _jsxs("div", { style: Object.assign({ display: "flex", flexDirection: "column" }, (!showTabNumber && isActive ? { borderBottom: "3px solid var(--brand)" } : {})), children: [_jsx("span", { style: { fontWeight: 500, fontSize: "1rem" }, children: label }), showTabDescription && description && (_jsx("span", { style: {
68
64
  color: "var(--foreground)",
69
65
  fontWeight: 400,
70
66
  fontSize: "0.85rem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.131",
3
+ "version": "1.3.132",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",