@blerp/design 1.4.6 → 1.4.7

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.
Files changed (39) hide show
  1. package/dist/cjs/Blerp/BlerpImageRow.js +2 -2
  2. package/dist/cjs/Blerp/BlerpTitleRow.js +3 -3
  3. package/dist/cjs/Blerp/BlerpTopRow.js +16 -5
  4. package/dist/cjs/Blerp.js +0 -13
  5. package/dist/cjs/BlerpListViewPremium.js +5 -5
  6. package/dist/cjs/CollectionCard.js +4 -17
  7. package/dist/cjs/CollectionListViewPremium.js +4 -4
  8. package/dist/cjs/Dropdown.js +6 -6
  9. package/dist/cjs/GroupCard.js +2 -2
  10. package/dist/cjs/ImageUpload.js +4 -4
  11. package/dist/cjs/NewBlerp.js +9 -9
  12. package/dist/cjs/NewCollectionModal.js +10 -10
  13. package/dist/cjs/Theme.js +4 -201
  14. package/dist/cjs/Toggle.js +1 -0
  15. package/dist/cjs/UserCard.js +5 -5
  16. package/dist/cjs/UserPage/UserLibraryHeader.js +5 -100
  17. package/dist/cjs/UserPage/UserProfileHeader.js +3 -297
  18. package/dist/cjs/UsernameWithPopout.js +1 -1
  19. package/dist/cjs/colors.js +1 -2
  20. package/dist/esm/Blerp/BlerpImageRow.js +3 -3
  21. package/dist/esm/Blerp/BlerpTitleRow.js +4 -4
  22. package/dist/esm/Blerp/BlerpTopRow.js +16 -5
  23. package/dist/esm/Blerp.js +1 -13
  24. package/dist/esm/BlerpListViewPremium.js +6 -6
  25. package/dist/esm/CollectionCard.js +5 -18
  26. package/dist/esm/CollectionListViewPremium.js +5 -5
  27. package/dist/esm/Dropdown.js +7 -7
  28. package/dist/esm/GroupCard.js +3 -3
  29. package/dist/esm/ImageUpload.js +5 -5
  30. package/dist/esm/NewBlerp.js +10 -10
  31. package/dist/esm/NewCollectionModal.js +12 -12
  32. package/dist/esm/Theme.js +6 -202
  33. package/dist/esm/Toggle.js +1 -1
  34. package/dist/esm/UserCard.js +6 -6
  35. package/dist/esm/UserPage/UserLibraryHeader.js +5 -95
  36. package/dist/esm/UserPage/UserProfileHeader.js +3 -290
  37. package/dist/esm/UsernameWithPopout.js +2 -2
  38. package/dist/esm/colors.js +1 -2
  39. package/package.json +1 -4
@@ -1,99 +1,9 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import React from 'react';
3
- import { useWindowSize } from '../ScreenSizeHook.js';
4
- import LibraryControls from './LibraryControls.js';
5
- import { Box } from '../neo-components/Box.js';
6
- import { Stack } from '../neo-components/Stack.js';
7
- import { Button } from '../neo-components/Button.js';
1
+ // TODO: If this component is needed, import dependencies directly (not from ../index)
8
2
 
9
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
10
-
11
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12
-
13
- const UserLibraryHeader = _ref => {
14
- let {
15
- sx,
16
- tabs,
17
- tabSelection,
18
- setTabSelection,
19
- setShowSearch,
20
- setSearchTerm,
21
- searchTerm,
22
- setActiveBoard,
23
- hideSearch,
24
- setSort,
25
- sort,
26
- hideLayoutButtons
27
- } = _ref;
28
- const size = useWindowSize();
29
- return /*#__PURE__*/React.createElement(Box, {
30
- sx: _objectSpread({
31
- backgroundColor: "grey2.main",
32
- position: "sticky",
33
- top: size.width >= 1000 ? "80px" : "110px",
34
- zIndex: "5"
35
- }, sx)
36
- }, /*#__PURE__*/React.createElement(Stack, {
37
- direction: "row",
38
- style: {
39
- padding: "20px 10px",
40
- maxWidth: "1300px",
41
- margin: "0 auto",
42
- width: "95%"
43
- }
44
- }, /*#__PURE__*/React.createElement(Stack, {
45
- direction: "row",
46
- width: "100%",
47
- justifyContent: size.width <= 675 ? "center" : "space-between",
48
- alignItems: "center",
49
- flexWrap: "wrap"
50
- }, /*#__PURE__*/React.createElement(Stack, {
51
- direction: "row",
52
- flexWrap: "inherit"
53
- }, tabs === null || tabs === void 0 ? void 0 : tabs.map(tab => /*#__PURE__*/React.createElement(Button, {
54
- key: "tab-".concat(tab),
55
- onClick: () => {
56
- setActiveBoard(null);
57
-
58
- if (tabSelection.includes(tab)) {
59
- let newTabs = tabSelection.filter(item => item !== tab);
60
- setTabSelection(newTabs);
61
- } else {
62
- setTabSelection([...tabSelection, tab]);
63
- }
64
- },
65
- variant: tabSelection.includes(tab) ? "contained" : "outlined",
66
- size: "small",
67
- endIcon: tabSelection.includes(tab) && /*#__PURE__*/React.createElement("svg", {
68
- width: "18",
69
- height: "18",
70
- viewBox: "0 0 24 24",
71
- fill: "currentColor"
72
- }, /*#__PURE__*/React.createElement("path", {
73
- d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
74
- })),
75
- sx: {
76
- fontWeight: "normal",
77
- marginRight: "10px",
78
- marginBottom: "10px",
79
- backgroundColor: tabSelection.includes(tab) && "grey4.main"
80
- },
81
- color: tabSelection.includes(tab) ? "grey3" : "notBlack",
82
- disableElevation: true
83
- }, tab))), /*#__PURE__*/React.createElement(LibraryControls, {
84
- currentSort: sort,
85
- setActiveBoard: setActiveBoard,
86
- setSort: value => {
87
- setSort(value); // refetch({ variables: options });
88
- },
89
- searchTerm: searchTerm,
90
- hideSearch: hideSearch,
91
- setSearchTerm: setSearchTerm,
92
- setShowSearch: setShowSearch,
93
- hideLayoutButtons: hideLayoutButtons
94
- }))));
3
+ const UserProfileHeader = () => {
4
+ return null;
95
5
  };
96
6
 
97
- var UserLibraryHeader$1 = UserLibraryHeader;
7
+ var UserProfileHeader$1 = UserProfileHeader;
98
8
 
99
- export { UserLibraryHeader$1 as default };
9
+ export { UserProfileHeader$1 as default };
@@ -1,294 +1,7 @@
1
- import _extends from '@babel/runtime/helpers/extends';
2
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
- import React, { useState, useEffect } from 'react';
5
- import { useWindowSize } from '../ScreenSizeHook.js';
6
- import { extractDominantColor } from '../helpers.js';
7
- import { useBlerpTheme } from '../Theme.js';
8
- import { Stack } from '../neo-components/Stack.js';
9
- import { IconButton } from '../neo-components/IconButton.js';
10
- import { Box } from '../neo-components/Box.js';
11
- import { Typography } from '../neo-components/Text.js';
12
- import { Divider } from '../neo-components/Misc.js';
13
- import { Button } from '../neo-components/Button.js';
14
- import { TwitchIcon } from '../Icons/Icons.js';
1
+ // TODO: If this component is needed, import dependencies directly (not from ../index)
15
2
 
16
- const _excluded = ["path", "sx", "size"];
17
-
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
19
-
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
21
-
22
- const Icon = _ref => {
23
- let {
24
- path,
25
- sx,
26
- size = "24px"
27
- } = _ref,
28
- props = _objectWithoutProperties(_ref, _excluded);
29
-
30
- return /*#__PURE__*/React.createElement(Box, _extends({
31
- component: "svg",
32
- viewBox: "0 0 24 24",
33
- width: size,
34
- height: size,
35
- fill: "currentColor",
36
- sx: _objectSpread({
37
- display: 'inline-block',
38
- flexShrink: 0
39
- }, sx)
40
- }, props), /*#__PURE__*/React.createElement("path", {
41
- d: path
42
- }));
43
- };
44
-
45
- const paths = {
46
- add: "M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z",
47
- edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",
48
- personAdd: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",
49
- personRemove: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",
50
- // Simplified
51
- facebook: "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z",
52
- twitter: "M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.48.75 2.78 1.89 3.54-.7 0-1.35-.2-1.92-.53v.05c0 2.03 1.44 3.73 3.35 4.12-.35.1-.73.15-1.12.15-.27 0-.54-.03-.8-.08.54 1.66 2.08 2.87 3.91 2.91-1.42 1.12-3.23 1.78-5.2 1.78-.34 0-.67-.02-1-.06C3.04 20.1 5.31 20.8 7.72 20.8c9.27 0 14.34-7.68 14.34-14.34 0-.22 0-.44-.01-.66.98-.7 1.84-1.59 2.51-2.6z",
53
- instagram: "M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",
54
- youtube: "M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z",
55
- pinterest: "M12.2 2C7.12 2 3 6.12 3 11.2c0 3.9 2.42 7.23 5.87 8.58-.08-.72-.15-1.83.03-2.62.16-.71 1.05-4.44 1.05-4.44s-.27-.54-.27-1.33c0-1.25.72-2.18 1.63-2.18.77 0 1.14.58 1.14 1.27 0 .77-.49 1.93-.74 3-.21.87.44 1.58 1.29 1.58 1.55 0 2.74-1.64 2.74-4 0-2.09-1.5-3.55-3.64-3.55-2.48 0-3.93 1.86-3.93 3.77 0 .75.29 1.55.65 1.99.07.09.08.17.06.25-.07.28-.22.88-.25.99-.04.16-.14.2-.32.11-1.19-.55-1.93-2.3-1.93-3.7 0-3.02 2.2-5.78 6.32-5.78 3.32 0 5.89 2.36 5.89 5.52 0 3.3-2.08 5.96-4.97 5.96-.97 0-1.88-.5-2.2-.1l-.59 2.27c-.22.82-.8 1.85-1.19 2.48 1.1.34 2.26.52 3.47.52 5.08 0 9.2-4.12 9.2-9.2C21.4 6.12 17.28 2 12.2 2z"
56
- };
57
-
58
- const UserProfileHeader = _ref2 => {
59
- var _userData$profileImag3, _userData$profileImag4, _userData$headerImage, _userData$headerImage2, _userData$headerImage3, _userData$headerImage4, _userData$profileImag5, _userData$profileImag6, _userData$socialLinks2;
60
-
61
- let {
62
- followUser,
63
- isOwner,
64
- userData,
65
- openEdit
66
- } = _ref2;
67
- const theme = useBlerpTheme();
68
- const [profileColors, setProfileColors] = useState(null);
69
- const size = useWindowSize();
70
- useEffect(() => {
71
- var _userData$profileImag, _userData$profileImag2;
72
-
73
- if (userData !== null && userData !== void 0 && (_userData$profileImag = userData.profileImage) !== null && _userData$profileImag !== void 0 && (_userData$profileImag2 = _userData$profileImag.original) !== null && _userData$profileImag2 !== void 0 && _userData$profileImag2.url) {
74
- extractDominantColor(userData.profileImage.original.url, setProfileColors);
75
- }
76
- }, [userData === null || userData === void 0 ? void 0 : (_userData$profileImag3 = userData.profileImage) === null || _userData$profileImag3 === void 0 ? void 0 : (_userData$profileImag4 = _userData$profileImag3.original) === null || _userData$profileImag4 === void 0 ? void 0 : _userData$profileImag4.url]);
77
-
78
- const renderSocialLinks = () => {
79
- var _userData$socialLinks;
80
-
81
- return userData === null || userData === void 0 ? void 0 : (_userData$socialLinks = userData.socialLinks) === null || _userData$socialLinks === void 0 ? void 0 : _userData$socialLinks.map((socialItem, index) => {
82
- let icon;
83
- const commonSx = {
84
- color: "notBlack.main",
85
- cursor: "pointer",
86
- ":hover": {
87
- color: "starling.main"
88
- }
89
- };
90
-
91
- switch (socialItem.name) {
92
- case "twitch":
93
- icon = /*#__PURE__*/React.createElement(TwitchIcon, {
94
- sx: commonSx
95
- });
96
- break;
97
-
98
- case "twitter":
99
- icon = /*#__PURE__*/React.createElement(Icon, {
100
- path: paths.twitter,
101
- sx: commonSx
102
- });
103
- break;
104
-
105
- case "youtube":
106
- icon = /*#__PURE__*/React.createElement(Icon, {
107
- path: paths.youtube,
108
- sx: commonSx
109
- });
110
- break;
111
-
112
- case "instagram":
113
- icon = /*#__PURE__*/React.createElement(Icon, {
114
- path: paths.instagram,
115
- sx: commonSx
116
- });
117
- break;
118
-
119
- case "pinterest":
120
- icon = /*#__PURE__*/React.createElement(Icon, {
121
- path: paths.pinterest,
122
- sx: commonSx
123
- });
124
- break;
125
-
126
- case "facebook":
127
- icon = /*#__PURE__*/React.createElement(Icon, {
128
- path: paths.facebook,
129
- sx: commonSx
130
- });
131
- break;
132
- }
133
-
134
- return /*#__PURE__*/React.createElement("a", {
135
- key: socialItem.name + index,
136
- target: "_blank",
137
- href: socialItem.link,
138
- style: {
139
- margin: "5px",
140
- height: "65%"
141
- },
142
- rel: "nofollow noreferrer"
143
- }, icon);
144
- });
145
- };
146
-
147
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
148
- width: "100%",
149
- sx: {
150
- height: "250px",
151
- justifyContent: size.width <= 600 ? "space-around" : "center",
152
- alignItems: "center",
153
- background: userData !== null && userData !== void 0 && (_userData$headerImage = userData.headerImage) !== null && _userData$headerImage !== void 0 && (_userData$headerImage2 = _userData$headerImage.original) !== null && _userData$headerImage2 !== void 0 && _userData$headerImage2.url ? "linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), url(".concat(userData === null || userData === void 0 ? void 0 : (_userData$headerImage3 = userData.headerImage) === null || _userData$headerImage3 === void 0 ? void 0 : (_userData$headerImage4 = _userData$headerImage3.original) === null || _userData$headerImage4 === void 0 ? void 0 : _userData$headerImage4.url, ")") : "linear-gradient(135deg, ".concat(profileColors ? profileColors[0] : theme.colors.ibisRed, ", ").concat(profileColors ? profileColors[1] : theme.colors.starling, ")"),
154
- backgroundRepeat: "no-repeat",
155
- backgroundSize: "cover",
156
- backgroundPosition: "center",
157
- position: "relative",
158
- overflow: "hidden"
159
- }
160
- }, isOwner && /*#__PURE__*/React.createElement(IconButton, {
161
- sx: {
162
- position: "absolute",
163
- top: "10px",
164
- right: "10px",
165
- cursor: "pointer",
166
- color: "white.main",
167
- ":hover": {
168
- color: "notBlack.main",
169
- backgroundColor: "white.main"
170
- }
171
- },
172
- onClick: () => openEdit()
173
- }, /*#__PURE__*/React.createElement(Icon, {
174
- path: paths.edit,
175
- size: "16px"
176
- })), /*#__PURE__*/React.createElement(Stack, {
177
- direction: "row",
178
- width: "80%",
179
- maxWidth: "1300px",
180
- flexWrap: "wrap",
181
- margin: "0 auto",
182
- justifyContent: "space-between",
183
- alignItems: "flex-end",
184
- height: "50%"
185
- }, /*#__PURE__*/React.createElement(Box, {
186
- sx: {
187
- background: "linear-gradient(135deg, ".concat(profileColors ? profileColors[0] : theme.colors.ibisRed, ", ").concat(profileColors ? profileColors[1] : theme.colors.starling, ")"),
188
- boxShadow: "5px 5px 15px #0000009c"
189
- },
190
- borderRadius: "8px",
191
- width: "400px",
192
- height: "100%"
193
- }, /*#__PURE__*/React.createElement(Stack, {
194
- direction: "row",
195
- height: "100%",
196
- alignItems: "center",
197
- position: "relative"
198
- }, /*#__PURE__*/React.createElement(IconButton, {
199
- sx: {
200
- position: "absolute",
201
- padding: "5px",
202
- top: "5px",
203
- right: "5px",
204
- cursor: "pointer",
205
- color: "white.override",
206
- fontSize: "12px",
207
- ":hover": {
208
- color: "notBlack.main",
209
- backgroundColor: "white.main"
210
- }
211
- },
212
- onClick: () => {
213
- isOwner ? openEdit() : followUser({
214
- variables: {
215
- record: {
216
- userIdToFollow: userData._id
217
- }
218
- }
219
- });
220
- }
221
- }, isOwner ? /*#__PURE__*/React.createElement(Icon, {
222
- path: paths.edit,
223
- size: "20px"
224
- }) : userData !== null && userData !== void 0 && userData.loggedInIsFollower ? /*#__PURE__*/React.createElement(Icon, {
225
- path: paths.personRemove,
226
- size: "20px"
227
- }) : /*#__PURE__*/React.createElement(Icon, {
228
- path: paths.personAdd,
229
- size: "20px"
230
- })), /*#__PURE__*/React.createElement("img", {
231
- style: {
232
- borderRadius: "50%",
233
- objectFit: "cover",
234
- width: "90px",
235
- height: "90px",
236
- margin: "0 20px"
237
- },
238
- alt: "profile img",
239
- src: userData === null || userData === void 0 ? void 0 : (_userData$profileImag5 = userData.profileImage) === null || _userData$profileImag5 === void 0 ? void 0 : (_userData$profileImag6 = _userData$profileImag5.original) === null || _userData$profileImag6 === void 0 ? void 0 : _userData$profileImag6.url
240
- }), /*#__PURE__*/React.createElement(Stack, {
241
- marginLeft: "20px"
242
- }, /*#__PURE__*/React.createElement(Stack, {
243
- direction: "row"
244
- }, /*#__PURE__*/React.createElement(Typography, {
245
- noWrap: true,
246
- maxWidth: "200px",
247
- color: "white.override",
248
- lineHeight: "51px",
249
- fontSize: size.width <= 600 ? "30px" : "47px"
250
- }, userData === null || userData === void 0 ? void 0 : userData.username)), /*#__PURE__*/React.createElement(Stack, {
251
- direction: "row",
252
- divider: /*#__PURE__*/React.createElement(Divider, {
253
- orientation: "vertical",
254
- flexItem: true,
255
- sx: {
256
- borderColor: "white.override",
257
- margin: "5px"
258
- }
259
- })
260
- }, /*#__PURE__*/React.createElement(Typography, {
261
- color: "white.override",
262
- fontSize: "16px"
263
- }, userData === null || userData === void 0 ? void 0 : userData.followerCount, " Followers"), /*#__PURE__*/React.createElement(Typography, {
264
- color: "white.override",
265
- fontSize: "16px"
266
- }, userData === null || userData === void 0 ? void 0 : userData.followingCount, " Following"))))), /*#__PURE__*/React.createElement(Stack, {
267
- direction: "row",
268
- backgroundColor: "grey2.main",
269
- borderRadius: "8px",
270
- height: "30%",
271
- alignItems: "center",
272
- marginTop: "20px",
273
- justifyContent: "space-around"
274
- }, isOwner ? (userData === null || userData === void 0 ? void 0 : (_userData$socialLinks2 = userData.socialLinks) === null || _userData$socialLinks2 === void 0 ? void 0 : _userData$socialLinks2.length) === 0 ? /*#__PURE__*/React.createElement(Button, {
275
- variant: "text",
276
- onClick: () => openEdit()
277
- }, "+ New Social") : /*#__PURE__*/React.createElement(IconButton, {
278
- sx: {
279
- cursor: "pointer",
280
- color: "notBlack.main",
281
- padding: "5px",
282
- backgroundColor: "grey2.main",
283
- ":hover": {
284
- backgroundColor: "white.main"
285
- }
286
- },
287
- onClick: () => openEdit()
288
- }, /*#__PURE__*/React.createElement(Icon, {
289
- path: paths.add,
290
- size: "16px"
291
- })) : /*#__PURE__*/React.createElement(React.Fragment, null), renderSocialLinks()))));
3
+ const UserProfileHeader = () => {
4
+ return null;
292
5
  };
293
6
 
294
7
  var UserProfileHeader$1 = UserProfileHeader;
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
3
3
  import { UserCard } from './UserCard.js';
4
4
  import { Stack } from './neo-components/Stack.js';
5
5
  import { Popover } from './neo-components/Navigation.js';
6
- import { Typography } from './neo-components/Text.js';
6
+ import { Text } from './neo-components/Text.js';
7
7
 
8
8
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
9
 
@@ -69,7 +69,7 @@ const UsernameWithPopout = _ref => {
69
69
  onCreatedClick: onCreatedClick,
70
70
  collapsed: collapsed,
71
71
  user: user
72
- })), /*#__PURE__*/React.createElement(Typography, {
72
+ })), /*#__PURE__*/React.createElement(Text, {
73
73
  sx: _objectSpread({
74
74
  fontWeight: "300",
75
75
  fontSize: "12px",
@@ -358,6 +358,5 @@ const darkPalette = {
358
358
  main: colors.popnYellow
359
359
  }
360
360
  };
361
- var colors$1 = colors;
362
361
 
363
- export { darkColors, darkPalette, colors$1 as default, lightColors, lightPalette, overrideColors };
362
+ export { darkColors, darkPalette, colors as default, lightColors, lightPalette, overrideColors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -28,7 +28,6 @@
28
28
  "watch": "rollup -c -w"
29
29
  },
30
30
  "peerDependencies": {
31
- "@mui/material": "5.10.16",
32
31
  "react": "18.2.0",
33
32
  "react-dom": "18.2.0",
34
33
  "styled-components": "^5.0.0 || ^6.0.0"
@@ -52,8 +51,6 @@
52
51
  "@babel/plugin-transform-runtime": "^7.23.9",
53
52
  "@babel/preset-env": "^7.12.11",
54
53
  "@babel/preset-react": "^7.12.10",
55
- "@mui/styled-engine": "npm:@mui/styled-engine-sc@latest",
56
- "@mui/styled-engine-sc": "5.10.16",
57
54
  "@rollup/plugin-babel": "^5.2.2",
58
55
  "@rollup/plugin-json": "^4.1.0",
59
56
  "@rollup/plugin-node-resolve": "^16.0.3",