@stella-source/stellasource-dsl 1.4.2 → 1.5.3

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.
@@ -0,0 +1,2 @@
1
+ declare const TabsBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
2
+ export { TabsBar };
@@ -0,0 +1,10 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ interface TabProps {
3
+ id?: string;
4
+ className?: string;
5
+ onClick?: (tabLabel: string) => void;
6
+ label: string;
7
+ htmlProps?: HTMLAttributes<HTMLButtonElement>;
8
+ }
9
+ declare const Tab: ({ id, className, onClick, htmlProps, label }: TabProps) => React.JSX.Element;
10
+ export default Tab;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TabsProps } from "./types";
3
+ declare const Tabs: ({ id, className, tabs, activeTab, htmlProps, onTabClick, }: TabsProps) => React.JSX.Element;
4
+ export default Tabs;
@@ -0,0 +1,11 @@
1
+ import { TabsProps } from "./types";
2
+ declare const _default: {
3
+ title: string;
4
+ component: ({ id, className, tabs, activeTab, htmlProps, onTabClick, }: TabsProps) => import("react").JSX.Element;
5
+ tags: string[];
6
+ parameters: {};
7
+ argTypes: {};
8
+ args: TabsProps;
9
+ };
10
+ export default _default;
11
+ export declare const Tabs: {};
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes } from "react";
2
+ export interface TabsProps {
3
+ id?: string;
4
+ className?: string;
5
+ activeTab?: string;
6
+ htmlProps?: HTMLAttributes<HTMLElement>;
7
+ tabs: string[];
8
+ onTabClick: (label?: string) => void;
9
+ }
@@ -15,6 +15,7 @@ import Pagination from "./components/Pagination/Pagination";
15
15
  import Sync from "./components/Sync/Sync";
16
16
  import TableUnitsAndTotals from "./components/TableUnitsAndTotals/TableUnitsAndTotals";
17
17
  import PaymentStatus from "./components/PaymentStatus/PaymentStatus";
18
+ import Tabs from "./components/Tabs/Tabs";
18
19
  /** Types */
19
20
  import { StellaButtonVariant } from "./components/StellaButton/types";
20
21
  /** Tokens */
@@ -22,4 +23,4 @@ import { Styles } from "./shared/tokens";
22
23
  import "./shared/tokens/tokens.css";
23
24
  /**Exports */
24
25
  export type { StellaIconDefinition } from "./components/StellaIcon/types";
25
- export { Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, Styles, };
26
+ export { Tabs, Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, Styles, };
package/dist/index.d.ts CHANGED
@@ -336,6 +336,17 @@ interface PaymentStatusProps {
336
336
 
337
337
  declare const PaymentStatus: ({ variant, id, className }: PaymentStatusProps) => React$1.JSX.Element;
338
338
 
339
+ interface TabsProps {
340
+ id?: string;
341
+ className?: string;
342
+ activeTab?: string;
343
+ htmlProps?: HTMLAttributes<HTMLElement>;
344
+ tabs: string[];
345
+ onTabClick: (label?: string) => void;
346
+ }
347
+
348
+ declare const Tabs: ({ id, className, tabs, activeTab, htmlProps, onTabClick, }: TabsProps) => React$1.JSX.Element;
349
+
339
350
  declare const Styles: {
340
351
  color: {
341
352
  white: string;
@@ -397,5 +408,5 @@ declare const Styles: {
397
408
  };
398
409
  };
399
410
 
400
- export { HelperText, IconButton, Label, Loader, NumberInput, Pagination, PasswordInput, PaymentStatus, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, TextInput, Tooltip };
411
+ export { HelperText, IconButton, Label, Loader, NumberInput, Pagination, PasswordInput, PaymentStatus, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, Tabs, TextInput, Tooltip };
401
412
  export type { StellaIconDefinition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "1.4.2",
3
+ "version": "1.5.3",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"