@raketa-builder/ui 0.1.2 → 0.1.3
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +10 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/DefaultAvatar.jsx +1 -1
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
$ TIMING=1 eslint "**/*.js"
|
|
2
2
|
Rule | Time (ms) | Relative
|
|
3
3
|
:------------------------------|----------:|--------:
|
|
4
|
-
react/display-name | 5.
|
|
5
|
-
react/no-direct-mutation-state | 3.
|
|
6
|
-
react/require-render-return | 2.
|
|
7
|
-
react-hooks/exhaustive-deps | 0.
|
|
8
|
-
react/no-deprecated | 0.
|
|
9
|
-
react-hooks/rules-of-hooks | 0.
|
|
10
|
-
react/no-string-refs | 0.
|
|
11
|
-
react/no-unescaped-entities | 0.
|
|
12
|
-
react/jsx-no-comment-textnodes | 0.
|
|
13
|
-
react/no-danger-with-children | 0.
|
|
4
|
+
react/display-name | 5.504 | 31.9%
|
|
5
|
+
react/no-direct-mutation-state | 3.788 | 21.9%
|
|
6
|
+
react/require-render-return | 2.444 | 14.1%
|
|
7
|
+
react-hooks/exhaustive-deps | 0.876 | 5.1%
|
|
8
|
+
react/no-deprecated | 0.860 | 5.0%
|
|
9
|
+
react-hooks/rules-of-hooks | 0.758 | 4.4%
|
|
10
|
+
react/no-string-refs | 0.562 | 3.3%
|
|
11
|
+
react/no-unescaped-entities | 0.247 | 1.4%
|
|
12
|
+
react/jsx-no-comment-textnodes | 0.239 | 1.4%
|
|
13
|
+
react/no-danger-with-children | 0.194 | 1.1%
|
package/dist/index.js
CHANGED
|
@@ -1076,7 +1076,6 @@ var DefaultAvatarStyles = import_styled_components26.default.div`
|
|
|
1076
1076
|
align-items: center;
|
|
1077
1077
|
width: ${(props) => props.size};
|
|
1078
1078
|
height: ${(props) => props.size};
|
|
1079
|
-
padding: 0.5rem;
|
|
1080
1079
|
border-radius: 50%;
|
|
1081
1080
|
background-color: ${(props) => initialsToColor(props.initials, AVATAR_COLORS)};
|
|
1082
1081
|
color: #fff;
|
|
@@ -1088,6 +1087,7 @@ var DefaultAvatar = (_a) => {
|
|
|
1088
1087
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DefaultAvatarStyles, __spreadProps(__spreadValues({ initials }, props), { children: initials }));
|
|
1089
1088
|
};
|
|
1090
1089
|
DefaultAvatar.defaultProps = {
|
|
1090
|
+
size: "24px",
|
|
1091
1091
|
initials: "AA"
|
|
1092
1092
|
};
|
|
1093
1093
|
var DefaultAvatar_default = DefaultAvatar;
|
package/package.json
CHANGED
package/src/DefaultAvatar.jsx
CHANGED
|
@@ -33,7 +33,6 @@ const DefaultAvatarStyles = styled.div`
|
|
|
33
33
|
align-items: center;
|
|
34
34
|
width: ${props => props.size};
|
|
35
35
|
height: ${props => props.size};
|
|
36
|
-
padding: 0.5rem;
|
|
37
36
|
border-radius: 50%;
|
|
38
37
|
background-color: ${props => initialsToColor(props.initials, AVATAR_COLORS)};
|
|
39
38
|
color: #fff;
|
|
@@ -48,6 +47,7 @@ const DefaultAvatar = ({ initials, ...props }) => (
|
|
|
48
47
|
);
|
|
49
48
|
|
|
50
49
|
DefaultAvatar.defaultProps = {
|
|
50
|
+
size: '24px',
|
|
51
51
|
initials: 'AA',
|
|
52
52
|
}
|
|
53
53
|
|