@edu-tosel/design 1.0.305 → 1.0.306
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/layout/template/Tab.d.ts +1 -0
- package/layout/template/Tab.js +8 -5
- package/package.json +1 -1
- package/version.txt +1 -1
package/layout/template/Tab.d.ts
CHANGED
package/layout/template/Tab.js
CHANGED
|
@@ -18,7 +18,7 @@ export default function Tab({ tabs, option, state, }) {
|
|
|
18
18
|
displays: "flex shrink-0",
|
|
19
19
|
sizes: "w-full xl:w-fit h-fit",
|
|
20
20
|
spacings: "xl:mt-2.5 p-2.5 gap-2.5",
|
|
21
|
-
backgrounds: boundary ?? "bg-
|
|
21
|
+
backgrounds: boundary ?? "bg-gray-light xl:bg-gray-light ",
|
|
22
22
|
styles: "rounded-0 xl:rounded-xl",
|
|
23
23
|
scrollStyling: "overflow-y-scroll scrollbar-hidden",
|
|
24
24
|
};
|
|
@@ -26,9 +26,9 @@ export default function Tab({ tabs, option, state, }) {
|
|
|
26
26
|
displays: "flex shrink-0 justify-center items-center",
|
|
27
27
|
styles: "rounded-md duration-500 ",
|
|
28
28
|
sizes: `${heightSize[height ?? "lg"]} ${widthSize[width ?? "lg"]}`,
|
|
29
|
-
font: text ?? "text-
|
|
29
|
+
font: text ?? "text-gray-medium",
|
|
30
30
|
};
|
|
31
|
-
return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, disabled, isStatic, option }, index) => (_jsx("button", { onClick: () => {
|
|
31
|
+
return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, disabled, isStatic, isCompleted, option }, index) => (_jsx("button", { onClick: () => {
|
|
32
32
|
if (disabled) {
|
|
33
33
|
if (typeof disabled === "function")
|
|
34
34
|
return disabled();
|
|
@@ -39,6 +39,9 @@ export default function Tab({ tabs, option, state, }) {
|
|
|
39
39
|
return onClick && onClick();
|
|
40
40
|
}, className: cn(button, `${!isStatic &&
|
|
41
41
|
tabsSelection[index] &&
|
|
42
|
-
`${background ?? "bg-white"} rounded-2xl`}`, `${isStatic &&
|
|
43
|
-
`${option?.background ?? "bg-green-dark"} ${option?.text ?? "text-white"} `}
|
|
42
|
+
`${background ?? "bg-white"} rounded-2xl shadow-main text-green-dark`}`, `${isStatic &&
|
|
43
|
+
`${option?.background ?? "bg-green-dark"} ${option?.text ?? "text-white"} `}`, `${!isStatic &&
|
|
44
|
+
!tabsSelection[index] &&
|
|
45
|
+
isCompleted &&
|
|
46
|
+
"text-green-dark"}`), children: title }, title))) }));
|
|
44
47
|
}
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.306
|