frst-components 0.22.67 → 0.22.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2144,11 +2144,26 @@ const AvatarImg$1 = styled__default["default"].img `
|
|
|
2144
2144
|
border-radius: 50%;
|
|
2145
2145
|
object-fit: cover;
|
|
2146
2146
|
background-image: url('https://cdn-images.frstfalconi.cloud/Avatar_default.png');
|
|
2147
|
+
background-size: cover;
|
|
2148
|
+
background-position: center;
|
|
2149
|
+
display: flex;
|
|
2150
|
+
align-items: center;
|
|
2151
|
+
justify-content: center;
|
|
2147
2152
|
|
|
2148
2153
|
${({ disabled }) => disabled === true &&
|
|
2149
2154
|
`
|
|
2150
2155
|
filter: grayscale(100%);
|
|
2151
2156
|
`}
|
|
2157
|
+
|
|
2158
|
+
&::after {
|
|
2159
|
+
content: "";
|
|
2160
|
+
width: 100%;
|
|
2161
|
+
height: 100%;
|
|
2162
|
+
background-repeat: no-repeat;
|
|
2163
|
+
background-size: cover;
|
|
2164
|
+
background-position: center;
|
|
2165
|
+
background-image: ${(props) => props.src ? `url(${props.src})` : 'none'};
|
|
2166
|
+
}
|
|
2152
2167
|
`;
|
|
2153
2168
|
const AvatarWrapper = styled__default["default"].div `
|
|
2154
2169
|
width: ${(props) => props.size || '120px'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatarStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/avatarStyles.ts"],"names":[],"mappings":"AAEA,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"avatarStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/avatarStyles.ts"],"names":[],"mappings":"AAEA,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,SAAS,yEA4BrB,CAAA;AAED,eAAO,MAAM,aAAa,yEAIzB,CAAA"}
|