@stella-source/stellasource-dsl 2.0.0 → 3.0.0

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.
@@ -3,6 +3,10 @@ interface TabsStylesProps {
3
3
  $variant: `${TabsVariant}`;
4
4
  $isPill?: boolean;
5
5
  }
6
+ interface NotificationBubbleProps {
7
+ $isActive?: boolean;
8
+ }
6
9
  declare const TabsBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, TabsStylesProps>> & string;
7
10
  declare const TabButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TabsStylesProps>> & string;
8
- export { TabsBar, TabButton };
11
+ declare const NotificationBubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, NotificationBubbleProps>> & string;
12
+ export { TabsBar, TabButton, NotificationBubble };
@@ -7,7 +7,8 @@ interface TabProps {
7
7
  htmlProps?: HTMLAttributes<HTMLButtonElement>;
8
8
  active?: boolean;
9
9
  variant?: `${TabsVariant}`;
10
+ notifications?: number;
10
11
  label: string;
11
12
  }
12
- declare const Tab: ({ id, className, onClick, htmlProps, label, variant, active, }: TabProps) => React.JSX.Element;
13
+ declare const Tab: ({ id, className, onClick, htmlProps, label, variant, active, notifications, }: TabProps) => React.JSX.Element;
13
14
  export default Tab;
@@ -11,7 +11,10 @@ interface TabsBaseProps {
11
11
  defaultActiveTab?: string;
12
12
  isPill?: boolean;
13
13
  variant?: `${TabsVariant}`;
14
- tabs: string[];
14
+ tabs: {
15
+ label: string;
16
+ notifications?: number;
17
+ }[];
15
18
  onTabClick: (label?: string) => void;
16
19
  }
17
20
  interface TabsPropsLight {
package/dist/index.d.ts CHANGED
@@ -356,7 +356,10 @@ interface TabsBaseProps {
356
356
  defaultActiveTab?: string;
357
357
  isPill?: boolean;
358
358
  variant?: `${TabsVariant}`;
359
- tabs: string[];
359
+ tabs: {
360
+ label: string;
361
+ notifications?: number;
362
+ }[];
360
363
  onTabClick: (label?: string) => void;
361
364
  }
362
365
  interface TabsPropsLight {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"