Skip to content

Commit

Permalink
fix: Export Tab Component
Browse files Browse the repository at this point in the history
  • Loading branch information
mucahit committed Sep 3, 2020
1 parent 43082a1 commit 9b6dcbe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hipo/react-ui-toolkit",
"version": "0.2.4",
"version": "0.2.5",
"description": "React based UI toolkit.",
"main": "dist/index.js",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ import FileUploadButton, {
FileUploadButtonProps
} from "./button/file-upload/FileUploadButton";
import Spinner, {SpinnerProps} from "./spinner/Spinner";
import Tab, {TabItem, TabProps} from "./tab/Tab";

export {
// Components
FormField,
Input,
FileInput,
Expand All @@ -28,6 +30,8 @@ export {
Button,
FileUploadButton,
Spinner,
Tab,
// Types
FormFieldProps,
InputProps,
FileInputProps,
Expand All @@ -40,5 +44,7 @@ export {
ListProps,
ButtonProps,
FileUploadButtonProps,
SpinnerProps
SpinnerProps,
TabItem,
TabProps
};
2 changes: 1 addition & 1 deletion src/tab/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type TabItem = {
icon?: React.ReactNode;
};

interface TabProps {
export interface TabProps {
items: TabItem[];
initialActiveTabIndex?: number;
children: React.ReactNode[];
Expand Down
3 changes: 1 addition & 2 deletions src/tab/_tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
.tab-header-item {
--button-bg: transparent;
--button-width: auto;

color: black;
--button-color: black;
}

0 comments on commit 9b6dcbe

Please sign in to comment.