Skip to content

Commit

Permalink
Moving fast and dangerously. Fix sidebar and card exports
Browse files Browse the repository at this point in the history
  • Loading branch information
exoup committed Apr 9, 2024
1 parent 2017134 commit dc69328
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twill-ui",
"version": "0.0.2",
"version": "0.0.3",
"description": "A small tailwind based ui component library for use in React projects. Work in progress.",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ Card.Content = Content;
Card.Hero = Hero;
Card.Section = Section;
Card.Title = Title;
export default Card;
export { Card };
10 changes: 5 additions & 5 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Sidebar = ({ typography, color, radius, variant, className, children, ...a
)
};

export const Content = ({
const Content = ({
radius,
variant,
className,
Expand Down Expand Up @@ -82,7 +82,7 @@ export const Content = ({
)
};

export const Submenu = ({
const Submenu = ({
title,
expanded = false,
icon = false,
Expand Down Expand Up @@ -171,7 +171,7 @@ export const Submenu = ({
);
};

export const Item = ({ active = false, disabled = false, color, radius, variant, className, children, ...args }) => {
const Item = ({ active = false, disabled = false, color, radius, variant, className, children, ...args }) => {

const { sidebar, themeColor } = useTheme();
const { defaultOptions, styles } = sidebar.item;
Expand Down Expand Up @@ -206,11 +206,11 @@ export const Item = ({ active = false, disabled = false, color, radius, variant,
)
};

export const TextItem = ({ active = false, disabled = false, color, radius, variant = 'text', className, ...args }) => {
const TextItem = ({ active = false, disabled = false, color, radius, variant = 'text', className, ...args }) => {
return <Item active={active} disabled={disabled} color={color} radius={radius} variant={variant} className={className} {...args} />
};

export const Divider = ({ className, ...args }) => {
const Divider = ({ className, ...args }) => {
const { sidebar } = useTheme();
const { styles } = sidebar.divider;
const { initial } = styles;
Expand Down

0 comments on commit dc69328

Please sign in to comment.