@zonos/amino 5.2.23 → 5.2.24
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.
|
@@ -3,7 +3,7 @@ import type { BaseProps } from "../../types/BaseProps";
|
|
|
3
3
|
export type ImageSize = 16 | 24 | 32 | 40 | 48 | 56 | 64;
|
|
4
4
|
export declare const avatarShapes: {
|
|
5
5
|
readonly round: "50%";
|
|
6
|
-
readonly rounded: "
|
|
6
|
+
readonly rounded: "";
|
|
7
7
|
readonly square: "0px";
|
|
8
8
|
};
|
|
9
9
|
type AvatarShape = keyof typeof avatarShapes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var a=require("../../_tslib-bd4862e8.js"),r=require("react/jsx-runtime"),e=require("clsx"),o=require("../../styles/constants/theme.js"),t=require("../../style-inject.es-d4ddeae4.js");function
|
|
1
|
+
"use strict";var a=require("../../_tslib-bd4862e8.js"),r=require("react/jsx-runtime"),e=require("clsx"),o=require("../../styles/constants/theme.js"),t=require("../../style-inject.es-d4ddeae4.js");function n(a){return a&&a.__esModule?a:{default:a}}var s=n(e),i="Amino_AvatarBase-module__wrapper--gUJPn",d="Amino_AvatarBase-module__styledAvatarBase--CnTXf";t.styleInject(".Amino_AvatarBase-module__wrapper--gUJPn{align-items:center;border:var(--amino-avatar-base-border);border-radius:var(--amino-avatar-base-border-radius);display:flex;height:var(--amino-avatar-base-height);justify-content:center;width:var(--amino-avatar-base-width)}.Amino_AvatarBase-module__styledAvatarBase--CnTXf{background-color:var(--amino-avatar-base-background-color);background-image:var(--amino-avatar-base-background-image);background-position:var(--amino-avatar-base-background-position);background-repeat:no-repeat;background-size:var(--amino-avatar-base-background-size);border-radius:var(--amino-avatar-base-border-radius);height:100%;width:100%}");var c={round:"50%",rounded:"",square:"0px"};exports.AvatarBase=function(e){var t=e.backgroundColor,n=e.backgroundPosition,u=e.backgroundSize,b=e.backgroundUrl,v=e.bordered,m=e.children,g=e.className,l=e.shape,h=e.size,p=e.style;return r.jsx("div",{className:s.default(i,g),style:a.__assign(a.__assign({},p),{"--amino-avatar-base-background-color":t||"".concat(o.theme.gray100),"--amino-avatar-base-background-image":"url(".concat(b,")"),"--amino-avatar-base-background-position":n||"center","--amino-avatar-base-background-size":u||"","--amino-avatar-base-border":v?"".concat(h/16,"px solid ").concat(o.theme.gray0):"","--amino-avatar-base-border-radius":"rounded"===l?"".concat(2*(h/8-1),"px"):c[l],"--amino-avatar-base-height":"".concat(h,"px"),"--amino-avatar-base-width":"".concat(h,"px")}),children:m||r.jsx("div",{className:d})})},exports.avatarShapes=c;
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ import type { DeepKeyof, DeepPropertyType } from "../types/deep/DeepKeyof";
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
*/
|
|
40
|
-
export declare const changeDeepProperty: <T extends Record<string, unknown>, P extends DeepKeyof<T, Depth>, Depth extends 0 | 1 | 8 |
|
|
40
|
+
export declare const changeDeepProperty: <T extends Record<string, unknown>, P extends DeepKeyof<T, Depth>, Depth extends 0 | 1 | 8 | 2 | 4 | 3 | 5 | 6 | 7 | 9 = 4>({ obj, propertyPath, value, }: {
|
|
41
41
|
obj: T;
|
|
42
42
|
propertyPath: P;
|
|
43
43
|
value: DeepPropertyType<T, P, Depth>;
|
|
@@ -60,7 +60,7 @@ import type { DeepKeyofAtIndex, DeepPropertyTypeAtIndex } from "../types/deep/De
|
|
|
60
60
|
},
|
|
61
61
|
};
|
|
62
62
|
*/
|
|
63
|
-
export declare const changeDeepPropertyAtIndex: <T extends object, P extends DeepKeyofAtIndex<T, Depth>, Depth extends 0 | 1 | 8 |
|
|
63
|
+
export declare const changeDeepPropertyAtIndex: <T extends object, P extends DeepKeyofAtIndex<T, Depth>, Depth extends 0 | 1 | 8 | 2 | 4 | 3 | 5 | 6 | 7 | 9 = 4>({ index, obj, propertyPath, value, }: {
|
|
64
64
|
index: number;
|
|
65
65
|
obj: T;
|
|
66
66
|
propertyPath: P;
|