diff --git a/src/components/designSystem/Avatar.tsx b/src/components/designSystem/Avatar.tsx index e2ebf27df..ea10c423a 100644 --- a/src/components/designSystem/Avatar.tsx +++ b/src/components/designSystem/Avatar.tsx @@ -7,7 +7,7 @@ import { Typography } from './Typography' import { colors } from '../../../tailwind.config' -export type AvatarSize = 'small' | 'intermediate' | 'medium' | 'big' | 'large' +export type AvatarSize = 'tiny' | 'small' | 'intermediate' | 'medium' | 'big' | 'large' type AvatarVariant = 'connector' | 'user' | 'company' | 'connector-full' interface AvatarConnectorProps { @@ -30,6 +30,7 @@ export interface AvatarGenericProps { const mapTypographyVariant = (size: AvatarSize) => { switch (size) { + case 'tiny': case 'small': case 'intermediate': return 'noteHl' @@ -78,6 +79,7 @@ const getBackgroundColorKey = (identifier?: string): keyof typeof colors.avatar } export const avatarSizeStyles: Record = { + tiny: cx('w-2 min-w-2 h-2 rounded'), small: cx('w-4 min-w-4 h-4 rounded'), intermediate: cx('w-6 min-w-6 h-6 rounded-lg'), medium: cx('w-8 min-w-8 h-8 rounded-xl'), diff --git a/src/components/designSystem/Skeleton.tsx b/src/components/designSystem/Skeleton.tsx index ecc9f1078..6d292cde8 100644 --- a/src/components/designSystem/Skeleton.tsx +++ b/src/components/designSystem/Skeleton.tsx @@ -14,7 +14,7 @@ type SkeletonVariant = type SkeletonColor = 'dark' | 'light' interface SkeletonConnectorProps { - variant: Extract + variant: Extract size: AvatarSize /** * @deprecated Use `className` and TailwindCSS instead @@ -41,15 +41,11 @@ interface SkeletonConnectorProps { } interface SkeletonGenericProps { - variant: Extract + variant: Extract /** * @deprecated Use `className` and TailwindCSS instead */ width?: number | string - /** - * @deprecated Use `className` and TailwindCSS instead - */ - height?: number | string size?: never className?: string /** diff --git a/src/components/form/ComboBox/ComboBox.tsx b/src/components/form/ComboBox/ComboBox.tsx index fe05470ec..7b679e17f 100644 --- a/src/components/form/ComboBox/ComboBox.tsx +++ b/src/components/form/ComboBox/ComboBox.tsx @@ -135,7 +135,7 @@ export const ComboBox = ({ {[1, 2, 3].map((i) => ( - + ))} diff --git a/src/components/graphs/Invoices.tsx b/src/components/graphs/Invoices.tsx index e7dc258a7..6ffedb12e 100644 --- a/src/components/graphs/Invoices.tsx +++ b/src/components/graphs/Invoices.tsx @@ -307,7 +307,7 @@ const Invoices = ({
{[...Array(3)].map((_, index) => ( - + diff --git a/src/components/graphs/Usage.tsx b/src/components/graphs/Usage.tsx index 5cd57b21c..32a278092 100644 --- a/src/components/graphs/Usage.tsx +++ b/src/components/graphs/Usage.tsx @@ -239,7 +239,7 @@ const Usage = ({
{[...Array(3)].map((_, index) => ( - + diff --git a/src/components/plans/details/PlanSubscriptionListItem.tsx b/src/components/plans/details/PlanSubscriptionListItem.tsx index 71adad3a1..b3b655148 100644 --- a/src/components/plans/details/PlanSubscriptionListItem.tsx +++ b/src/components/plans/details/PlanSubscriptionListItem.tsx @@ -105,7 +105,7 @@ export const PlanSubscriptionListItemSkeleton = ({ return ( - + diff --git a/src/layouts/SideNavLayout.tsx b/src/layouts/SideNavLayout.tsx index d97175d04..c1306dd1b 100644 --- a/src/layouts/SideNavLayout.tsx +++ b/src/layouts/SideNavLayout.tsx @@ -225,13 +225,13 @@ const SideNav = () => { +
{[1, 2, 3, 4, 5, 6, 7].map((i) => (
- +
))} @@ -312,8 +312,8 @@ const SideNav = () => { direction={'row'} paddingTop={3} > - - + + ))}