@stella-source/stellasource-dsl 3.3.0 → 3.3.1
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/dist/cjs/index.js
CHANGED
|
@@ -23067,9 +23067,12 @@ const NotificationBubble = styled.span `
|
|
|
23067
23067
|
`;
|
|
23068
23068
|
|
|
23069
23069
|
const Tab = ({ id, className, onClick, htmlProps, label, variant = "light", active = false, notifications, }) => {
|
|
23070
|
+
const notificationText = typeof notifications === "number" && notifications <= 0
|
|
23071
|
+
? undefined
|
|
23072
|
+
: notifications;
|
|
23070
23073
|
return (a$m.createElement(TabButton, { id: id, "$variant": variant, className: `${className} ${active && "active"}`, onClick: () => onClick?.(label), ...htmlProps },
|
|
23071
23074
|
label,
|
|
23072
|
-
!!
|
|
23075
|
+
!!notificationText && (a$m.createElement(NotificationBubble, { "$isActive": active }, notificationText))));
|
|
23073
23076
|
};
|
|
23074
23077
|
|
|
23075
23078
|
const Tabs = ({ id, className, tabs, htmlProps, onTabClick, defaultActiveTab, variant = "light", isPill, }) => {
|