@blerp/design 1.3.17 → 1.4.2
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 +92 -58
- package/dist/cjs/neo-components/Autocomplete.js +285 -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 +495 -0
- package/dist/cjs/neo-components/Layout.js +1214 -0
- package/dist/cjs/neo-components/Misc.js +868 -0
- package/dist/cjs/neo-components/Navigation.js +1616 -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 +171 -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 +32 -2
- package/dist/esm/neo-components/Autocomplete.js +274 -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 +480 -0
- package/dist/esm/neo-components/Layout.js +1180 -0
- package/dist/esm/neo-components/Misc.js +850 -0
- package/dist/esm/neo-components/Navigation.js +1594 -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 +160 -0
- package/dist/esm/neo-utils/sxToStyle.js +502 -0
- package/package.json +19 -15
|
@@ -2,26 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
7
|
+
var index = require('./index.js');
|
|
8
8
|
var colors = require('./colors.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
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; }
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const motion2 = props => styled.keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default['default'](["\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(19px, 0);\n }\n"])));
|
|
21
|
-
|
|
22
|
-
const motion3 = props => styled.keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default['default'](["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n"])));
|
|
23
|
-
|
|
24
|
-
const EllipsisSpinner = styled__default['default'].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n width: ", ";\n height: ", ";\n div {\n position: absolute;\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background: ", ";\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n div:nth-child(1) {\n left: 6px;\n animation: ", " 0.6s infinite;\n }\n div:nth-child(2) {\n left: 6px;\n animation: ", " 0.6s infinite;\n }\n div:nth-child(3) {\n left: 26px;\n animation: ", " 0.6s infinite;\n }\n div:nth-child(4) {\n left: 45px;\n animation: ", " 0.6s infinite;\n }\n"])), p => "".concat(p.size).concat(p.sizeUnit), p => "".concat(p.size).concat(p.sizeUnit), p => p.color, p => motion1(), p => motion2(), p => motion2(), p => motion3());
|
|
17
|
+
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; }
|
|
25
18
|
const EllipsisLoader = _ref => {
|
|
26
19
|
let {
|
|
27
20
|
color,
|
|
@@ -29,17 +22,69 @@ const EllipsisLoader = _ref => {
|
|
|
29
22
|
sizeUnit,
|
|
30
23
|
style
|
|
31
24
|
} = _ref;
|
|
32
|
-
return /*#__PURE__*/React__default[
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
return /*#__PURE__*/React__default["default"].createElement(index.Box, {
|
|
26
|
+
sx: _objectSpread(_objectSpread({
|
|
27
|
+
display: "flex",
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
position: "relative",
|
|
31
|
+
width: "".concat(size).concat(sizeUnit),
|
|
32
|
+
height: "".concat(size).concat(sizeUnit)
|
|
33
|
+
}, style), {}, {
|
|
34
|
+
"& > div": {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
width: "11px",
|
|
37
|
+
height: "11px",
|
|
38
|
+
borderRadius: "50%",
|
|
39
|
+
background: color,
|
|
40
|
+
animationTimingFunction: "cubic-bezier(0, 1, 1, 0)"
|
|
41
|
+
},
|
|
42
|
+
"& > div:nth-of-type(1)": {
|
|
43
|
+
left: "6px",
|
|
44
|
+
animation: "ellipsis-motion1 0.6s infinite"
|
|
45
|
+
},
|
|
46
|
+
"& > div:nth-of-type(2)": {
|
|
47
|
+
left: "6px",
|
|
48
|
+
animation: "ellipsis-motion2 0.6s infinite"
|
|
49
|
+
},
|
|
50
|
+
"& > div:nth-of-type(3)": {
|
|
51
|
+
left: "26px",
|
|
52
|
+
animation: "ellipsis-motion2 0.6s infinite"
|
|
53
|
+
},
|
|
54
|
+
"& > div:nth-of-type(4)": {
|
|
55
|
+
left: "45px",
|
|
56
|
+
animation: "ellipsis-motion3 0.6s infinite"
|
|
57
|
+
},
|
|
58
|
+
"@keyframes ellipsis-motion1": {
|
|
59
|
+
"0%": {
|
|
60
|
+
transform: "scale(0)"
|
|
61
|
+
},
|
|
62
|
+
"100%": {
|
|
63
|
+
transform: "scale(1)"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"@keyframes ellipsis-motion2": {
|
|
67
|
+
"0%": {
|
|
68
|
+
transform: "translate(0, 0)"
|
|
69
|
+
},
|
|
70
|
+
"100%": {
|
|
71
|
+
transform: "translate(19px, 0)"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"@keyframes ellipsis-motion3": {
|
|
75
|
+
"0%": {
|
|
76
|
+
transform: "scale(1)"
|
|
77
|
+
},
|
|
78
|
+
"100%": {
|
|
79
|
+
transform: "scale(0)"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null));
|
|
39
84
|
};
|
|
40
85
|
EllipsisLoader.defaultProps = {
|
|
41
86
|
size: 24,
|
|
42
|
-
color: colors[
|
|
87
|
+
color: colors["default"].notBlack,
|
|
43
88
|
sizeUnit: "px",
|
|
44
89
|
style: {
|
|
45
90
|
width: "60px",
|
|
@@ -48,4 +93,4 @@ EllipsisLoader.defaultProps = {
|
|
|
48
93
|
};
|
|
49
94
|
|
|
50
95
|
exports.EllipsisLoader = EllipsisLoader;
|
|
51
|
-
exports
|
|
96
|
+
exports["default"] = EllipsisLoader;
|
package/dist/cjs/GroupCard.js
CHANGED
|
@@ -2,26 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var styled = require('styled-components');
|
|
8
7
|
var index = require('./index.js');
|
|
9
8
|
var NewBlerp = require('./NewBlerp.js');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
11
|
|
|
13
|
-
var
|
|
12
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
14
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
16
14
|
|
|
17
|
-
var
|
|
18
|
-
const BlerpImage = styled__default['default'].div(_templateObject || (_templateObject = _taggedTemplateLiteral__default['default'](["\n background-image: url(", ");\n background-repeat: no-repeat;\n background-size: cover;\n width: 140px;\n height: 140px;\n border-radius: 12px;\n transition: 0.3s;\n position: absolute;\n opacity: ", ";\n transform: rotate(", ");\n"])), props => props.image, props => props.firstImage ? "1" : props.hovering ? "1" : "0.5", props => props.hovering ? "45deg" : "20deg");
|
|
19
|
-
const GroupCard = _ref => {
|
|
20
|
-
var _group$blerps14;
|
|
15
|
+
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; }
|
|
21
16
|
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
const BlerpImage = _ref => {
|
|
22
20
|
let {
|
|
23
|
-
|
|
21
|
+
image,
|
|
22
|
+
firstImage,
|
|
23
|
+
hovering,
|
|
24
|
+
index,
|
|
25
|
+
style
|
|
24
26
|
} = _ref;
|
|
27
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28
|
+
style: _objectSpread({
|
|
29
|
+
backgroundImage: "url(".concat(image, ")"),
|
|
30
|
+
backgroundRepeat: "no-repeat",
|
|
31
|
+
backgroundSize: "cover",
|
|
32
|
+
width: "140px",
|
|
33
|
+
height: "140px",
|
|
34
|
+
borderRadius: "12px",
|
|
35
|
+
transition: "0.3s",
|
|
36
|
+
position: "absolute",
|
|
37
|
+
opacity: firstImage ? 1 : hovering ? 1 : 0.5,
|
|
38
|
+
transform: "rotate(".concat(hovering ? "45deg" : "20deg", ")")
|
|
39
|
+
}, style)
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const GroupCard = _ref2 => {
|
|
44
|
+
var _group$blerps2;
|
|
45
|
+
|
|
46
|
+
let {
|
|
47
|
+
group
|
|
48
|
+
} = _ref2;
|
|
25
49
|
const [hovering, setHovering] = React.useState(false);
|
|
26
50
|
const formatter = Intl.NumberFormat("en", {
|
|
27
51
|
notation: "compact"
|
|
@@ -37,64 +61,50 @@ const GroupCard = _ref => {
|
|
|
37
61
|
};
|
|
38
62
|
|
|
39
63
|
const calculateLeft = index => {
|
|
40
|
-
var _group$blerps
|
|
64
|
+
var _group$blerps;
|
|
65
|
+
|
|
66
|
+
const length = group === null || group === void 0 ? void 0 : (_group$blerps = group.blerps) === null || _group$blerps === void 0 ? void 0 : _group$blerps.length;
|
|
41
67
|
|
|
42
|
-
if (
|
|
68
|
+
if (length === 1) {
|
|
43
69
|
return "25%";
|
|
44
70
|
}
|
|
45
71
|
|
|
46
|
-
if (
|
|
47
|
-
var _group$blerps4;
|
|
48
|
-
|
|
72
|
+
if (length === 2) {
|
|
49
73
|
if (hovering) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return "".concat((index - 0.05) / (group === null || group === void 0 ? void 0 : (_group$blerps3 = group.blerps) === null || _group$blerps3 === void 0 ? void 0 : _group$blerps3.length) * 100, "%");
|
|
74
|
+
return "".concat((index - 0.05) / length * 100, "%");
|
|
53
75
|
}
|
|
54
76
|
|
|
55
|
-
return "".concat((index + 0.5) / (
|
|
77
|
+
return "".concat((index + 0.5) / (length + 2.5) * 100, "%");
|
|
56
78
|
}
|
|
57
79
|
|
|
58
|
-
if (
|
|
59
|
-
var _group$blerps7;
|
|
60
|
-
|
|
80
|
+
if (length === 3) {
|
|
61
81
|
if (hovering) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return "".concat((index - 0.35) / (group === null || group === void 0 ? void 0 : (_group$blerps6 = group.blerps) === null || _group$blerps6 === void 0 ? void 0 : _group$blerps6.length) * 100, "%");
|
|
82
|
+
return "".concat((index - 0.35) / length * 100, "%");
|
|
65
83
|
}
|
|
66
84
|
|
|
67
|
-
return "".concat((index + 0.4) / (
|
|
85
|
+
return "".concat((index + 0.4) / (length + 2.5) * 100, "%");
|
|
68
86
|
}
|
|
69
87
|
|
|
70
|
-
if (
|
|
71
|
-
var _group$blerps10;
|
|
72
|
-
|
|
88
|
+
if (length === 4) {
|
|
73
89
|
if (hovering) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return "".concat((index - 0.6) / (group === null || group === void 0 ? void 0 : (_group$blerps9 = group.blerps) === null || _group$blerps9 === void 0 ? void 0 : _group$blerps9.length) * 100, "%");
|
|
90
|
+
return "".concat((index - 0.6) / length * 100, "%");
|
|
77
91
|
}
|
|
78
92
|
|
|
79
|
-
return "".concat((index + 0.2) / (
|
|
93
|
+
return "".concat((index + 0.2) / (length + 2.5) * 100, "%");
|
|
80
94
|
}
|
|
81
95
|
|
|
82
|
-
if (
|
|
83
|
-
var _group$blerps13;
|
|
84
|
-
|
|
96
|
+
if (length === 5) {
|
|
85
97
|
if (hovering) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return "".concat((index - 0.7) / (group === null || group === void 0 ? void 0 : (_group$blerps12 = group.blerps) === null || _group$blerps12 === void 0 ? void 0 : _group$blerps12.length) * 100, "%");
|
|
98
|
+
return "".concat((index - 0.7) / length * 100, "%");
|
|
89
99
|
}
|
|
90
100
|
|
|
91
|
-
return "".concat((index + 0.2) / (
|
|
101
|
+
return "".concat((index + 0.2) / (length + 2.5) * 100, "%");
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
return "".concat((index - 2) * 10, "px");
|
|
95
105
|
};
|
|
96
106
|
|
|
97
|
-
return /*#__PURE__*/React__default[
|
|
107
|
+
return /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
98
108
|
sx: {
|
|
99
109
|
minWidth: "250px",
|
|
100
110
|
maxWidth: "290px",
|
|
@@ -111,21 +121,17 @@ const GroupCard = _ref => {
|
|
|
111
121
|
flex: "1",
|
|
112
122
|
overflow: "hidden"
|
|
113
123
|
},
|
|
114
|
-
onMouseEnter: () =>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
onMouseLeave: () => {
|
|
118
|
-
setHovering(false);
|
|
119
|
-
}
|
|
120
|
-
}, /*#__PURE__*/React__default['default'].createElement(index.Stack, {
|
|
124
|
+
onMouseEnter: () => setHovering(true),
|
|
125
|
+
onMouseLeave: () => setHovering(false)
|
|
126
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
121
127
|
height: "100%"
|
|
122
|
-
}, /*#__PURE__*/React__default[
|
|
128
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
123
129
|
sx: {
|
|
124
130
|
color: "grey5.main",
|
|
125
131
|
fontSize: "12px",
|
|
126
132
|
fontWeight: "300"
|
|
127
133
|
}
|
|
128
|
-
}, (group === null || group === void 0 ? void 0 : group.biteCount) || 0, " Sounds"), /*#__PURE__*/React__default[
|
|
134
|
+
}, (group === null || group === void 0 ? void 0 : group.biteCount) || 0, " Sounds"), /*#__PURE__*/React__default["default"].createElement(index.Text, {
|
|
129
135
|
sx: {
|
|
130
136
|
whiteSpace: "nowrap",
|
|
131
137
|
overflowX: "hidden",
|
|
@@ -137,15 +143,15 @@ const GroupCard = _ref => {
|
|
|
137
143
|
height: "31px",
|
|
138
144
|
marginBottom: "5px"
|
|
139
145
|
}
|
|
140
|
-
}, group === null || group === void 0 ? void 0 : group.title), /*#__PURE__*/React__default[
|
|
146
|
+
}, group === null || group === void 0 ? void 0 : group.title), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
141
147
|
direction: "row"
|
|
142
|
-
}, /*#__PURE__*/React__default[
|
|
148
|
+
}, /*#__PURE__*/React__default["default"].createElement(NewBlerp.AddedToIcons, {
|
|
143
149
|
item: group,
|
|
144
150
|
hovering: true
|
|
145
|
-
}), /*#__PURE__*/React__default[
|
|
151
|
+
}), /*#__PURE__*/React__default["default"].createElement(NewBlerp.FavoriteIconWithCounter, {
|
|
146
152
|
saved: group === null || group === void 0 ? void 0 : group.saved,
|
|
147
153
|
count: saveCount
|
|
148
|
-
})), /*#__PURE__*/React__default[
|
|
154
|
+
})), /*#__PURE__*/React__default["default"].createElement(index.Stack, {
|
|
149
155
|
direction: "row",
|
|
150
156
|
sx: {
|
|
151
157
|
width: "100%",
|
|
@@ -153,12 +159,13 @@ const GroupCard = _ref => {
|
|
|
153
159
|
right: "0",
|
|
154
160
|
bottom: "0"
|
|
155
161
|
}
|
|
156
|
-
}, (_group$
|
|
157
|
-
var _group$
|
|
162
|
+
}, (_group$blerps2 = group.blerps) === null || _group$blerps2 === void 0 ? void 0 : _group$blerps2.map((blerp, index) => {
|
|
163
|
+
var _group$blerps3, _blerp$image, _blerp$image$original;
|
|
158
164
|
|
|
159
|
-
return /*#__PURE__*/React__default[
|
|
165
|
+
return /*#__PURE__*/React__default["default"].createElement(BlerpImage, {
|
|
166
|
+
key: (blerp === null || blerp === void 0 ? void 0 : blerp._id) || index,
|
|
160
167
|
index: index,
|
|
161
|
-
firstImage: index === ((_group$
|
|
168
|
+
firstImage: index === ((_group$blerps3 = group.blerps) === null || _group$blerps3 === void 0 ? void 0 : _group$blerps3.length) - 1,
|
|
162
169
|
hovering: hovering,
|
|
163
170
|
image: blerp === null || blerp === void 0 ? void 0 : (_blerp$image = blerp.image) === null || _blerp$image === void 0 ? void 0 : (_blerp$image$original = _blerp$image.original) === null || _blerp$image$original === void 0 ? void 0 : _blerp$image$original.url,
|
|
164
171
|
style: {
|