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..32725ebef 100644 --- a/src/components/designSystem/Skeleton.tsx +++ b/src/components/designSystem/Skeleton.tsx @@ -14,16 +14,12 @@ type SkeletonVariant = type SkeletonColor = 'dark' | 'light' interface SkeletonConnectorProps { - variant: Extract + variant: Extract size: AvatarSize /** * @deprecated Use `className` and TailwindCSS instead */ width?: never - /** - * @deprecated Use `className` and TailwindCSS instead - */ - height?: never className?: string /** * @deprecated Use `className` and TailwindCSS instead @@ -41,15 +37,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 /** @@ -95,14 +87,12 @@ export const Skeleton = ({ marginRight, marginTop, width, - height, }: SkeletonConnectorProps | SkeletonGenericProps) => { return ( @@ -110,15 +100,11 @@ export const Skeleton = ({ } const SkeletonContainer = styled.div<{ - $height?: number | string $width?: number | string $marginRight?: number | string $marginBottom?: number | string $marginTop?: number | string }>` - height: ${({ $height }) => - !$height ? 0 : typeof $height === 'number' ? `${$height}px` : $height}; - width: ${({ $width }) => !$width ? 0 : typeof $width === 'number' ? `${$width}px !important` : `${$width} !important`}; margin-right: ${({ $marginRight }) => 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/components/settings/PreviewEmailLayout.tsx b/src/components/settings/PreviewEmailLayout.tsx index 41f02810a..1ffbaece7 100644 --- a/src/components/settings/PreviewEmailLayout.tsx +++ b/src/components/settings/PreviewEmailLayout.tsx @@ -51,13 +51,7 @@ export const PreviewEmailLayout: FC = ({
{isLoading ? ( <> - +
diff --git a/src/layouts/SideNavLayout.tsx b/src/layouts/SideNavLayout.tsx index bc42f49f0..3e3edcb98 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) => (
- +
))} diff --git a/src/pages/__devOnly/DesignSystem.tsx b/src/pages/__devOnly/DesignSystem.tsx index 9f496190e..bd8cc52c9 100644 --- a/src/pages/__devOnly/DesignSystem.tsx +++ b/src/pages/__devOnly/DesignSystem.tsx @@ -480,7 +480,7 @@ const DesignSystem = () => {
- +