@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.
@@ -5,4 +5,4 @@ CLI tsup v6.5.0
5
5
  CLI Target: es6
6
6
  CJS Build start
7
7
  CJS dist/index.js 32.23 KB
8
- CJS ⚡️ Build success in 15ms
8
+ CJS ⚡️ Build success in 18ms
@@ -1,13 +1,13 @@
1
1
  $ TIMING=1 eslint "**/*.js"
2
2
  Rule | Time (ms) | Relative
3
3
  :------------------------------|----------:|--------:
4
- react/display-name | 5.182 | 30.9%
5
- react/no-direct-mutation-state | 3.672 | 21.9%
6
- react/require-render-return | 2.424 | 14.5%
7
- react-hooks/exhaustive-deps | 0.852 | 5.1%
8
- react/no-deprecated | 0.828 | 4.9%
9
- react-hooks/rules-of-hooks | 0.740 | 4.4%
10
- react/no-string-refs | 0.565 | 3.4%
11
- react/no-unescaped-entities | 0.258 | 1.5%
12
- react/jsx-no-comment-textnodes | 0.222 | 1.3%
13
- react/no-danger-with-children | 0.211 | 1.3%
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
@@ -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