diff --git a/src/components/Tabs/Tabs.tsx b/src/components/Tabs/Tabs.tsx index 08b05577..e4bea5e1 100644 --- a/src/components/Tabs/Tabs.tsx +++ b/src/components/Tabs/Tabs.tsx @@ -1,13 +1,8 @@ import * as TabsPrimitive from '@radix-ui/react-tabs' import { ReactNode, useState, ComponentPropsWithoutRef } from 'react' -import { Box } from '../Box' import { Text } from '../Text' -import * as styles from './styles.css' - -export { TabsPrimitive } - export interface TabsProps extends ComponentPropsWithoutRef { tabs: (TabItemProps & { content: ReactNode })[] @@ -19,7 +14,7 @@ export interface TabItemProps { } export const Tabs = (props: TabsProps) => { - const { tabs, onValueChange, ...rest } = props + const { tabs, onValueChange, className, ...rest } = props const [selectedValue, setSelectedValue] = useState( rest.defaultValue ) @@ -33,12 +28,16 @@ export const Tabs = (props: TabsProps) => { } return ( - + {tabs.map(tab => ( @@ -65,24 +64,27 @@ export const TabsHeader = (props: TabsHeaderProps) => { const selectedIdx = tabs.findIndex(tab => tab.value === value) return ( - - + +
- +
{tabs.map(tab => ( - + {tab.label} @@ -91,6 +93,8 @@ export const TabsHeader = (props: TabsHeaderProps) => { ) } +export { TabsPrimitive } + export const TabsRoot = TabsPrimitive.Root export const TabsList = TabsPrimitive.TabsList diff --git a/src/tokens/border.ts b/src/tokens/border.ts index 76665cfc..1a09946b 100644 --- a/src/tokens/border.ts +++ b/src/tokens/border.ts @@ -6,9 +6,9 @@ export const borderWidths = { export const radii = { none: '0', - xs: '0.25rem', // 4px - sm: '0.5rem', // 8px - md: '0.75rem', // 12px - lg: '1rem', // 16px - circle: '9999px', + xs: '0.25rem', // 4px -> rounded + sm: '0.5rem', // 8px -> rounded-lg + md: '0.75rem', // 12px -> rounded-xl + lg: '1rem', // 16px -> rounded-2xl + circle: '9999px', // rounded-full }