@toptal/picasso-avatar
Advanced tools
Comparing version 1.0.3-alpha-fx-4584-drawer-fd520741b.19 to 1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22
@@ -11,2 +11,6 @@ import React from 'react'; | ||
const classes = useStyles(); | ||
const SIZE_TO_FONT_SIZE = { | ||
small: '!text-[0.666666667em]', | ||
large: '!text-[1em]', | ||
}; | ||
return (React.createElement("div", { | ||
@@ -17,3 +21,3 @@ /* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */ | ||
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */ | ||
className: classes[`${fontSize}Font`], invert: true }, children))); | ||
className: SIZE_TO_FONT_SIZE[fontSize], invert: true }, children))); | ||
}; | ||
@@ -20,0 +24,0 @@ TextAvatar.defaultProps = { |
{ | ||
"name": "@toptal/picasso-avatar", | ||
"version": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"version": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"description": "Toptal UI components library - Avatar", | ||
@@ -25,9 +25,9 @@ "publishConfig": { | ||
"dependencies": { | ||
"@toptal/picasso-container": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-icons": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-image": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-logo": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-shared": "14.0.2-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-typography": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-utils": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b", | ||
"@toptal/picasso-container": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"@toptal/picasso-icons": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"@toptal/picasso-image": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"@toptal/picasso-logo": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"@toptal/picasso-shared": "14.0.2-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"@toptal/picasso-typography": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"@toptal/picasso-utils": "1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b", | ||
"classnames": "^2.5.1" | ||
@@ -41,3 +41,4 @@ }, | ||
"@material-ui/core": "4.12.4", | ||
"react": ">=16.12.0 < 19.0.0" | ||
"react": ">=16.12.0 < 19.0.0", | ||
"tailwindcss": ">=3" | ||
}, | ||
@@ -48,3 +49,3 @@ "exports": { | ||
"devDependencies": { | ||
"@toptal/picasso-test-utils": "1.0.3-alpha-fx-4584-drawer-fd520741b.19+fd520741b" | ||
"@toptal/picasso-test-utils": "1.1.1-alpha-fx-4589-migrate-typography-b543ce17b.14+b543ce17b" | ||
}, | ||
@@ -56,3 +57,3 @@ "files": [ | ||
], | ||
"gitHead": "fd520741baa69e7630e45712df119188612b9e98" | ||
"gitHead": "b543ce17b13ceefa1bb1c0a5c29ce41385d8aa73" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
116686
2445
11
+ Addedtailwindcss@4.0.0(transitive)
Updated@toptal/picasso-container@1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b
Updated@toptal/picasso-icons@1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b
Updated@toptal/picasso-image@1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b
Updated@toptal/picasso-logo@1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b
Updated@toptal/picasso-shared@14.0.2-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b
Updated@toptal/picasso-typography@1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b
Updated@toptal/picasso-utils@1.0.3-alpha-fx-4589-migrate-typography-b543ce17b.22+b543ce17b