@edu-tosel/design 1.0.190 → 1.0.192
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/design/TextBox.design.js +0 -1
- package/layout/template/Tab.js +6 -1
- package/package.json +1 -1
- package/version.txt +1 -1
|
@@ -12,7 +12,6 @@ const subtitleSize = {
|
|
|
12
12
|
export default function TextBoxDesign({ titles, children, option, }) {
|
|
13
13
|
const { title, subtitle, titleColor, color, subtitleColor } = titles;
|
|
14
14
|
const { size, isCenter, className } = option ?? {};
|
|
15
|
-
console.log(isCenter);
|
|
16
15
|
const container = {
|
|
17
16
|
displays: "flex flex-col",
|
|
18
17
|
center: isCenter && "items-center",
|
package/layout/template/Tab.js
CHANGED
|
@@ -28,7 +28,12 @@ export default function Tab({ tabs, option, state, }) {
|
|
|
28
28
|
sizes: `${heightSize[height ?? "lg"]} ${widthSize[width ?? "lg"]}`,
|
|
29
29
|
font: text ?? "text-green-dark",
|
|
30
30
|
};
|
|
31
|
-
return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, isStatic, option }, index) => (_jsx("button", { onClick: () => {
|
|
31
|
+
return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, disabled, isStatic, option }, index) => (_jsx("button", { onClick: () => {
|
|
32
|
+
if (disabled) {
|
|
33
|
+
if (typeof disabled === "function")
|
|
34
|
+
return disabled();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
32
37
|
!isStatic &&
|
|
33
38
|
setTabsSelection(tabsSelection.map((_, i) => i === index));
|
|
34
39
|
return onClick && onClick();
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.192
|