next-helios-fe 1.9.12 → 1.9.14
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.
package/package.json
CHANGED
@@ -8,6 +8,7 @@ interface TabProps {
|
|
8
8
|
tabs: {
|
9
9
|
title: string;
|
10
10
|
icon?: string;
|
11
|
+
disabled?: boolean;
|
11
12
|
}[];
|
12
13
|
options?: {
|
13
14
|
variant?: "vertical" | "horizontal";
|
@@ -64,12 +65,13 @@ export const Tab: TabComponent = ({
|
|
64
65
|
className={`flex select-none items-center gap-2 whitespace-nowrap border-b-2 pb-1.5 pt-2 duration-300 ${
|
65
66
|
tempActiveTab === index
|
66
67
|
? "border-primary text-primary"
|
67
|
-
: "border-transparent hover:border-primary-transparent hover:text-primary"
|
68
|
+
: "border-transparent hover:border-primary-transparent hover:text-primary disabled:text-disabled"
|
68
69
|
} ${
|
69
70
|
onCloseTab && childrenList.length !== 1
|
70
71
|
? "pe-10 ps-6"
|
71
72
|
: "px-6"
|
72
73
|
}`}
|
74
|
+
disabled={tab.disabled}
|
73
75
|
onClick={() => {
|
74
76
|
if (activeTab === undefined) {
|
75
77
|
setTempActiveTab(index);
|
@@ -128,8 +130,9 @@ export const Tab: TabComponent = ({
|
|
128
130
|
className={`flex select-none items-center gap-2 whitespace-nowrap border-b-2 border-r-0 px-6 pb-1.5 pt-2 text-left duration-300 lg:border-b-0 lg:border-r-2 ${
|
129
131
|
tempActiveTab === index
|
130
132
|
? "border-primary text-primary"
|
131
|
-
: "border-transparent hover:border-primary-transparent hover:text-primary"
|
133
|
+
: "border-transparent hover:border-primary-transparent hover:text-primary disabled:text-disabled"
|
132
134
|
}`}
|
135
|
+
disabled={tab.disabled}
|
133
136
|
onClick={() => {
|
134
137
|
if (activeTab === undefined) {
|
135
138
|
setTempActiveTab(index);
|