@blerp/design 1.3.16 → 1.4.1
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/cjs/Blerp/BlerpImageRow.js +176 -57
- package/dist/cjs/Blerp/BlerpSavePopup.js +44 -40
- package/dist/cjs/Blerp/BlerpTitleRow.js +36 -19
- package/dist/cjs/Blerp/BlerpTopRow.js +110 -44
- package/dist/cjs/Blerp.js +9 -16
- package/dist/cjs/BlerpAudioContextProvider.js +2 -2
- package/dist/cjs/BlerpListView.js +318 -168
- package/dist/cjs/BlerpListViewPremium.js +155 -130
- package/dist/cjs/BlerpListViewSkeleton.js +60 -13
- package/dist/cjs/BlerpSkeleton.js +32 -9
- package/dist/cjs/CollectionCard.js +139 -60
- package/dist/cjs/CollectionListViewPremium.js +368 -297
- package/dist/cjs/CollectionSkeleton.js +74 -13
- package/dist/cjs/Dropdown.js +272 -172
- package/dist/cjs/EllipsisLoader.js +66 -21
- package/dist/cjs/GroupCard.js +64 -57
- package/dist/cjs/Icons/Icons.js +288 -426
- package/dist/cjs/ImageEditor.js +247 -0
- package/dist/cjs/ImageUpload.js +226 -0
- package/dist/cjs/NewBlerp.js +354 -160
- package/dist/cjs/NewBlerpTest.js +10 -792
- package/dist/cjs/NewCollectionModal.js +294 -310
- package/dist/cjs/PremiumCollectionCard.js +191 -454
- package/dist/cjs/PurchaseModals/CheckoutModal.js +1 -1
- package/dist/cjs/PurchaseModals/PremiumBlerpCheckoutModal.js +1 -1
- package/dist/cjs/PurchaseModals/PremiumCollectionCheckoutModal.js +1 -1
- package/dist/cjs/PurchaseModals/PremiumSubscriptionCheckoutModal.js +1 -1
- package/dist/cjs/ReactionButtons.js +26 -13
- package/dist/cjs/SnackbarContextProvider.js +200 -116
- package/dist/cjs/Theme.js +217 -90
- package/dist/cjs/Toggle.js +86 -32
- package/dist/cjs/UserCard.js +13 -32
- package/dist/cjs/UserPage/LibraryControls.js +180 -93
- package/dist/cjs/UserPage/UserLibraryHeader.js +23 -14
- package/dist/cjs/UserPage/UserProfileHeader.js +120 -105
- package/dist/cjs/UsernameWithPopout.js +12 -8
- package/dist/cjs/colors.js +15 -8
- package/dist/cjs/helpers.js +131 -0
- package/dist/cjs/index.js +98 -52
- package/dist/cjs/neo-components/Autocomplete.js +280 -0
- package/dist/cjs/neo-components/BottomNavigation.js +120 -0
- package/dist/cjs/neo-components/Box.js +48 -0
- package/dist/cjs/neo-components/Button.js +206 -0
- package/dist/cjs/neo-components/CircularProgress.js +92 -0
- package/dist/cjs/neo-components/Container.js +75 -0
- package/dist/cjs/neo-components/Dialog.js +441 -0
- package/dist/cjs/neo-components/Fab.js +237 -0
- package/dist/cjs/neo-components/FormControls.js +1057 -0
- package/dist/cjs/neo-components/Grid.js +256 -0
- package/dist/cjs/neo-components/IconButton.js +111 -0
- package/dist/cjs/neo-components/Input.js +493 -0
- package/dist/cjs/neo-components/Layout.js +1213 -0
- package/dist/cjs/neo-components/Misc.js +858 -0
- package/dist/cjs/neo-components/Navigation.js +1578 -0
- package/dist/cjs/neo-components/Paper.js +256 -0
- package/dist/cjs/neo-components/Stack.js +194 -0
- package/dist/cjs/neo-components/Stepper.js +291 -0
- package/dist/cjs/neo-components/Text.js +290 -0
- package/dist/cjs/neo-components/ThemeProvider.js +731 -0
- package/dist/cjs/neo-components/ToggleButton.js +223 -0
- package/dist/cjs/neo-components/createTheme.js +306 -0
- package/dist/cjs/neo-components/withSx.js +164 -0
- package/dist/cjs/neo-utils/sxToStyle.js +508 -0
- package/dist/esm/Blerp/BlerpImageRow.js +166 -46
- package/dist/esm/Blerp/BlerpSavePopup.js +35 -27
- package/dist/esm/Blerp/BlerpTitleRow.js +32 -13
- package/dist/esm/Blerp/BlerpTopRow.js +85 -16
- package/dist/esm/Blerp.js +4 -12
- package/dist/esm/BlerpAudioContextProvider.js +1 -2
- package/dist/esm/BlerpListView.js +313 -160
- package/dist/esm/BlerpListViewPremium.js +135 -109
- package/dist/esm/BlerpListViewSkeleton.js +60 -11
- package/dist/esm/BlerpSkeleton.js +32 -7
- package/dist/esm/CollectionCard.js +118 -38
- package/dist/esm/CollectionListViewPremium.js +367 -294
- package/dist/esm/CollectionSkeleton.js +73 -11
- package/dist/esm/Dropdown.js +260 -161
- package/dist/esm/EllipsisLoader.js +63 -18
- package/dist/esm/GroupCard.js +54 -46
- package/dist/esm/Icons/Icons.js +226 -367
- package/dist/esm/ImageEditor.js +240 -0
- package/dist/esm/ImageUpload.js +217 -0
- package/dist/esm/NewBlerp.js +282 -79
- package/dist/esm/NewBlerpTest.js +11 -781
- package/dist/esm/NewCollectionModal.js +289 -304
- package/dist/esm/PremiumCollectionCard.js +192 -451
- package/dist/esm/PurchaseModals/CheckoutModal.js +1 -1
- package/dist/esm/PurchaseModals/PremiumBlerpCheckoutModal.js +1 -1
- package/dist/esm/PurchaseModals/PremiumCollectionCheckoutModal.js +1 -1
- package/dist/esm/PurchaseModals/PremiumSubscriptionCheckoutModal.js +1 -1
- package/dist/esm/ReactionButtons.js +23 -8
- package/dist/esm/SnackbarContextProvider.js +196 -110
- package/dist/esm/Theme.js +187 -66
- package/dist/esm/Toggle.js +84 -29
- package/dist/esm/UserCard.js +1 -20
- package/dist/esm/UserPage/LibraryControls.js +159 -65
- package/dist/esm/UserPage/UserLibraryHeader.js +18 -10
- package/dist/esm/UserPage/UserProfileHeader.js +100 -79
- package/dist/esm/UsernameWithPopout.js +7 -4
- package/dist/esm/colors.js +11 -9
- package/dist/esm/helpers.js +122 -0
- package/dist/esm/icons.js +1 -1
- package/dist/esm/index.js +39 -3
- package/dist/esm/neo-components/Autocomplete.js +269 -0
- package/dist/esm/neo-components/BottomNavigation.js +109 -0
- package/dist/esm/neo-components/Box.js +36 -0
- package/dist/esm/neo-components/Button.js +194 -0
- package/dist/esm/neo-components/CircularProgress.js +81 -0
- package/dist/esm/neo-components/Container.js +63 -0
- package/dist/esm/neo-components/Dialog.js +423 -0
- package/dist/esm/neo-components/Fab.js +225 -0
- package/dist/esm/neo-components/FormControls.js +1041 -0
- package/dist/esm/neo-components/Grid.js +244 -0
- package/dist/esm/neo-components/IconButton.js +99 -0
- package/dist/esm/neo-components/Input.js +478 -0
- package/dist/esm/neo-components/Layout.js +1179 -0
- package/dist/esm/neo-components/Misc.js +840 -0
- package/dist/esm/neo-components/Navigation.js +1556 -0
- package/dist/esm/neo-components/Paper.js +243 -0
- package/dist/esm/neo-components/Stack.js +182 -0
- package/dist/esm/neo-components/Stepper.js +278 -0
- package/dist/esm/neo-components/Text.js +277 -0
- package/dist/esm/neo-components/ThemeProvider.js +718 -0
- package/dist/esm/neo-components/ToggleButton.js +214 -0
- package/dist/esm/neo-components/createTheme.js +297 -0
- package/dist/esm/neo-components/withSx.js +153 -0
- package/dist/esm/neo-utils/sxToStyle.js +502 -0
- package/package.json +19 -15
package/dist/cjs/UserCard.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var iconsMaterial = require('@mui/icons-material');
|
|
6
5
|
var React = require('react');
|
|
7
6
|
var index = require('./index.js');
|
|
8
7
|
|
|
@@ -11,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
11
|
|
|
13
12
|
const UserCard = _ref => {
|
|
14
|
-
var _user$twitchChannelIn, _user$profileImage, _user$profileImage$or
|
|
13
|
+
var _user$twitchChannelIn, _user$profileImage, _user$profileImage$or;
|
|
15
14
|
|
|
16
15
|
let {
|
|
17
16
|
user,
|
|
@@ -25,7 +24,7 @@ const UserCard = _ref => {
|
|
|
25
24
|
});
|
|
26
25
|
let followerCount = formatter.format((user === null || user === void 0 ? void 0 : (_user$twitchChannelIn = user.twitchChannelInfo) === null || _user$twitchChannelIn === void 0 ? void 0 : _user$twitchChannelIn.followerCount) || 0);
|
|
27
26
|
let createdCount = formatter.format((user === null || user === void 0 ? void 0 : user.totalCreationCount) || 0);
|
|
28
|
-
return /*#__PURE__*/React__default[
|
|
27
|
+
return /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
29
28
|
direction: "row",
|
|
30
29
|
sx: {
|
|
31
30
|
backgroundColor: "grey4.main",
|
|
@@ -40,11 +39,11 @@ const UserCard = _ref => {
|
|
|
40
39
|
border: "1px solid transparent",
|
|
41
40
|
borderColor: collapsed ? (user === null || user === void 0 ? void 0 : user.affiliateJourneyStatuss) === "CHAMPION" ? "#FFFFFF" : (user === null || user === void 0 ? void 0 : user.affiliateJourneyStatuss) === "AFFILIATE" ? "#27AAFF" : "transparent" : "transparent"
|
|
42
41
|
}
|
|
43
|
-
}, /*#__PURE__*/React__default[
|
|
42
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
44
43
|
sx: {
|
|
45
44
|
position: "relative"
|
|
46
45
|
}
|
|
47
|
-
}, /*#__PURE__*/React__default[
|
|
46
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
48
47
|
style: {
|
|
49
48
|
width: collapsed ? "49px" : "89px",
|
|
50
49
|
height: collapsed ? "49px" : "89px",
|
|
@@ -61,30 +60,12 @@ const UserCard = _ref => {
|
|
|
61
60
|
|
|
62
61
|
e.target.src = "https://cdn.blerp.com/design/web/gamerblerpylarge.png";
|
|
63
62
|
}
|
|
64
|
-
}),
|
|
65
|
-
sx: {
|
|
66
|
-
position: "absolute",
|
|
67
|
-
bottom: collapsed ? "0" : "5px",
|
|
68
|
-
right: collapsed ? "0" : "5px",
|
|
69
|
-
fontSize: "17px",
|
|
70
|
-
backgroundColor: "grey4.main",
|
|
71
|
-
borderRadius: "50%"
|
|
72
|
-
}
|
|
73
|
-
}), (user === null || user === void 0 ? void 0 : user.premiumBlerpUserStatus) === "ACTIVE" && /*#__PURE__*/React__default['default'].createElement(iconsMaterial.DiamondRounded, {
|
|
74
|
-
sx: {
|
|
75
|
-
position: "absolute",
|
|
76
|
-
bottom: collapsed ? "0" : "5px",
|
|
77
|
-
right: collapsed ? "0" : "5px",
|
|
78
|
-
fontSize: "17px",
|
|
79
|
-
backgroundColor: "grey4.main",
|
|
80
|
-
borderRadius: "50%"
|
|
81
|
-
}
|
|
82
|
-
})), /*#__PURE__*/React__default['default'].createElement(index.Stack, {
|
|
63
|
+
})), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
83
64
|
sx: {
|
|
84
65
|
flex: 1,
|
|
85
66
|
marginLeft: "20px"
|
|
86
67
|
}
|
|
87
|
-
}, /*#__PURE__*/React__default[
|
|
68
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
88
69
|
sx: {
|
|
89
70
|
fontSize: "18px",
|
|
90
71
|
fontWeight: "300",
|
|
@@ -100,41 +81,41 @@ const UserCard = _ref => {
|
|
|
100
81
|
}
|
|
101
82
|
},
|
|
102
83
|
onClick: onUsernameClick
|
|
103
|
-
}, user === null || user === void 0 ? void 0 : user.username), !collapsed && /*#__PURE__*/React__default[
|
|
84
|
+
}, user === null || user === void 0 ? void 0 : user.username), !collapsed && /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
104
85
|
direction: "row",
|
|
105
86
|
sx: {
|
|
106
87
|
alignItems: "center",
|
|
107
88
|
justifyContent: "space-around"
|
|
108
89
|
}
|
|
109
|
-
}, /*#__PURE__*/React__default[
|
|
90
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
110
91
|
alignItems: "center",
|
|
111
92
|
sx: {
|
|
112
93
|
cursor: "pointer"
|
|
113
94
|
},
|
|
114
95
|
onClick: onFollowerClick
|
|
115
|
-
}, /*#__PURE__*/React__default[
|
|
96
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
116
97
|
sx: {
|
|
117
98
|
fontSize: "14px",
|
|
118
99
|
fontWeight: "400"
|
|
119
100
|
}
|
|
120
|
-
}, followerCount), /*#__PURE__*/React__default[
|
|
101
|
+
}, followerCount), /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
121
102
|
sx: {
|
|
122
103
|
fontSize: "12px",
|
|
123
104
|
fontWeight: "300",
|
|
124
105
|
color: "grey7.main"
|
|
125
106
|
}
|
|
126
|
-
}, "followers")), /*#__PURE__*/React__default[
|
|
107
|
+
}, "followers")), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
127
108
|
alignItems: "center",
|
|
128
109
|
sx: {
|
|
129
110
|
cursor: "pointer"
|
|
130
111
|
},
|
|
131
112
|
onClick: onCreatedClick
|
|
132
|
-
}, /*#__PURE__*/React__default[
|
|
113
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
133
114
|
sx: {
|
|
134
115
|
fontSize: "14px",
|
|
135
116
|
fontWeight: "400"
|
|
136
117
|
}
|
|
137
|
-
}, createdCount), /*#__PURE__*/React__default[
|
|
118
|
+
}, createdCount), /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
138
119
|
sx: {
|
|
139
120
|
fontSize: "12px",
|
|
140
121
|
fontWeight: "300",
|
|
@@ -1,34 +1,138 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
3
4
|
var index = require('../index.js');
|
|
4
|
-
var material = require('@mui/material');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
require('@mui/icons-material/FilterAltRounded');
|
|
7
|
-
var MenuRoundedIcon = require('@mui/icons-material/MenuRounded');
|
|
8
|
-
var ViewModuleRoundedIcon = require('@mui/icons-material/ViewModuleRounded');
|
|
9
|
-
require('@mui/icons-material/SettingsRounded');
|
|
10
|
-
var styled = require('styled-components');
|
|
11
|
-
var MoreHorizRoundedIcon = require('@mui/icons-material/MoreHorizRounded');
|
|
12
|
-
var SortRoundedIcon = require('@mui/icons-material/SortRounded');
|
|
13
|
-
var ChevronRightRoundedIcon = require('@mui/icons-material/ChevronRightRounded');
|
|
14
6
|
var ScreenSizeHook = require('../ScreenSizeHook.js');
|
|
15
|
-
var PersonRoundedIcon = require('@mui/icons-material/PersonRounded');
|
|
16
|
-
var SearchRoundedIcon = require('@mui/icons-material/SearchRounded');
|
|
17
|
-
var CloseRoundedIcon = require('@mui/icons-material/CloseRounded');
|
|
18
7
|
|
|
19
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
9
|
|
|
10
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
|
-
var MenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MenuRoundedIcon);
|
|
23
|
-
var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
|
|
24
|
-
var MoreHorizRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MoreHorizRoundedIcon);
|
|
25
|
-
var SortRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortRoundedIcon);
|
|
26
|
-
var ChevronRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightRoundedIcon);
|
|
27
|
-
var PersonRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRoundedIcon);
|
|
28
|
-
var SearchRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchRoundedIcon);
|
|
29
|
-
var CloseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseRoundedIcon);
|
|
30
12
|
|
|
31
|
-
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
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__default["default"](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; }
|
|
16
|
+
|
|
17
|
+
const IconPerson = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
color = "currentColor"
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
22
|
+
width: "24",
|
|
23
|
+
height: "24",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
fill: color
|
|
26
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
27
|
+
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const IconSearch = _ref2 => {
|
|
32
|
+
let {
|
|
33
|
+
color = "currentColor"
|
|
34
|
+
} = _ref2;
|
|
35
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
36
|
+
width: "24",
|
|
37
|
+
height: "24",
|
|
38
|
+
viewBox: "0 0 24 24",
|
|
39
|
+
fill: color
|
|
40
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
41
|
+
d: "M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const IconClose = _ref3 => {
|
|
46
|
+
let {
|
|
47
|
+
color = "currentColor",
|
|
48
|
+
onClick,
|
|
49
|
+
style
|
|
50
|
+
} = _ref3;
|
|
51
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
52
|
+
width: "24",
|
|
53
|
+
height: "24",
|
|
54
|
+
viewBox: "0 0 24 24",
|
|
55
|
+
fill: color,
|
|
56
|
+
onClick: onClick,
|
|
57
|
+
style: _objectSpread({
|
|
58
|
+
cursor: "pointer"
|
|
59
|
+
}, style)
|
|
60
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
61
|
+
d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12 5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const IconMenu = _ref4 => {
|
|
66
|
+
let {
|
|
67
|
+
color = "currentColor"
|
|
68
|
+
} = _ref4;
|
|
69
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
70
|
+
width: "24",
|
|
71
|
+
height: "24",
|
|
72
|
+
viewBox: "0 0 24 24",
|
|
73
|
+
fill: color
|
|
74
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
75
|
+
d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const IconGrid = _ref5 => {
|
|
80
|
+
let {
|
|
81
|
+
color = "currentColor"
|
|
82
|
+
} = _ref5;
|
|
83
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
84
|
+
width: "24",
|
|
85
|
+
height: "24",
|
|
86
|
+
viewBox: "0 0 24 24",
|
|
87
|
+
fill: color
|
|
88
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
89
|
+
d: "M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"
|
|
90
|
+
}));
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const IconMoreHoriz = _ref6 => {
|
|
94
|
+
let {
|
|
95
|
+
color = "currentColor"
|
|
96
|
+
} = _ref6;
|
|
97
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
98
|
+
width: "24",
|
|
99
|
+
height: "24",
|
|
100
|
+
viewBox: "0 0 24 24",
|
|
101
|
+
fill: color
|
|
102
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
103
|
+
d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
104
|
+
}));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const IconSort = _ref7 => {
|
|
108
|
+
let {
|
|
109
|
+
color = "currentColor"
|
|
110
|
+
} = _ref7;
|
|
111
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
112
|
+
width: "24",
|
|
113
|
+
height: "24",
|
|
114
|
+
viewBox: "0 0 24 24",
|
|
115
|
+
fill: color
|
|
116
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
117
|
+
d: "M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const IconChevronRight = _ref8 => {
|
|
122
|
+
let {
|
|
123
|
+
color = "currentColor"
|
|
124
|
+
} = _ref8;
|
|
125
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
126
|
+
width: "24",
|
|
127
|
+
height: "24",
|
|
128
|
+
viewBox: "0 0 24 24",
|
|
129
|
+
fill: color
|
|
130
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
131
|
+
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const LibraryControls = _ref9 => {
|
|
32
136
|
var _activeBoard$ownerObj;
|
|
33
137
|
|
|
34
138
|
let {
|
|
@@ -40,8 +144,7 @@ const LibraryControls = _ref => {
|
|
|
40
144
|
setShowSearch,
|
|
41
145
|
setActiveBoard,
|
|
42
146
|
hideLayoutButtons
|
|
43
|
-
} =
|
|
44
|
-
React.useContext(styled.ThemeContext);
|
|
147
|
+
} = _ref9;
|
|
45
148
|
const size = ScreenSizeHook.useWindowSize();
|
|
46
149
|
const [anchor, setAnchor] = React.useState(null);
|
|
47
150
|
const [filterAnchor, setFilterAnchor] = React.useState(null);
|
|
@@ -50,22 +153,25 @@ const LibraryControls = _ref => {
|
|
|
50
153
|
const [inputValue, setInputValue] = React.useState("");
|
|
51
154
|
const open = Boolean(anchor);
|
|
52
155
|
const openFilter = Boolean(filterAnchor);
|
|
53
|
-
let timeout = null;
|
|
54
|
-
|
|
156
|
+
let timeout = null; // Get theme color for icons (you may need to adjust based on your theme setup)
|
|
157
|
+
|
|
158
|
+
const iconColor = "#333"; // notBlack.main equivalent
|
|
159
|
+
|
|
160
|
+
const greyColor = "#888"; // grey6.main equivalent
|
|
161
|
+
|
|
162
|
+
return /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
55
163
|
direction: "row",
|
|
56
164
|
alignItems: "center",
|
|
57
165
|
justifyContent: "space-around",
|
|
58
166
|
marginTop: size.width <= 675 && "20px"
|
|
59
|
-
}, activeBoard && /*#__PURE__*/React__default[
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}), /*#__PURE__*/React__default['default'].createElement(index.Text, null, activeBoard === null || activeBoard === void 0 ? void 0 : (_activeBoard$ownerObj = activeBoard.ownerObject) === null || _activeBoard$ownerObj === void 0 ? void 0 : _activeBoard$ownerObj.username)), !hideSearch && /*#__PURE__*/React__default['default'].createElement(index.Box, {
|
|
167
|
+
}, activeBoard && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(IconPerson, {
|
|
168
|
+
color: iconColor
|
|
169
|
+
}), /*#__PURE__*/React__default["default"].createElement(index.Text, null, activeBoard === null || activeBoard === void 0 ? void 0 : (_activeBoard$ownerObj = activeBoard.ownerObject) === null || _activeBoard$ownerObj === void 0 ? void 0 : _activeBoard$ownerObj.username)), !hideSearch && /*#__PURE__*/React__default["default"].createElement(index.Box, {
|
|
64
170
|
sx: {
|
|
65
171
|
display: "flex",
|
|
66
172
|
alignItems: "flex-end"
|
|
67
173
|
}
|
|
68
|
-
}, /*#__PURE__*/React__default[
|
|
174
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Input, {
|
|
69
175
|
id: "user-library-search-input",
|
|
70
176
|
placeholder: "Search User Library",
|
|
71
177
|
variant: "standard",
|
|
@@ -73,14 +179,12 @@ const LibraryControls = _ref => {
|
|
|
73
179
|
value: inputValue,
|
|
74
180
|
onChange: e => {
|
|
75
181
|
setInputValue(e.target.value);
|
|
76
|
-
clearTimeout(timeout);
|
|
77
|
-
|
|
182
|
+
clearTimeout(timeout);
|
|
78
183
|
timeout = setTimeout(() => {
|
|
79
184
|
setSearchTerm(e.target.value);
|
|
80
185
|
}, 1000);
|
|
81
186
|
},
|
|
82
187
|
onKeyDown: e => {
|
|
83
|
-
// e.preventDefault();
|
|
84
188
|
if (e.key === "Enter") {
|
|
85
189
|
setShowSearch(true);
|
|
86
190
|
}
|
|
@@ -99,32 +203,27 @@ const LibraryControls = _ref => {
|
|
|
99
203
|
color: "grey6.main",
|
|
100
204
|
borderColor: "grey6.main"
|
|
101
205
|
},
|
|
102
|
-
startAdornment: /*#__PURE__*/React__default[
|
|
103
|
-
position: "
|
|
104
|
-
}, /*#__PURE__*/React__default[
|
|
105
|
-
|
|
106
|
-
color: "grey6.main"
|
|
107
|
-
}
|
|
206
|
+
startAdornment: /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
207
|
+
position: "center"
|
|
208
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconSearch, {
|
|
209
|
+
color: greyColor
|
|
108
210
|
})),
|
|
109
|
-
endAdornment: /*#__PURE__*/React__default[
|
|
211
|
+
endAdornment: /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
110
212
|
position: "end"
|
|
111
|
-
}, inputValue && /*#__PURE__*/React__default[
|
|
112
|
-
|
|
113
|
-
cursor: "pointer",
|
|
114
|
-
color: "grey6.main"
|
|
115
|
-
},
|
|
213
|
+
}, inputValue && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(IconClose, {
|
|
214
|
+
color: greyColor,
|
|
116
215
|
onClick: () => {
|
|
117
216
|
setSearchTerm("");
|
|
118
217
|
setInputValue("");
|
|
119
218
|
setShowSearch(false);
|
|
120
219
|
}
|
|
121
|
-
}), /*#__PURE__*/React__default[
|
|
220
|
+
}), /*#__PURE__*/React__default["default"].createElement(index.Button, {
|
|
122
221
|
variant: "text",
|
|
123
222
|
color: "notBlack",
|
|
124
223
|
onClick: () => setShowSearch(true)
|
|
125
224
|
}, "Search")))
|
|
126
225
|
}
|
|
127
|
-
})), /*#__PURE__*/React__default[
|
|
226
|
+
})), /*#__PURE__*/React__default["default"].createElement(index.Popover, {
|
|
128
227
|
id: "library-controls-popover",
|
|
129
228
|
open: openFilter,
|
|
130
229
|
onClose: () => {
|
|
@@ -152,7 +251,7 @@ const LibraryControls = _ref => {
|
|
|
152
251
|
vertical: "top",
|
|
153
252
|
horizontal: "center"
|
|
154
253
|
}
|
|
155
|
-
}, /*#__PURE__*/React__default[
|
|
254
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
156
255
|
direction: "row",
|
|
157
256
|
onClick: () => setSort("TITLE_ASC"),
|
|
158
257
|
sx: {
|
|
@@ -163,10 +262,10 @@ const LibraryControls = _ref => {
|
|
|
163
262
|
color: "white.override"
|
|
164
263
|
}
|
|
165
264
|
}
|
|
166
|
-
}, /*#__PURE__*/React__default[
|
|
265
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
167
266
|
margin: "0 15px",
|
|
168
267
|
fontSize: "18px"
|
|
169
|
-
}, "Alphabetical")), /*#__PURE__*/React__default[
|
|
268
|
+
}, "Alphabetical")), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
170
269
|
direction: "row",
|
|
171
270
|
onClick: () => setSort("CREATEDAT_DESC"),
|
|
172
271
|
sx: {
|
|
@@ -177,10 +276,10 @@ const LibraryControls = _ref => {
|
|
|
177
276
|
color: "white.override"
|
|
178
277
|
}
|
|
179
278
|
}
|
|
180
|
-
}, /*#__PURE__*/React__default[
|
|
279
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
181
280
|
margin: "0 15px",
|
|
182
281
|
fontSize: "18px"
|
|
183
|
-
}, "Newest")), /*#__PURE__*/React__default[
|
|
282
|
+
}, "Newest")), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
184
283
|
direction: "row",
|
|
185
284
|
onClick: () => setSort("CREATEDAT_ASC"),
|
|
186
285
|
sx: {
|
|
@@ -191,29 +290,25 @@ const LibraryControls = _ref => {
|
|
|
191
290
|
color: "white.override"
|
|
192
291
|
}
|
|
193
292
|
}
|
|
194
|
-
}, /*#__PURE__*/React__default[
|
|
293
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
195
294
|
margin: "0 15px",
|
|
196
295
|
fontSize: "18px"
|
|
197
|
-
}, "Oldest"))), !hideLayoutButtons && /*#__PURE__*/React__default[
|
|
296
|
+
}, "Oldest"))), !hideLayoutButtons && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, size.width >= 1000 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !activeBoard && /*#__PURE__*/React__default["default"].createElement(index.Button, {
|
|
198
297
|
color: "notBlack",
|
|
199
298
|
ref: filterRef,
|
|
200
299
|
onClick: () => setFilterAnchor(filterRef.current)
|
|
201
|
-
}, /*#__PURE__*/React__default[
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
})), /*#__PURE__*/React__default[
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
}))) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(index.IconButton, {
|
|
300
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, null, "Sort"), /*#__PURE__*/React__default["default"].createElement(IconSort, {
|
|
301
|
+
color: iconColor
|
|
302
|
+
})), /*#__PURE__*/React__default["default"].createElement(index.IconButton, null, /*#__PURE__*/React__default["default"].createElement(IconMenu, {
|
|
303
|
+
color: iconColor
|
|
304
|
+
})), /*#__PURE__*/React__default["default"].createElement(index.IconButton, null, /*#__PURE__*/React__default["default"].createElement(IconGrid, {
|
|
305
|
+
color: iconColor
|
|
306
|
+
}))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(index.IconButton, {
|
|
210
307
|
ref: divRef,
|
|
211
308
|
onClick: () => setAnchor(divRef.current)
|
|
212
|
-
}, /*#__PURE__*/React__default[
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
})), /*#__PURE__*/React__default['default'].createElement(index.Popover, {
|
|
309
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconMoreHoriz, {
|
|
310
|
+
color: iconColor
|
|
311
|
+
})), /*#__PURE__*/React__default["default"].createElement(index.Popover, {
|
|
217
312
|
id: "library-controls-popover",
|
|
218
313
|
open: open,
|
|
219
314
|
onClose: () => {
|
|
@@ -241,7 +336,7 @@ const LibraryControls = _ref => {
|
|
|
241
336
|
vertical: "top",
|
|
242
337
|
horizontal: "center"
|
|
243
338
|
}
|
|
244
|
-
}, /*#__PURE__*/React__default[
|
|
339
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
245
340
|
direction: "row",
|
|
246
341
|
alignItems: "center",
|
|
247
342
|
sx: {
|
|
@@ -252,15 +347,13 @@ const LibraryControls = _ref => {
|
|
|
252
347
|
backgroundColor: "grey2.main"
|
|
253
348
|
}
|
|
254
349
|
}
|
|
255
|
-
}, /*#__PURE__*/React__default[
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
}), /*#__PURE__*/React__default['default'].createElement(index.Text, {
|
|
350
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconMenu, {
|
|
351
|
+
color: iconColor
|
|
352
|
+
}), /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
260
353
|
color: "notBlack.main",
|
|
261
354
|
margin: "0 15px",
|
|
262
355
|
fontSize: "18px"
|
|
263
|
-
}, "List View")), /*#__PURE__*/React__default[
|
|
356
|
+
}, "List View")), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
264
357
|
direction: "row",
|
|
265
358
|
alignItems: "center",
|
|
266
359
|
sx: {
|
|
@@ -271,17 +364,15 @@ const LibraryControls = _ref => {
|
|
|
271
364
|
backgroundColor: "grey2.main"
|
|
272
365
|
}
|
|
273
366
|
}
|
|
274
|
-
}, /*#__PURE__*/React__default[
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
}), /*#__PURE__*/React__default['default'].createElement(index.Text, {
|
|
367
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconGrid, {
|
|
368
|
+
color: iconColor
|
|
369
|
+
}), /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
279
370
|
color: "notBlack.main",
|
|
280
371
|
margin: "0 15px",
|
|
281
372
|
fontSize: "18px"
|
|
282
|
-
}, "Grid View")), /*#__PURE__*/React__default[
|
|
373
|
+
}, "Grid View")), /*#__PURE__*/React__default["default"].createElement(index.Divider, {
|
|
283
374
|
variant: "middle"
|
|
284
|
-
}), /*#__PURE__*/React__default[
|
|
375
|
+
}), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
285
376
|
ref: filterRef,
|
|
286
377
|
onClick: () => setFilterAnchor(filterRef.current),
|
|
287
378
|
direction: "row",
|
|
@@ -295,20 +386,16 @@ const LibraryControls = _ref => {
|
|
|
295
386
|
backgroundColor: "grey2.main"
|
|
296
387
|
}
|
|
297
388
|
}
|
|
298
|
-
}, /*#__PURE__*/React__default[
|
|
389
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
299
390
|
direction: "row"
|
|
300
|
-
}, /*#__PURE__*/React__default[
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
}), /*#__PURE__*/React__default['default'].createElement(index.Text, {
|
|
391
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconSort, {
|
|
392
|
+
color: iconColor
|
|
393
|
+
}), /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
305
394
|
fontSize: "18px",
|
|
306
395
|
color: "notBlack.main",
|
|
307
396
|
margin: "0 15px"
|
|
308
|
-
}, "Sort")), /*#__PURE__*/React__default[
|
|
309
|
-
|
|
310
|
-
color: "notBlack.main"
|
|
311
|
-
}
|
|
397
|
+
}, "Sort")), /*#__PURE__*/React__default["default"].createElement(IconChevronRight, {
|
|
398
|
+
color: iconColor
|
|
312
399
|
}))))));
|
|
313
400
|
};
|
|
314
401
|
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
5
|
var index = require('../index.js');
|
|
7
6
|
var ScreenSizeHook = require('../ScreenSizeHook.js');
|
|
8
7
|
var LibraryControls = require('./LibraryControls.js');
|
|
9
8
|
|
|
10
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
10
|
|
|
11
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
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__default["default"](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; }
|
|
17
|
+
|
|
14
18
|
const UserLibraryHeader = _ref => {
|
|
15
19
|
let {
|
|
16
20
|
sx,
|
|
@@ -27,16 +31,14 @@ const UserLibraryHeader = _ref => {
|
|
|
27
31
|
hideLayoutButtons
|
|
28
32
|
} = _ref;
|
|
29
33
|
const size = ScreenSizeHook.useWindowSize();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
sx: {
|
|
34
|
+
return /*#__PURE__*/React__default["default"].createElement(index.Box, {
|
|
35
|
+
sx: _objectSpread({
|
|
33
36
|
backgroundColor: "grey2.main",
|
|
34
37
|
position: "sticky",
|
|
35
38
|
top: size.width >= 1000 ? "80px" : "110px",
|
|
36
|
-
zIndex: "5"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, /*#__PURE__*/React__default['default'].createElement(index.Stack, {
|
|
39
|
+
zIndex: "5"
|
|
40
|
+
}, sx)
|
|
41
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
40
42
|
direction: "row",
|
|
41
43
|
style: {
|
|
42
44
|
padding: "20px 10px",
|
|
@@ -44,16 +46,16 @@ const UserLibraryHeader = _ref => {
|
|
|
44
46
|
margin: "0 auto",
|
|
45
47
|
width: "95%"
|
|
46
48
|
}
|
|
47
|
-
}, /*#__PURE__*/React__default[
|
|
49
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
48
50
|
direction: "row",
|
|
49
51
|
width: "100%",
|
|
50
52
|
justifyContent: size.width <= 675 ? "center" : "space-between",
|
|
51
53
|
alignItems: "center",
|
|
52
54
|
flexWrap: "wrap"
|
|
53
|
-
}, /*#__PURE__*/React__default[
|
|
55
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
54
56
|
direction: "row",
|
|
55
57
|
flexWrap: "inherit"
|
|
56
|
-
}, tabs === null || tabs === void 0 ? void 0 : tabs.map(tab => /*#__PURE__*/React__default[
|
|
58
|
+
}, tabs === null || tabs === void 0 ? void 0 : tabs.map(tab => /*#__PURE__*/React__default["default"].createElement(index.Button, {
|
|
57
59
|
key: "tab-".concat(tab),
|
|
58
60
|
onClick: () => {
|
|
59
61
|
setActiveBoard(null);
|
|
@@ -67,7 +69,14 @@ const UserLibraryHeader = _ref => {
|
|
|
67
69
|
},
|
|
68
70
|
variant: tabSelection.includes(tab) ? "contained" : "outlined",
|
|
69
71
|
size: "small",
|
|
70
|
-
endIcon: tabSelection.includes(tab) && /*#__PURE__*/React__default[
|
|
72
|
+
endIcon: tabSelection.includes(tab) && /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
73
|
+
width: "18",
|
|
74
|
+
height: "18",
|
|
75
|
+
viewBox: "0 0 24 24",
|
|
76
|
+
fill: "currentColor"
|
|
77
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
78
|
+
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"
|
|
79
|
+
})),
|
|
71
80
|
sx: {
|
|
72
81
|
fontWeight: "normal",
|
|
73
82
|
marginRight: "10px",
|
|
@@ -76,7 +85,7 @@ const UserLibraryHeader = _ref => {
|
|
|
76
85
|
},
|
|
77
86
|
color: tabSelection.includes(tab) ? "grey3" : "notBlack",
|
|
78
87
|
disableElevation: true
|
|
79
|
-
}, tab))), /*#__PURE__*/React__default[
|
|
88
|
+
}, tab))), /*#__PURE__*/React__default["default"].createElement(LibraryControls, {
|
|
80
89
|
currentSort: sort,
|
|
81
90
|
setActiveBoard: setActiveBoard,
|
|
82
91
|
setSort: value => {
|