next-helios-fe 1.1.37 → 1.1.38
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
@@ -11,6 +11,7 @@ interface TabProps {
|
|
11
11
|
}[];
|
12
12
|
options?: {
|
13
13
|
variant?: "vertical" | "horizontal";
|
14
|
+
border?: boolean;
|
14
15
|
};
|
15
16
|
}
|
16
17
|
|
@@ -31,7 +32,7 @@ export const Tab: TabComponent = ({ children, tabs, options }) => {
|
|
31
32
|
options?.variant !== "horizontal"
|
32
33
|
? "flex-col divide-y-1"
|
33
34
|
: "flex-col lg:flex-row divide-y-1 lg:divide-y-0 divide-x-0 lg:divide-x-1"
|
34
|
-
}`}
|
35
|
+
} ${options?.border && "border rounded-md"}`}
|
35
36
|
>
|
36
37
|
{options?.variant !== "horizontal" ? (
|
37
38
|
<div className="flex overflow-auto [&::-webkit-scrollbar]:hidden">
|
@@ -124,15 +124,13 @@ export const Table: TableComponentProps = ({
|
|
124
124
|
.sort((a, b) => a.localeCompare(b))
|
125
125
|
.filter((value, index, self) => self.indexOf(value) === index)
|
126
126
|
.map((value) => {
|
127
|
-
|
127
|
+
if (!categoryFilter.includes(value)) {
|
128
|
+
setCategoryFilter((prev) => [...prev, value]);
|
129
|
+
}
|
128
130
|
});
|
129
131
|
});
|
130
132
|
}, [header, data]);
|
131
133
|
|
132
|
-
useEffect(() => {
|
133
|
-
console.log("categoryFilter", categoryFilter);
|
134
|
-
}, [categoryFilter]);
|
135
|
-
|
136
134
|
const filteredData = useMemo(() => {
|
137
135
|
return data
|
138
136
|
?.filter((item) => {
|