@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.
@@ -7,7 +7,7 @@ interface TabProps {
7
7
  htmlProps?: HTMLAttributes<HTMLButtonElement>;
8
8
  active?: boolean;
9
9
  variant?: `${TabsVariant}`;
10
- notifications?: number;
10
+ notifications?: number | string;
11
11
  label: string;
12
12
  }
13
13
  declare const Tab: ({ id, className, onClick, htmlProps, label, variant, active, notifications, }: TabProps) => React.JSX.Element;
@@ -23047,9 +23047,12 @@ const NotificationBubble = styled.span `
23047
23047
  `;
23048
23048
 
23049
23049
  const Tab = ({ id, className, onClick, htmlProps, label, variant = "light", active = false, notifications, }) => {
23050
+ const notificationText = typeof notifications === "number" && notifications <= 0
23051
+ ? undefined
23052
+ : notifications;
23050
23053
  return (a__default.createElement(TabButton, { id: id, "$variant": variant, className: `${className} ${active && "active"}`, onClick: () => onClick?.(label), ...htmlProps },
23051
23054
  label,
23052
- !!(notifications && notifications > 0) && (a__default.createElement(NotificationBubble, { "$isActive": active }, notifications))));
23055
+ !!notificationText && (a__default.createElement(NotificationBubble, { "$isActive": active }, notificationText))));
23053
23056
  };
23054
23057
 
23055
23058
  const Tabs = ({ id, className, tabs, htmlProps, onTabClick, defaultActiveTab, variant = "light", isPill, }) => {